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 +5 -5
- data/lib/bookingsync-engine.rb +2 -2
- data/lib/bookingsync/engine.rb +3 -3
- data/lib/bookingsync/engine/auth_helpers.rb +1 -1
- data/lib/bookingsync/engine/version.rb +1 -1
- data/spec/dummy/log/test.log +1308 -0
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 47614ddb714cbfd57fde76cca80d54477c18843a6cc9210f133a06464baa82d0
|
4
|
+
data.tar.gz: 5dc08d7c91541a14d1961622679b1e89000244bc91298b7d5eb78648e4c6553e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 767f255243b9c03d856af7b58dca3d2162c1f30d8a6d67a827b02c6fabfc8e30f56558a8c5e2bb6513f2a82ca5759812cbe2512f4c1ac9186b7234696f5fa456
|
7
|
+
data.tar.gz: 68977588dfb33ca9ea232c0cafca301f0f9cdb53c89ef4a4762f5eab042bbc5c1454be7f12838f106901d58c4830b989568982b0b43e88b1c4d99b0f6dc613e9
|
data/lib/bookingsync-engine.rb
CHANGED
@@ -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"
|
data/lib/bookingsync/engine.rb
CHANGED
@@ -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.
|
data/spec/dummy/log/test.log
CHANGED
@@ -62523,3 +62523,1311 @@ Completed 302 Found in 9ms (ActiveRecord: 5.6ms)
|
|
62523
62523
|
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
62524
62524
|
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
62525
62525
|
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
62526
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
62527
|
+
[1m[35m (1.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62528
|
+
[1m[36mApplication Exists (7.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
62529
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "123"], ["LIMIT", 1]]
|
62530
|
+
[1m[36mApplication Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "456"], ["LIMIT", 1]]
|
62531
|
+
[1m[36mApplication Create (3.2ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62533
|
+
[1m[36mApplication Load (0.6ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
62534
|
+
[1m[35m (1.5ms)[0m [1m[31mROLLBACK[0m
|
62535
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
62536
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62537
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
62538
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
62539
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
62540
|
+
[1m[36mApplication Create (0.9ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62542
|
+
[1m[36mApplication Load (0.7ms)[0m [1m[34mSELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
62543
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
62544
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
62545
|
+
[1m[36mApplication Exists (1.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
62546
|
+
[1m[36mApplication Exists (1.6ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
62547
|
+
[1m[36mApplication Exists (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
62548
|
+
[1m[36mApplication Exists (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "DEF"], ["LIMIT", 1]]
|
62549
|
+
[1m[35m (1.1ms)[0m [1m[31mROLLBACK[0m
|
62550
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
62551
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62552
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
62553
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
62554
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
62555
|
+
[1m[36mApplication Create (0.8ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62557
|
+
[1m[36mApplication Load (0.8ms)[0m [1m[34mSELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
62558
|
+
[1m[36mApplication Exists (1.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
62559
|
+
[1m[36mApplication Exists (1.6ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
62560
|
+
[1m[36mApplication Exists (1.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
62561
|
+
[1m[36mApplication Exists (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
62562
|
+
[1m[36mApplication Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "ABC"], ["LIMIT", 1]]
|
62563
|
+
[1m[36mApplication Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
62564
|
+
[1m[35m (1.1ms)[0m [1m[31mROLLBACK[0m
|
62565
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
62566
|
+
[1m[35m (1.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62567
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
62568
|
+
[1m[36mApplication Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
62569
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
62570
|
+
[1m[36mApplication Create (1.4ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (1.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62572
|
+
[1m[36mApplication Load (1.1ms)[0m [1m[34mSELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
62573
|
+
[1m[36mApplication Exists (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
62574
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
62575
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
62576
|
+
[1m[36mApplication Exists (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "TEST.HOST"], ["LIMIT", 1]]
|
62577
|
+
[1m[36mApplication Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
62578
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
62579
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
62580
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
62581
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62582
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
62583
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
62584
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
62585
|
+
[1m[36mApplication Create (1.0ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62587
|
+
[1m[36mApplication Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
62588
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
62589
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
62590
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
62591
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
62592
|
+
[1m[35m (1.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62593
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
62594
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
62595
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
62596
|
+
[1m[36mApplication Create (1.2ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (1.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62598
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
62599
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
62600
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
62601
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
62602
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
62603
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62604
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
62605
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
62606
|
+
[1m[36mApplication Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
62607
|
+
[1m[36mApplication Create (1.3ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62609
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
62610
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
62611
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
62612
|
+
[1m[35m (1.2ms)[0m [1m[31mROLLBACK[0m
|
62613
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
62614
|
+
[1m[35m (1.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62615
|
+
[1m[36mMultiApplicationsAccount Exists (5.6ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.host"], ["LIMIT", 1]]
|
62616
|
+
[1m[36mMultiApplicationsAccount Create (2.3ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62618
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62619
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "test.host"], ["LIMIT", 1]]
|
62620
|
+
[1m[36mMultiApplicationsAccount Create (0.7ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62622
|
+
[1m[36mMultiApplicationsAccount Load (0.8ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3[0m [["host", "test.host"], ["synced_id", 123], ["LIMIT", 1]]
|
62623
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
62624
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
62625
|
+
[1m[35m (1.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62626
|
+
[1m[36mAccount Exists (4.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
62627
|
+
[1m[36mAccount Create (2.1ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.138267"], ["updated_at", "2019-07-17 03:48:02.138267"], ["synced_id", 123]]
|
62628
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62629
|
+
[1m[36mAccount Load (1.0ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
62630
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
62631
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
62632
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
62633
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
62634
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62635
|
+
[1m[36mMultiApplicationsAccount Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "test.example"], ["LIMIT", 1]]
|
62636
|
+
[1m[36mMultiApplicationsAccount Create (0.7ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62638
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62639
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.example"], ["LIMIT", 1]]
|
62640
|
+
[1m[36mApplication Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "123"], ["LIMIT", 1]]
|
62641
|
+
[1m[36mApplication Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "456"], ["LIMIT", 1]]
|
62642
|
+
[1m[36mApplication Create (0.7ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62644
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62645
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test2.example"], ["LIMIT", 1]]
|
62646
|
+
[1m[36mApplication Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "234"], ["LIMIT", 1]]
|
62647
|
+
[1m[36mApplication Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "567"], ["LIMIT", 1]]
|
62648
|
+
[1m[36mApplication Create (0.7ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62650
|
+
[1m[36mApplication Load (0.6ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.example"], ["LIMIT", 1]]
|
62651
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
62652
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
62653
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62654
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "test.example"], ["LIMIT", 1]]
|
62655
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62657
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62658
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.example"], ["LIMIT", 1]]
|
62659
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "123"], ["LIMIT", 1]]
|
62660
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "456"], ["LIMIT", 1]]
|
62661
|
+
[1m[36mApplication Create (1.3ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62663
|
+
[1m[36mApplication Load (1.4ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.example"], ["LIMIT", 1]]
|
62664
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
62665
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
62666
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62667
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
62668
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62670
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62671
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
62672
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62674
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
62675
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
62676
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62677
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
62678
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62680
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62681
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
62682
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62684
|
+
[1m[35m (3.1ms)[0m [1m[34mSELECT COUNT(*) FROM "multi_applications_accounts"[0m
|
62685
|
+
[1m[36mMultiApplicationsAccount Load (1.0ms)[0m [1m[34mSELECT "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[0m [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
62686
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62687
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
|
62688
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62690
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT COUNT(*) FROM "multi_applications_accounts"[0m
|
62691
|
+
[1m[35m (0.9ms)[0m [1m[31mROLLBACK[0m
|
62692
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
62693
|
+
[1m[36mMultiApplicationsAccount Load (0.9ms)[0m [1m[34mSELECT "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[0m [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
62694
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62695
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
|
62696
|
+
[1m[36mMultiApplicationsAccount Create (1.0ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62698
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62699
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
62700
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62702
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
62703
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
62704
|
+
[1m[36mMultiApplicationsAccount Load (0.7ms)[0m [1m[34mSELECT "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[0m [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
62705
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62706
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
|
62707
|
+
[1m[36mMultiApplicationsAccount Create (0.7ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62709
|
+
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62710
|
+
[1m[36mMultiApplicationsAccount Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
62711
|
+
[1m[36mMultiApplicationsAccount Create (0.7ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62713
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
62714
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
62715
|
+
[1m[36mMultiApplicationsAccount Load (0.8ms)[0m [1m[34mSELECT "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[0m [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
62716
|
+
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62717
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
|
62718
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62720
|
+
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62721
|
+
[1m[36mMultiApplicationsAccount Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
62722
|
+
[1m[36mMultiApplicationsAccount Create (1.0ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62724
|
+
[1m[35m (1.1ms)[0m [1m[31mROLLBACK[0m
|
62725
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
62726
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62727
|
+
[1m[36mMultiApplicationsAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
62728
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62730
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62731
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
62732
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62734
|
+
[1m[36mMultiApplicationsAccount Load (0.9ms)[0m [1m[34mSELECT "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[0m [["host", "example.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
62735
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62736
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 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[0m [["synced_id", 123], ["id", 2190], ["host", "example.test"], ["LIMIT", 1]]
|
62737
|
+
[1m[36mMultiApplicationsAccount Update (0.9ms)[0m [1m[33mUPDATE "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[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62739
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
62740
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
62741
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62742
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
62743
|
+
[1m[36mMultiApplicationsAccount Create (1.1ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62745
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62746
|
+
[1m[36mMultiApplicationsAccount Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
62747
|
+
[1m[36mMultiApplicationsAccount Create (1.0ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62749
|
+
[1m[36mMultiApplicationsAccount Load (0.9ms)[0m [1m[34mSELECT "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[0m [["host", "example.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
62750
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62751
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 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[0m [["synced_id", 123], ["id", 2192], ["host", "example.test"], ["LIMIT", 1]]
|
62752
|
+
[1m[36mMultiApplicationsAccount Update (0.9ms)[0m [1m[33mUPDATE "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[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62754
|
+
[1m[36mMultiApplicationsAccount Load (0.8ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2[0m [["id", 2192], ["LIMIT", 1]]
|
62755
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
62756
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
62757
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62758
|
+
[1m[36mMultiApplicationsAccount Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
62759
|
+
[1m[36mMultiApplicationsAccount Create (1.0ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62761
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62762
|
+
[1m[36mMultiApplicationsAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
62763
|
+
[1m[36mMultiApplicationsAccount Create (1.0ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62765
|
+
[1m[36mMultiApplicationsAccount Load (0.7ms)[0m [1m[34mSELECT "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[0m [["host", "example.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
62766
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62767
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 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[0m [["synced_id", 123], ["id", 2194], ["host", "example.test"], ["LIMIT", 1]]
|
62768
|
+
[1m[36mMultiApplicationsAccount Update (1.0ms)[0m [1m[33mUPDATE "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[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62770
|
+
[1m[36mMultiApplicationsAccount Load (1.0ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2[0m [["id", 2194], ["LIMIT", 1]]
|
62771
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
62772
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
62773
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62774
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "test.example"], ["LIMIT", 1]]
|
62775
|
+
[1m[36mMultiApplicationsAccount Create (1.0ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62777
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62778
|
+
[1m[36mApplication Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.example"], ["LIMIT", 1]]
|
62779
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "123"], ["LIMIT", 1]]
|
62780
|
+
[1m[36mApplication Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "456"], ["LIMIT", 1]]
|
62781
|
+
[1m[36mApplication Create (1.0ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62783
|
+
[1m[36mApplication Load (0.7ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.example"], ["LIMIT", 1]]
|
62784
|
+
[1m[35m (0.9ms)[0m [1m[31mROLLBACK[0m
|
62785
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
62786
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62787
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" IS NULL AND "multi_applications_accounts"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
62788
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62790
|
+
[1m[36mMultiApplicationsAccount Load (1.1ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2[0m [["id", 2197], ["LIMIT", 1]]
|
62791
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62792
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 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[0m [["id", 2197], ["host", "example.test"], ["LIMIT", 1]]
|
62793
|
+
[1m[36mMultiApplicationsAccount Update (1.1ms)[0m [1m[33mUPDATE "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[0m [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2019-07-17 03:48:02.374031"], ["id", 2197]]
|
62794
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62795
|
+
[1m[36mMultiApplicationsAccount Load (0.9ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2[0m [["id", 2197], ["LIMIT", 1]]
|
62796
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
62797
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
62798
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62799
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 1], ["host", "example.test"], ["LIMIT", 1]]
|
62800
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62802
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62803
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 2], ["host", "example.test"], ["LIMIT", 1]]
|
62804
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62806
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62807
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 1], ["host", "example2.test"], ["LIMIT", 1]]
|
62808
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62810
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62811
|
+
[1m[36mMultiApplicationsAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 2], ["host", "example2.test"], ["LIMIT", 1]]
|
62812
|
+
[1m[36mMultiApplicationsAccount Create (1.0ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62814
|
+
[1m[36mMultiApplicationsAccount Load (0.7ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3[0m [["host", "example2.test"], ["synced_id", 1], ["LIMIT", 1]]
|
62815
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
62816
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
62817
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62818
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "host"], ["LIMIT", 1]]
|
62819
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "client_id"], ["LIMIT", 1]]
|
62820
|
+
[1m[36mApplication Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "client_secret"], ["LIMIT", 1]]
|
62821
|
+
[1m[36mApplication Create (0.9ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62823
|
+
[1m[36mApplication Load (2.3ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "host"], ["LIMIT", 1]]
|
62824
|
+
[1m[35m (1.7ms)[0m [1m[31mROLLBACK[0m
|
62825
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
62826
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62827
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
62828
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62830
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62831
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
62832
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "123"], ["LIMIT", 1]]
|
62833
|
+
[1m[36mApplication Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "456"], ["LIMIT", 1]]
|
62834
|
+
[1m[36mApplication Create (0.8ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62836
|
+
[1m[36mApplication Load (0.9ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
62837
|
+
[1m[35m (2.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62838
|
+
[1m[36mMultiApplicationsAccount Exists (1.5ms)[0m [1m[34mSELECT 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[0m [["synced_id", 123], ["id", 2202], ["host", "example.test"], ["LIMIT", 1]]
|
62839
|
+
[1m[36mMultiApplicationsAccount Update (1.3ms)[0m [1m[33mUPDATE "multi_applications_accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_expires_at" = $3 WHERE "multi_applications_accounts"."id" = $4[0m [["updated_at", "2019-07-17 03:48:02.462146"], ["oauth_access_token", "refreshed_token"], ["oauth_expires_at", nil], ["id", 2202]]
|
62840
|
+
[1m[35m (1.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62841
|
+
[1m[35m (1.4ms)[0m [1m[31mROLLBACK[0m
|
62842
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
62843
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62844
|
+
[1m[36mMultiApplicationsAccount Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
62845
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62847
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62848
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
62849
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "123"], ["LIMIT", 1]]
|
62850
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "456"], ["LIMIT", 1]]
|
62851
|
+
[1m[36mApplication Create (0.9ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62853
|
+
[1m[36mApplication Load (0.6ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
62854
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
62855
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
62856
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62857
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" IS NULL AND "multi_applications_accounts"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
62858
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62860
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
62861
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
62862
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62863
|
+
[1m[36mMultiApplicationsAccount Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
62864
|
+
[1m[36mMultiApplicationsAccount Create (1.1ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62866
|
+
[1m[36mMultiApplicationsAccount Load (0.7ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" ORDER BY "multi_applications_accounts"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
62867
|
+
[1m[36mMultiApplicationsAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
62868
|
+
[1m[36mMultiApplicationsAccount Load (0.8ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts"[0m
|
62869
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.tesu"], ["LIMIT", 1]]
|
62870
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
62871
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
62872
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
62873
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
62874
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
62875
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
62876
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
62877
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
62878
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
62879
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
62887
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (0.9ms)[0m [1m[31mROLLBACK[0m
|
62895
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
62896
|
+
Processing by SessionsController#create as HTML
|
62897
|
+
Parameters: {"provider"=>"bookingsync"}
|
62898
|
+
[1m[36mAccount Load (1.4ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
62899
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62900
|
+
[1m[36mAccount Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
62901
|
+
[1m[36mAccount Create (1.1ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62903
|
+
Redirected to http://test.host/admin
|
62904
|
+
Completed 302 Found in 10ms (ActiveRecord: 5.1ms)
|
62905
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
62906
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
62907
|
+
Processing by SessionsController#create as HTML
|
62908
|
+
Parameters: {"provider"=>"bookingsync"}
|
62909
|
+
[1m[36mAccount Load (1.4ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
62910
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62911
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
62912
|
+
[1m[36mAccount Create (1.0ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62914
|
+
Redirected to http://test.host/
|
62915
|
+
Completed 302 Found in 8ms (ActiveRecord: 4.7ms)
|
62916
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
62917
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
62918
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT COUNT(*) FROM "multi_applications_accounts"[0m
|
62919
|
+
Processing by SessionsController#create as HTML
|
62920
|
+
Parameters: {"provider"=>"bookingsync"}
|
62921
|
+
[1m[36mMultiApplicationsAccount Load (1.0ms)[0m [1m[34mSELECT "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[0m [["host", "test.host"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
62922
|
+
[1m[35m (1.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62923
|
+
[1m[36mMultiApplicationsAccount Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "test.host"], ["LIMIT", 1]]
|
62924
|
+
[1m[36mMultiApplicationsAccount Create (1.0ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62926
|
+
Redirected to http://test.host/
|
62927
|
+
Completed 302 Found in 8ms (ActiveRecord: 5.5ms)
|
62928
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT COUNT(*) FROM "multi_applications_accounts"[0m
|
62929
|
+
[1m[36mMultiApplicationsAccount Load (1.1ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" ORDER BY "multi_applications_accounts"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
62930
|
+
[1m[36mMultiApplicationsAccount Load (0.9ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" ORDER BY "multi_applications_accounts"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
62931
|
+
[1m[35m (1.1ms)[0m [1m[31mROLLBACK[0m
|
62932
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
62933
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
62934
|
+
Processing by SessionsController#create as HTML
|
62935
|
+
Parameters: {"provider"=>"bookingsync"}
|
62936
|
+
[1m[36mAccount Load (1.1ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
62937
|
+
[1m[35m (0.9ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62938
|
+
[1m[36mAccount Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
62939
|
+
[1m[36mAccount Create (1.1ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62941
|
+
Redirected to http://test.host/
|
62942
|
+
Completed 302 Found in 8ms (ActiveRecord: 5.1ms)
|
62943
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
62944
|
+
[1m[36mAccount Load (0.9ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
62945
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
62946
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
62947
|
+
Processing by SessionsController#destroy as HTML
|
62948
|
+
Redirected to http://test.host/
|
62949
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
62950
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
62951
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
62956
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (1.2ms)[0m [1m[31mROLLBACK[0m
|
62963
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (0.9ms)[0m [1m[31mROLLBACK[0m
|
62970
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
62977
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (1.3ms)[0m [1m[31mROLLBACK[0m
|
62983
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
62984
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62985
|
+
[1m[36mAccount Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
62986
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.650536"], ["updated_at", "2019-07-17 03:48:02.650536"], ["synced_id", 123]]
|
62987
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62988
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
62989
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
62990
|
+
[1m[36mAccount Load (0.8ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
62991
|
+
[1m[35m (1.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62992
|
+
[1m[36mAccount Create (1.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.663717"], ["updated_at", "2019-07-17 03:48:02.663717"]]
|
62993
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62994
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62995
|
+
[1m[36mAccount Update (0.9ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "synced_id" = $2 WHERE "accounts"."id" = $3[0m [["updated_at", "2019-07-17 03:48:02.667733"], ["synced_id", 0], ["id", 1990]]
|
62996
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62997
|
+
[1m[36mAccount Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 0], ["LIMIT", 1]]
|
62998
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
62999
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
63000
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63001
|
+
[1m[36mAccount Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
63002
|
+
[1m[36mAccount Create (1.1ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63004
|
+
[1m[36mAccount Load (0.8ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 1991], ["LIMIT", 1]]
|
63005
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63006
|
+
[1m[36mAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL AND "accounts"."id" != $1 LIMIT $2[0m [["id", 1991], ["LIMIT", 1]]
|
63007
|
+
[1m[36mAccount Update (0.9ms)[0m [1m[33mUPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5[0m [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2019-07-17 03:48:02.687575"], ["id", 1991]]
|
63008
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63009
|
+
[1m[36mAccount Load (0.9ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 1991], ["LIMIT", 1]]
|
63010
|
+
[1m[35m (0.9ms)[0m [1m[31mROLLBACK[0m
|
63011
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
63012
|
+
[1m[35m (1.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63013
|
+
[1m[36mAccount Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 1], ["LIMIT", 1]]
|
63014
|
+
[1m[36mAccount Create (1.0ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.698221"], ["updated_at", "2019-07-17 03:48:02.698221"], ["synced_id", 1]]
|
63015
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63016
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63017
|
+
[1m[36mAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 2], ["LIMIT", 1]]
|
63018
|
+
[1m[36mAccount Create (1.1ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.702971"], ["updated_at", "2019-07-17 03:48:02.702971"], ["synced_id", 2]]
|
63019
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63020
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63021
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 3], ["LIMIT", 1]]
|
63022
|
+
[1m[36mAccount Create (1.0ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.707408"], ["updated_at", "2019-07-17 03:48:02.707408"], ["synced_id", 3]]
|
63023
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63024
|
+
[1m[36mAccount Load (0.8ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 3], ["LIMIT", 1]]
|
63025
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
63026
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63027
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63028
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63029
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.715743"], ["updated_at", "2019-07-17 03:48:02.715743"], ["synced_id", 123]]
|
63030
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63031
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
63032
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63033
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63034
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63035
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.723076"], ["updated_at", "2019-07-17 03:48:02.723076"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63036
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63037
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
63038
|
+
[1m[36mAccount Load (0.8ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63039
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63040
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63041
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63043
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
63044
|
+
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
|
63045
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63046
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63047
|
+
[1m[36mAccount Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63048
|
+
[1m[36mAccount Create (0.7ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.736663"], ["updated_at", "2019-07-17 03:48:02.736663"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63049
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63050
|
+
[1m[36mAccount Load (0.7ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63051
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63052
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63053
|
+
[1m[36mAccount Create (1.0ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63055
|
+
[1m[35m (0.9ms)[0m [1m[31mROLLBACK[0m
|
63056
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63057
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63058
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63059
|
+
[1m[36mAccount Create (0.9ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.749882"], ["updated_at", "2019-07-17 03:48:02.749882"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63060
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63061
|
+
[1m[36mAccount Load (0.7ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63062
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63063
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63064
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63066
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63067
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63068
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63069
|
+
[1m[36mAccount Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63070
|
+
[1m[36mAccount Create (1.0ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.762731"], ["updated_at", "2019-07-17 03:48:02.762731"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63071
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63072
|
+
[1m[36mAccount Load (0.6ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63073
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63074
|
+
[1m[36mAccount Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63075
|
+
[1m[36mAccount Create (0.7ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63077
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63078
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63079
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63080
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63081
|
+
[1m[36mAccount Create (0.9ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.775561"], ["updated_at", "2019-07-17 03:48:02.775561"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63082
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63083
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63084
|
+
[1m[36mAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63085
|
+
[1m[36mAccount Create (0.9ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.780478"], ["updated_at", "2019-07-17 03:48:02.780478"], ["provider", "bookingsync"], ["synced_id", 123]]
|
63086
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63087
|
+
[1m[36mAccount Load (0.7ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63088
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63089
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3[0m [["synced_id", 123], ["id", 2005], ["LIMIT", 1]]
|
63090
|
+
[1m[36mAccount Update (0.9ms)[0m [1m[33mUPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63092
|
+
[1m[36mAccount Load (0.7ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 2005], ["LIMIT", 1]]
|
63093
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
63094
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63095
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63096
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63097
|
+
[1m[36mAccount Create (1.1ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.794438"], ["updated_at", "2019-07-17 03:48:02.794438"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63098
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63099
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63100
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63101
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.799345"], ["updated_at", "2019-07-17 03:48:02.799345"], ["provider", "bookingsync"], ["synced_id", 123]]
|
63102
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63103
|
+
[1m[36mAccount Load (0.6ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63104
|
+
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63105
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3[0m [["synced_id", 123], ["id", 2007], ["LIMIT", 1]]
|
63106
|
+
[1m[36mAccount Update (0.8ms)[0m [1m[33mUPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6[0m [["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
|
+
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63108
|
+
[1m[36mAccount Load (0.7ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 2007], ["LIMIT", 1]]
|
63109
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63110
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63111
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63112
|
+
[1m[36mAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63113
|
+
[1m[36mAccount Create (1.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.813393"], ["updated_at", "2019-07-17 03:48:02.813393"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63114
|
+
[1m[35m (1.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63115
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63116
|
+
[1m[36mAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63117
|
+
[1m[36mAccount Create (1.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.819665"], ["updated_at", "2019-07-17 03:48:02.819665"], ["provider", "bookingsync"], ["synced_id", 123]]
|
63118
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63119
|
+
[1m[36mAccount Load (1.0ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63120
|
+
[1m[35m (0.9ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63121
|
+
[1m[36mAccount Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3[0m [["synced_id", 123], ["id", 2009], ["LIMIT", 1]]
|
63122
|
+
[1m[36mAccount Update (1.0ms)[0m [1m[33mUPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63124
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63125
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
63126
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63127
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63128
|
+
[1m[36mAccount Create (1.0ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.834968"], ["updated_at", "2019-07-17 03:48:02.834968"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63129
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63130
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63131
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63132
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.839530"], ["updated_at", "2019-07-17 03:48:02.839530"], ["provider", "bookingsync"], ["synced_id", 123]]
|
63133
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63134
|
+
[1m[36mAccount Load (0.7ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63135
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63136
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3[0m [["synced_id", 123], ["id", 2011], ["LIMIT", 1]]
|
63137
|
+
[1m[36mAccount Update (1.0ms)[0m [1m[33mUPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63139
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
63140
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63141
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63142
|
+
[1m[36mAccount Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
63143
|
+
[1m[36mAccount Create (0.7ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63145
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
63146
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63147
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63148
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63149
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63151
|
+
[1m[35m (0.9ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63152
|
+
[1m[36mAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3[0m [["synced_id", 123], ["id", 2013], ["LIMIT", 1]]
|
63153
|
+
[1m[36mAccount Update (0.9ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_expires_at" = $3 WHERE "accounts"."id" = $4[0m [["updated_at", "2019-07-17 03:48:02.875117"], ["oauth_access_token", "refreshed_token"], ["oauth_expires_at", nil], ["id", 2013]]
|
63154
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63155
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63156
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63157
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63158
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63159
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63161
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63162
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63163
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63164
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63165
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63166
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63167
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:48:02.892491"], ["updated_at", "2019-07-17 03:48:02.892491"], ["synced_id", 123]]
|
63168
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63169
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
63170
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
63171
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63172
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63173
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63174
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63175
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63176
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63177
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
63178
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
63179
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63180
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
63181
|
+
[1m[35m (0.9ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63182
|
+
[1m[36mMultiApplicationsAccount Exists (1.6ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.host"], ["LIMIT", 1]]
|
63183
|
+
[1m[36mMultiApplicationsAccount Create (1.4ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63185
|
+
[1m[35m (0.9ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63186
|
+
[1m[36mMultiApplicationsAccount Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "test.host"], ["LIMIT", 1]]
|
63187
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63189
|
+
[1m[36mMultiApplicationsAccount Load (0.9ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3[0m [["host", "test.host"], ["synced_id", 123], ["LIMIT", 1]]
|
63190
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
63191
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
63192
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63193
|
+
[1m[36mAccount Exists (1.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63194
|
+
[1m[36mAccount Create (2.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:16.486197"], ["updated_at", "2019-07-17 03:58:16.486197"], ["synced_id", 123]]
|
63195
|
+
[1m[35m (1.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63196
|
+
[1m[36mAccount Load (1.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63197
|
+
[1m[35m (2.8ms)[0m [1m[31mROLLBACK[0m
|
63198
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
63199
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63200
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
63201
|
+
[1m[35m (2.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63202
|
+
[1m[36mApplication Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
63203
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
63204
|
+
[1m[36mApplication Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
63205
|
+
[1m[36mApplication Create (1.0ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63207
|
+
[1m[36mApplication Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
63208
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
63209
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
63210
|
+
[1m[35m (1.1ms)[0m [1m[31mROLLBACK[0m
|
63211
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63212
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63213
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
63214
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
63215
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
63216
|
+
[1m[36mApplication Create (1.0ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (1.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63218
|
+
[1m[36mApplication Load (1.0ms)[0m [1m[34mSELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
63219
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
63220
|
+
[1m[36mApplication Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
63221
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
63222
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
63223
|
+
[1m[36mApplication Exists (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "ABC"], ["LIMIT", 1]]
|
63224
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
63225
|
+
[1m[35m (1.2ms)[0m [1m[31mROLLBACK[0m
|
63226
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
63227
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63228
|
+
[1m[36mApplication Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
63229
|
+
[1m[36mApplication Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
63230
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
63231
|
+
[1m[36mApplication Create (1.2ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63233
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
63234
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
63235
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
63236
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
63237
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
63238
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63239
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
63240
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
63241
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
63242
|
+
[1m[36mApplication Create (1.0ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63244
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
63245
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
63246
|
+
[1m[36mApplication Exists (1.6ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
63247
|
+
[1m[35m (1.6ms)[0m [1m[31mROLLBACK[0m
|
63248
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
63249
|
+
[1m[35m (1.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63250
|
+
[1m[36mApplication Exists (1.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
63251
|
+
[1m[36mApplication Exists (2.4ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
63252
|
+
[1m[36mApplication Exists (2.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
63253
|
+
[1m[36mApplication Create (1.6ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (1.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63255
|
+
[1m[36mApplication Load (1.3ms)[0m [1m[34mSELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
63256
|
+
[1m[36mApplication Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
63257
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
63258
|
+
[1m[36mApplication Exists (1.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
63259
|
+
[1m[36mApplication Exists (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "TEST.HOST"], ["LIMIT", 1]]
|
63260
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
63261
|
+
[1m[36mApplication Exists (1.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
63262
|
+
[1m[35m (1.4ms)[0m [1m[31mROLLBACK[0m
|
63263
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
63264
|
+
[1m[35m (1.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63265
|
+
[1m[36mApplication Exists (1.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
63266
|
+
[1m[36mApplication Exists (1.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
63267
|
+
[1m[36mApplication Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
63268
|
+
[1m[36mApplication Create (1.4ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (1.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63270
|
+
[1m[36mApplication Load (1.2ms)[0m [1m[34mSELECT "applications".* FROM "applications" ORDER BY "applications"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
63271
|
+
[1m[36mApplication Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
63272
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
63273
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "def"], ["LIMIT", 1]]
|
63274
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.host"], ["LIMIT", 1]]
|
63275
|
+
[1m[36mApplication Exists (1.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "abc"], ["LIMIT", 1]]
|
63276
|
+
[1m[36mApplication Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "DEF"], ["LIMIT", 1]]
|
63277
|
+
[1m[35m (0.9ms)[0m [1m[31mROLLBACK[0m
|
63278
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
63279
|
+
Processing by SessionsController#create as HTML
|
63280
|
+
Parameters: {"provider"=>"bookingsync"}
|
63281
|
+
[1m[36mAccount Load (0.9ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63282
|
+
[1m[35m (1.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63283
|
+
[1m[36mAccount Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63284
|
+
[1m[36mAccount Create (1.5ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (1.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63286
|
+
Redirected to http://test.host/
|
63287
|
+
Completed 302 Found in 11ms (ActiveRecord: 5.9ms)
|
63288
|
+
[1m[35m (1.2ms)[0m [1m[31mROLLBACK[0m
|
63289
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
63290
|
+
Processing by SessionsController#create as HTML
|
63291
|
+
Parameters: {"provider"=>"bookingsync"}
|
63292
|
+
[1m[36mAccount Load (1.8ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63293
|
+
[1m[35m (1.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63294
|
+
[1m[36mAccount Exists (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63295
|
+
[1m[36mAccount Create (1.7ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (1.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63297
|
+
Redirected to http://test.host/admin
|
63298
|
+
Completed 302 Found in 12ms (ActiveRecord: 7.8ms)
|
63299
|
+
[1m[35m (1.5ms)[0m [1m[31mROLLBACK[0m
|
63300
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
63301
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
63302
|
+
Processing by SessionsController#create as HTML
|
63303
|
+
Parameters: {"provider"=>"bookingsync"}
|
63304
|
+
[1m[36mAccount Load (1.0ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63305
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63306
|
+
[1m[36mAccount Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63307
|
+
[1m[36mAccount Create (1.0ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63309
|
+
Redirected to http://test.host/
|
63310
|
+
Completed 302 Found in 7ms (ActiveRecord: 5.0ms)
|
63311
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
63312
|
+
[1m[36mAccount Load (1.0ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
63313
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
63314
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63315
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT COUNT(*) FROM "multi_applications_accounts"[0m
|
63316
|
+
Processing by SessionsController#create as HTML
|
63317
|
+
Parameters: {"provider"=>"bookingsync"}
|
63318
|
+
[1m[36mMultiApplicationsAccount Load (1.0ms)[0m [1m[34mSELECT "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[0m [["host", "test.host"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63319
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63320
|
+
[1m[36mMultiApplicationsAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "test.host"], ["LIMIT", 1]]
|
63321
|
+
[1m[36mMultiApplicationsAccount Create (1.4ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63323
|
+
Redirected to http://test.host/
|
63324
|
+
Completed 302 Found in 9ms (ActiveRecord: 4.9ms)
|
63325
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "multi_applications_accounts"[0m
|
63326
|
+
[1m[36mMultiApplicationsAccount Load (1.0ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" ORDER BY "multi_applications_accounts"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
63327
|
+
[1m[36mMultiApplicationsAccount Load (0.8ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" ORDER BY "multi_applications_accounts"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
63328
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63329
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63330
|
+
Processing by SessionsController#destroy as HTML
|
63331
|
+
Redirected to http://test.host/
|
63332
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
63333
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63334
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63339
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (1.2ms)[0m [1m[31mROLLBACK[0m
|
63347
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63355
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
63356
|
+
[1m[35m (1.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63357
|
+
[1m[36mApplication Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
63358
|
+
[1m[36mApplication Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "123"], ["LIMIT", 1]]
|
63359
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "456"], ["LIMIT", 1]]
|
63360
|
+
[1m[36mApplication Create (0.8ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63362
|
+
[1m[36mApplication Load (0.8ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
63363
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
63364
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63365
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63366
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63367
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
63368
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63369
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
63370
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63371
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63372
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63379
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63385
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63392
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
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
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63399
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63400
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63401
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
63402
|
+
[1m[36mAccount Create (1.1ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63404
|
+
[1m[36mAccount Load (1.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 2020], ["LIMIT", 1]]
|
63405
|
+
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63406
|
+
[1m[36mAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL AND "accounts"."id" != $1 LIMIT $2[0m [["id", 2020], ["LIMIT", 1]]
|
63407
|
+
[1m[36mAccount Update (0.9ms)[0m [1m[33mUPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5[0m [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2019-07-17 03:58:16.893249"], ["id", 2020]]
|
63408
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63409
|
+
[1m[36mAccount Load (0.7ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 2020], ["LIMIT", 1]]
|
63410
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63411
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63412
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63413
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63414
|
+
[1m[36mAccount Create (0.9ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:16.901900"], ["updated_at", "2019-07-17 03:58:16.901900"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63415
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63416
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63417
|
+
[1m[36mAccount Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63418
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:16.905981"], ["updated_at", "2019-07-17 03:58:16.905981"], ["provider", "bookingsync"], ["synced_id", 123]]
|
63419
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63420
|
+
[1m[36mAccount Load (0.7ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63421
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63422
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3[0m [["synced_id", 123], ["id", 2022], ["LIMIT", 1]]
|
63423
|
+
[1m[36mAccount Update (0.7ms)[0m [1m[33mUPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63425
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
63426
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
63427
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63428
|
+
[1m[36mAccount Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63429
|
+
[1m[36mAccount Create (0.9ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:16.919258"], ["updated_at", "2019-07-17 03:58:16.919258"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63430
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63431
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63432
|
+
[1m[36mAccount Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63433
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:16.923456"], ["updated_at", "2019-07-17 03:58:16.923456"], ["provider", "bookingsync"], ["synced_id", 123]]
|
63434
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63435
|
+
[1m[36mAccount Load (0.7ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63436
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63437
|
+
[1m[36mAccount Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3[0m [["synced_id", 123], ["id", 2024], ["LIMIT", 1]]
|
63438
|
+
[1m[36mAccount Update (0.8ms)[0m [1m[33mUPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63440
|
+
[1m[36mAccount Load (1.0ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 2024], ["LIMIT", 1]]
|
63441
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63442
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63443
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63444
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63445
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:16.937971"], ["updated_at", "2019-07-17 03:58:16.937971"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63446
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63447
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63448
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63449
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:16.942073"], ["updated_at", "2019-07-17 03:58:16.942073"], ["provider", "bookingsync"], ["synced_id", 123]]
|
63450
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63451
|
+
[1m[36mAccount Load (0.8ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63452
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63453
|
+
[1m[36mAccount Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3[0m [["synced_id", 123], ["id", 2026], ["LIMIT", 1]]
|
63454
|
+
[1m[36mAccount Update (1.5ms)[0m [1m[33mUPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63456
|
+
[1m[36mAccount Load (1.1ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 2026], ["LIMIT", 1]]
|
63457
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63458
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
63459
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63460
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63461
|
+
[1m[36mAccount Create (0.9ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:16.957934"], ["updated_at", "2019-07-17 03:58:16.957934"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63462
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63463
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63464
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63465
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:16.962113"], ["updated_at", "2019-07-17 03:58:16.962113"], ["provider", "bookingsync"], ["synced_id", 123]]
|
63466
|
+
[1m[35m (1.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63467
|
+
[1m[36mAccount Load (1.4ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63468
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63469
|
+
[1m[36mAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3[0m [["synced_id", 123], ["id", 2028], ["LIMIT", 1]]
|
63470
|
+
[1m[36mAccount Update (0.9ms)[0m [1m[33mUPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63472
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63473
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63474
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63475
|
+
[1m[36mAccount Exists (1.6ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63476
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:16.977279"], ["updated_at", "2019-07-17 03:58:16.977279"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63477
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63478
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
63479
|
+
[1m[36mAccount Load (1.0ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63480
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63481
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63482
|
+
[1m[36mAccount Create (1.7ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63484
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
63485
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63486
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63487
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63488
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63489
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:16.994678"], ["updated_at", "2019-07-17 03:58:16.994678"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63490
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63491
|
+
[1m[36mAccount Load (1.1ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63492
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63493
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63494
|
+
[1m[36mAccount Create (0.9ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63496
|
+
[1m[35m (0.9ms)[0m [1m[31mROLLBACK[0m
|
63497
|
+
[1m[35m (1.4ms)[0m [1m[35mBEGIN[0m
|
63498
|
+
[1m[35m (1.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63499
|
+
[1m[36mAccount Exists (2.0ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63500
|
+
[1m[36mAccount Create (1.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:17.012464"], ["updated_at", "2019-07-17 03:58:17.012464"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63501
|
+
[1m[35m (2.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63502
|
+
[1m[36mAccount Load (1.6ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63503
|
+
[1m[35m (1.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63504
|
+
[1m[36mAccount Exists (1.7ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63505
|
+
[1m[36mAccount Create (2.2ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (1.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63507
|
+
[1m[35m (1.5ms)[0m [1m[31mROLLBACK[0m
|
63508
|
+
[1m[35m (3.0ms)[0m [1m[35mBEGIN[0m
|
63509
|
+
[1m[35m (1.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63510
|
+
[1m[36mAccount Exists (1.7ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
63511
|
+
[1m[36mAccount Create (1.6ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:17.042061"], ["updated_at", "2019-07-17 03:58:17.042061"], ["provider", "bookingsync"], ["synced_id", 456]]
|
63512
|
+
[1m[35m (2.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63513
|
+
[1m[36mAccount Load (5.5ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT $3[0m [["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63514
|
+
[1m[35m (4.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63515
|
+
[1m[36mAccount Exists (3.5ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63516
|
+
[1m[36mAccount Create (2.0ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (1.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63518
|
+
[1m[35m (1.2ms)[0m [1m[31mROLLBACK[0m
|
63519
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
63520
|
+
[1m[35m (1.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63521
|
+
[1m[36mAccount Exists (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63522
|
+
[1m[36mAccount Create (1.4ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:17.076538"], ["updated_at", "2019-07-17 03:58:17.076538"], ["synced_id", 123]]
|
63523
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63524
|
+
[1m[35m (1.5ms)[0m [1m[31mROLLBACK[0m
|
63525
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
63526
|
+
[1m[35m (1.2ms)[0m [1m[31mROLLBACK[0m
|
63527
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63528
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63529
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63530
|
+
[1m[36mAccount Create (0.7ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:17.112292"], ["updated_at", "2019-07-17 03:58:17.112292"], ["synced_id", 123]]
|
63531
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63532
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
63533
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
63534
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63535
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63536
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:17.119889"], ["updated_at", "2019-07-17 03:58:17.119889"], ["synced_id", 123]]
|
63537
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63538
|
+
[1m[35m (1.3ms)[0m [1m[31mROLLBACK[0m
|
63539
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63540
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63541
|
+
[1m[36mAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63542
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63544
|
+
[1m[35m (1.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63545
|
+
[1m[36mAccount Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."id" != $2 LIMIT $3[0m [["synced_id", 123], ["id", 2040], ["LIMIT", 1]]
|
63546
|
+
[1m[36mAccount Update (1.2ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_expires_at" = $3 WHERE "accounts"."id" = $4[0m [["updated_at", "2019-07-17 03:58:17.161206"], ["oauth_access_token", "refreshed_token"], ["oauth_expires_at", nil], ["id", 2040]]
|
63547
|
+
[1m[35m (1.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63548
|
+
[1m[35m (1.2ms)[0m [1m[31mROLLBACK[0m
|
63549
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63550
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63551
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
63552
|
+
[1m[36mAccount Create (0.9ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63554
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63555
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63556
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63557
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 1], ["LIMIT", 1]]
|
63558
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:17.176994"], ["updated_at", "2019-07-17 03:58:17.176994"], ["synced_id", 1]]
|
63559
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63560
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63561
|
+
[1m[36mAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 2], ["LIMIT", 1]]
|
63562
|
+
[1m[36mAccount Create (0.9ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:17.180662"], ["updated_at", "2019-07-17 03:58:17.180662"], ["synced_id", 2]]
|
63563
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63564
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63565
|
+
[1m[36mAccount Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 3], ["LIMIT", 1]]
|
63566
|
+
[1m[36mAccount Create (0.8ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "synced_id") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:17.184688"], ["updated_at", "2019-07-17 03:58:17.184688"], ["synced_id", 3]]
|
63567
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63568
|
+
[1m[36mAccount Load (1.0ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 3], ["LIMIT", 1]]
|
63569
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
63570
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63571
|
+
[1m[35m (0.9ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63572
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
63573
|
+
[1m[36mAccount Create (1.0ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63575
|
+
[1m[35m (0.9ms)[0m [1m[31mROLLBACK[0m
|
63576
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
63577
|
+
[1m[36mAccount Load (0.9ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
63578
|
+
[1m[35m (1.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63579
|
+
[1m[36mAccount Create (1.6ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2019-07-17 03:58:17.208690"], ["updated_at", "2019-07-17 03:58:17.208690"]]
|
63580
|
+
[1m[35m (1.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63581
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63582
|
+
[1m[36mAccount Update (1.5ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "synced_id" = $2 WHERE "accounts"."id" = $3[0m [["updated_at", "2019-07-17 03:58:17.213782"], ["synced_id", 0], ["id", 2046]]
|
63583
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63584
|
+
[1m[36mAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 0], ["LIMIT", 1]]
|
63585
|
+
[1m[35m (0.9ms)[0m [1m[31mROLLBACK[0m
|
63586
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
63587
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63588
|
+
[1m[36mMultiApplicationsAccount Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "test.example"], ["LIMIT", 1]]
|
63589
|
+
[1m[36mMultiApplicationsAccount Create (1.2ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63591
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63592
|
+
[1m[36mApplication Exists (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.example"], ["LIMIT", 1]]
|
63593
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "123"], ["LIMIT", 1]]
|
63594
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "456"], ["LIMIT", 1]]
|
63595
|
+
[1m[36mApplication Create (1.2ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63597
|
+
[1m[36mApplication Load (1.2ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.example"], ["LIMIT", 1]]
|
63598
|
+
[1m[35m (1.0ms)[0m [1m[31mROLLBACK[0m
|
63599
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63600
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63601
|
+
[1m[36mMultiApplicationsAccount Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
63602
|
+
[1m[36mMultiApplicationsAccount Create (1.5ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63604
|
+
[1m[36mMultiApplicationsAccount Load (1.0ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" ORDER BY "multi_applications_accounts"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
63605
|
+
[1m[36mMultiApplicationsAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
63606
|
+
[1m[36mMultiApplicationsAccount Load (0.8ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts"[0m
|
63607
|
+
[1m[36mMultiApplicationsAccount Exists (1.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.tesu"], ["LIMIT", 1]]
|
63608
|
+
[1m[35m (1.5ms)[0m [1m[31mROLLBACK[0m
|
63609
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
63610
|
+
[1m[35m (1.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63611
|
+
[1m[36mMultiApplicationsAccount Exists (2.7ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "test.example"], ["LIMIT", 1]]
|
63612
|
+
[1m[36mMultiApplicationsAccount Create (2.9ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (1.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63614
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63615
|
+
[1m[36mApplication Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.example"], ["LIMIT", 1]]
|
63616
|
+
[1m[36mApplication Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "123"], ["LIMIT", 1]]
|
63617
|
+
[1m[36mApplication Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "456"], ["LIMIT", 1]]
|
63618
|
+
[1m[36mApplication Create (0.9ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63620
|
+
[1m[36mApplication Load (0.9ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.example"], ["LIMIT", 1]]
|
63621
|
+
[1m[35m (0.9ms)[0m [1m[31mROLLBACK[0m
|
63622
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
63623
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63624
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "test.example"], ["LIMIT", 1]]
|
63625
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63627
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63628
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.example"], ["LIMIT", 1]]
|
63629
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "123"], ["LIMIT", 1]]
|
63630
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "456"], ["LIMIT", 1]]
|
63631
|
+
[1m[36mApplication Create (0.8ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63633
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63634
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test2.example"], ["LIMIT", 1]]
|
63635
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "234"], ["LIMIT", 1]]
|
63636
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "567"], ["LIMIT", 1]]
|
63637
|
+
[1m[36mApplication Create (0.7ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63639
|
+
[1m[36mApplication Load (0.8ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "test.example"], ["LIMIT", 1]]
|
63640
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
63641
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63642
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63643
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" IS NULL AND "multi_applications_accounts"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
63644
|
+
[1m[36mMultiApplicationsAccount Create (1.2ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63646
|
+
[1m[36mMultiApplicationsAccount Load (0.7ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2[0m [["id", 2214], ["LIMIT", 1]]
|
63647
|
+
[1m[35m (1.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63648
|
+
[1m[36mMultiApplicationsAccount Exists (1.1ms)[0m [1m[34mSELECT 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[0m [["id", 2214], ["host", "example.test"], ["LIMIT", 1]]
|
63649
|
+
[1m[36mMultiApplicationsAccount Update (0.8ms)[0m [1m[33mUPDATE "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[0m [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2019-07-17 03:58:17.333219"], ["id", 2214]]
|
63650
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63651
|
+
[1m[36mMultiApplicationsAccount Load (1.0ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2[0m [["id", 2214], ["LIMIT", 1]]
|
63652
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63653
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63654
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63655
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "host"], ["LIMIT", 1]]
|
63656
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "client_id"], ["LIMIT", 1]]
|
63657
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "client_secret"], ["LIMIT", 1]]
|
63658
|
+
[1m[36mApplication Create (0.8ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63660
|
+
[1m[36mApplication Load (1.1ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "host"], ["LIMIT", 1]]
|
63661
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63662
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63663
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63664
|
+
[1m[36mMultiApplicationsAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
63665
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63667
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63668
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
63669
|
+
[1m[36mMultiApplicationsAccount Create (1.0ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63671
|
+
[1m[35m (1.4ms)[0m [1m[31mROLLBACK[0m
|
63672
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
63673
|
+
[1m[35m (0.9ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63674
|
+
[1m[36mMultiApplicationsAccount Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
63675
|
+
[1m[36mMultiApplicationsAccount Create (1.0ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63677
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63678
|
+
[1m[36mMultiApplicationsAccount Exists (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
63679
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63681
|
+
[1m[36mMultiApplicationsAccount Load (0.9ms)[0m [1m[34mSELECT "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[0m [["host", "example.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63682
|
+
[1m[35m (1.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63683
|
+
[1m[36mMultiApplicationsAccount Exists (1.4ms)[0m [1m[34mSELECT 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[0m [["synced_id", 123], ["id", 2217], ["host", "example.test"], ["LIMIT", 1]]
|
63684
|
+
[1m[36mMultiApplicationsAccount Update (1.4ms)[0m [1m[33mUPDATE "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[0m [["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
|
+
[1m[35m (1.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63686
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63687
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63688
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63689
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
63690
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63692
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63693
|
+
[1m[36mMultiApplicationsAccount Exists (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
63694
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63696
|
+
[1m[36mMultiApplicationsAccount Load (1.0ms)[0m [1m[34mSELECT "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[0m [["host", "example.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63697
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63698
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 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[0m [["synced_id", 123], ["id", 2219], ["host", "example.test"], ["LIMIT", 1]]
|
63699
|
+
[1m[36mMultiApplicationsAccount Update (0.9ms)[0m [1m[33mUPDATE "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[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63701
|
+
[1m[36mMultiApplicationsAccount Load (0.9ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2[0m [["id", 2219], ["LIMIT", 1]]
|
63702
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63703
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63704
|
+
[1m[35m (1.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63705
|
+
[1m[36mMultiApplicationsAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
63706
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63708
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63709
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
63710
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63712
|
+
[1m[36mMultiApplicationsAccount Load (1.0ms)[0m [1m[34mSELECT "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[0m [["host", "example.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63713
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63714
|
+
[1m[36mMultiApplicationsAccount Exists (1.1ms)[0m [1m[34mSELECT 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[0m [["synced_id", 123], ["id", 2221], ["host", "example.test"], ["LIMIT", 1]]
|
63715
|
+
[1m[36mMultiApplicationsAccount Update (0.9ms)[0m [1m[33mUPDATE "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[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63717
|
+
[1m[36mMultiApplicationsAccount Load (0.8ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."id" = $1 LIMIT $2[0m [["id", 2221], ["LIMIT", 1]]
|
63718
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63719
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63720
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63721
|
+
[1m[36mMultiApplicationsAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
63722
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (1.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63724
|
+
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63725
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
63726
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63728
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "multi_applications_accounts"[0m
|
63729
|
+
[1m[36mMultiApplicationsAccount Load (0.8ms)[0m [1m[34mSELECT "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[0m [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63730
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63731
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
|
63732
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63734
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "multi_applications_accounts"[0m
|
63735
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
63736
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63737
|
+
[1m[36mMultiApplicationsAccount Load (0.9ms)[0m [1m[34mSELECT "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[0m [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63738
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63739
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
|
63740
|
+
[1m[36mMultiApplicationsAccount Create (1.0ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63742
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63743
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
63744
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63746
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63747
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63748
|
+
[1m[36mMultiApplicationsAccount Load (0.7ms)[0m [1m[34mSELECT "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[0m [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63749
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63750
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
|
63751
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63753
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63754
|
+
[1m[36mMultiApplicationsAccount Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
63755
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63757
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63758
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
63759
|
+
[1m[36mMultiApplicationsAccount Load (0.8ms)[0m [1m[34mSELECT "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[0m [["host", "example3.test"], ["synced_id", 123], ["provider", "bookingsync"], ["LIMIT", 1]]
|
63760
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63761
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example3.test"], ["LIMIT", 1]]
|
63762
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63764
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63765
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 456], ["host", "example2.test"], ["LIMIT", 1]]
|
63766
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "provider", "synced_id", "host") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63768
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63769
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63770
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63771
|
+
[1m[36mMultiApplicationsAccount Exists (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 1], ["host", "example.test"], ["LIMIT", 1]]
|
63772
|
+
[1m[36mMultiApplicationsAccount Create (1.0ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63774
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63775
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 2], ["host", "example.test"], ["LIMIT", 1]]
|
63776
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63778
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63779
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 1], ["host", "example2.test"], ["LIMIT", 1]]
|
63780
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63782
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63783
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 2], ["host", "example2.test"], ["LIMIT", 1]]
|
63784
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT INTO "multi_applications_accounts" ("created_at", "updated_at", "synced_id", "host") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63786
|
+
[1m[36mMultiApplicationsAccount Load (0.8ms)[0m [1m[34mSELECT "multi_applications_accounts".* FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."host" = $1 AND "multi_applications_accounts"."synced_id" = $2 LIMIT $3[0m [["host", "example2.test"], ["synced_id", 1], ["LIMIT", 1]]
|
63787
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63788
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63789
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63790
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" IS NULL AND "multi_applications_accounts"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
63791
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63793
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63794
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63795
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63796
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
63797
|
+
[1m[36mMultiApplicationsAccount Create (0.9ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63799
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63800
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
63801
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "123"], ["LIMIT", 1]]
|
63802
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "456"], ["LIMIT", 1]]
|
63803
|
+
[1m[36mApplication Create (0.8ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63805
|
+
[1m[36mApplication Load (0.7ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
63806
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63807
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
63808
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63809
|
+
[1m[36mMultiApplicationsAccount Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "multi_applications_accounts" WHERE "multi_applications_accounts"."synced_id" = $1 AND "multi_applications_accounts"."host" = $2 LIMIT $3[0m [["synced_id", 123], ["host", "example.test"], ["LIMIT", 1]]
|
63810
|
+
[1m[36mMultiApplicationsAccount Create (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63812
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63813
|
+
[1m[36mApplication Exists (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
63814
|
+
[1m[36mApplication Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_id" = $1 LIMIT $2[0m [["client_id", "123"], ["LIMIT", 1]]
|
63815
|
+
[1m[36mApplication Exists (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "applications" WHERE "applications"."client_secret" = $1 LIMIT $2[0m [["client_secret", "456"], ["LIMIT", 1]]
|
63816
|
+
[1m[36mApplication Create (0.8ms)[0m [1m[32mINSERT INTO "applications" ("created_at", "updated_at", "host", "client_id", "client_secret") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63818
|
+
[1m[36mApplication Load (0.8ms)[0m [1m[34mSELECT "applications".* FROM "applications" WHERE "applications"."host" = $1 LIMIT $2[0m [["host", "example.test"], ["LIMIT", 1]]
|
63819
|
+
[1m[35m (1.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63820
|
+
[1m[36mMultiApplicationsAccount Exists (1.1ms)[0m [1m[34mSELECT 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[0m [["synced_id", 123], ["id", 2238], ["host", "example.test"], ["LIMIT", 1]]
|
63821
|
+
[1m[36mMultiApplicationsAccount Update (1.0ms)[0m [1m[33mUPDATE "multi_applications_accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_expires_at" = $3 WHERE "multi_applications_accounts"."id" = $4[0m [["updated_at", "2019-07-17 03:58:17.564031"], ["oauth_access_token", "refreshed_token"], ["oauth_expires_at", nil], ["id", 2238]]
|
63822
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63823
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63824
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63825
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
63826
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
63827
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
63828
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63829
|
+
[1m[35m (0.8ms)[0m [1m[31mROLLBACK[0m
|
63830
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63831
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|
63832
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
63833
|
+
[1m[35m (0.7ms)[0m [1m[31mROLLBACK[0m
|