bookingsync-engine 2.0.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/bookingsync/engine/auth_helpers.rb +2 -2
- data/lib/bookingsync/engine/version.rb +1 -1
- data/spec/controllers/authenticated_controller_spec.rb +2 -2
- data/spec/controllers/sessions_controller_spec.rb +3 -3
- data/spec/dummy/app/controllers/authenticated_controller.rb +1 -1
- data/spec/dummy/log/development.log +215 -0
- data/spec/dummy/log/test.log +2847 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 991fd8a5b7f3d06dce726891515ab74d47b3e7ee
|
4
|
+
data.tar.gz: a483c8ae6ba71fc8bccf6eef404f197af56f276a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51e80281200df8b8faede5c09a30e1693d67371c54f84ba394c8e5d7ee34a9fe5e7651f53a678b1e087618d91d584c494609ab991b74f4afd3ebcc91427fc51a
|
7
|
+
data.tar.gz: 5ea83f13940d0e710ac84e21b6a20a6a6455fd1458dc8e2b72c2dc43c4bd85b79760b7568d5998a24b3fa45ae1b945e02f316f834cc82dc05838c067efb90683
|
data/README.md
CHANGED
@@ -66,7 +66,7 @@ module BookingSync::Engine::AuthHelpers
|
|
66
66
|
#
|
67
67
|
# Renders the new authorization path with 401 Unauthorized status by default.
|
68
68
|
def request_authorization_for_xhr!
|
69
|
-
render
|
69
|
+
render plain: new_authorization_url, status: :unauthorized
|
70
70
|
end
|
71
71
|
|
72
72
|
# Request a new authorization for Embedded Apps.
|
@@ -74,7 +74,7 @@ module BookingSync::Engine::AuthHelpers
|
|
74
74
|
# Load the new authorization path using Javascript by default.
|
75
75
|
def request_authorization_for_embedded!
|
76
76
|
allow_bookingsync_iframe
|
77
|
-
render
|
77
|
+
render plain: "<script type='text/javascript'>top.location.href = " +
|
78
78
|
"'#{new_authorization_path}';</script>"
|
79
79
|
end
|
80
80
|
|
@@ -31,7 +31,7 @@ RSpec.describe AuthenticatedController, type: :controller do
|
|
31
31
|
before { BookingSync::Engine.embedded! }
|
32
32
|
|
33
33
|
it "renders the target url in response" do
|
34
|
-
|
34
|
+
get :index, xhr: true
|
35
35
|
expect(response.status).to eq(401)
|
36
36
|
expect(response.body).to eq("http://test.host/auth/bookingsync/?account_id=")
|
37
37
|
end
|
@@ -41,7 +41,7 @@ RSpec.describe AuthenticatedController, type: :controller do
|
|
41
41
|
before { BookingSync::Engine.standalone! }
|
42
42
|
|
43
43
|
it "renders the target url in response" do
|
44
|
-
|
44
|
+
get :index, xhr: true
|
45
45
|
expect(response.status).to eq(401)
|
46
46
|
expect(response.body).to eq("http://test.host/auth/bookingsync/?account_id=")
|
47
47
|
end
|
@@ -10,17 +10,17 @@ RSpec.describe SessionsController, type: :controller do
|
|
10
10
|
|
11
11
|
it "loads or creates account from omniauth auth" do
|
12
12
|
expect(Account).to receive(:from_omniauth).and_call_original
|
13
|
-
get :create, provider: :bookingsync
|
13
|
+
get :create, params: { provider: :bookingsync }
|
14
14
|
end
|
15
15
|
|
16
16
|
it "runs the account_authorized callback" do
|
17
17
|
expect(controller).to receive(:account_authorized)
|
18
|
-
get :create, provider: :bookingsync
|
18
|
+
get :create, params: { provider: :bookingsync }
|
19
19
|
end
|
20
20
|
|
21
21
|
it "redirects to after_bookingsync_sign_in_path" do
|
22
22
|
expect(controller).to receive(:after_bookingsync_sign_in_path).and_return("/admin")
|
23
|
-
get :create, provider: :bookingsync
|
23
|
+
get :create, params: { provider: :bookingsync }
|
24
24
|
expect(response).to redirect_to("/admin")
|
25
25
|
end
|
26
26
|
end
|
@@ -610,3 +610,218 @@
|
|
610
610
|
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
611
611
|
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
|
612
612
|
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140522110326')[0m
|
613
|
+
[1m[35m (130.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
614
|
+
[1m[35m (295.1ms)[0m [1m[35mCREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'[0m
|
615
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "accounts" CASCADE[0m
|
616
|
+
[1m[35m (7.8ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)[0m
|
617
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")[0m
|
618
|
+
[1m[35m (3.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
619
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
620
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20140522110454)[0m
|
621
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
622
|
+
(20140522110326);
|
623
|
+
|
624
|
+
[0m
|
625
|
+
[1m[35m (3.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
626
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
627
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
628
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-06-21 02:18:45.043686"], ["updated_at", "2017-06-21 02:18:45.043686"]]
|
629
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
630
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
631
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
632
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
633
|
+
[1m[35m (119.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
634
|
+
[1m[35m (285.2ms)[0m [1m[35mCREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'[0m
|
635
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "accounts" CASCADE[0m
|
636
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)[0m
|
637
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")[0m
|
638
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
639
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
640
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20140522110454)[0m
|
641
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
642
|
+
(20140522110326);
|
643
|
+
|
644
|
+
[0m
|
645
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
646
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
647
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
648
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-06-21 02:19:34.116066"], ["updated_at", "2017-06-21 02:19:34.116066"]]
|
649
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
650
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
651
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
652
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
653
|
+
[1m[35m (122.0ms)[0m [1m[35mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
654
|
+
[1m[35m (242.2ms)[0m [1m[35mCREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'[0m
|
655
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "accounts" CASCADE[0m
|
656
|
+
[1m[35m (8.4ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)[0m
|
657
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")[0m
|
658
|
+
[1m[35m (4.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
659
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
660
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20140522110454)[0m
|
661
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
662
|
+
(20140522110326);
|
663
|
+
|
664
|
+
[0m
|
665
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
666
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
667
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
668
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-06-21 02:20:05.523495"], ["updated_at", "2017-06-21 02:20:05.523495"]]
|
669
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
670
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
671
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
672
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
673
|
+
[1m[35m (118.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
674
|
+
[1m[35m (238.7ms)[0m [1m[35mCREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'[0m
|
675
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "accounts" CASCADE[0m
|
676
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)[0m
|
677
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")[0m
|
678
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
679
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
680
|
+
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20140522110454)[0m
|
681
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
682
|
+
(20140522110326);
|
683
|
+
|
684
|
+
[0m
|
685
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
686
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
687
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
688
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-06-21 02:20:17.627845"], ["updated_at", "2017-06-21 02:20:17.627845"]]
|
689
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
690
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
691
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
692
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
693
|
+
[1m[35m (119.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
694
|
+
[1m[35m (239.0ms)[0m [1m[35mCREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'[0m
|
695
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "accounts" CASCADE[0m
|
696
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)[0m
|
697
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")[0m
|
698
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
699
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
700
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20140522110454)[0m
|
701
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
702
|
+
(20140522110326);
|
703
|
+
|
704
|
+
[0m
|
705
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
706
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
707
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
708
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-06-21 02:23:15.045003"], ["updated_at", "2017-06-21 02:23:15.045003"]]
|
709
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
710
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
711
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
712
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
713
|
+
[1m[35m (138.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
714
|
+
[1m[35m (259.0ms)[0m [1m[35mCREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'[0m
|
715
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "accounts" CASCADE[0m
|
716
|
+
[1m[35m (13.0ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)[0m
|
717
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")[0m
|
718
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
719
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
720
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20140522110454)[0m
|
721
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
722
|
+
(20140522110326);
|
723
|
+
|
724
|
+
[0m
|
725
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
726
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
727
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
728
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-06-21 02:27:20.709613"], ["updated_at", "2017-06-21 02:27:20.709613"]]
|
729
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
730
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
731
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
732
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
733
|
+
[1m[35m (119.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
734
|
+
[1m[35m (237.3ms)[0m [1m[35mCREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'[0m
|
735
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "accounts" CASCADE[0m
|
736
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)[0m
|
737
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")[0m
|
738
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
739
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
740
|
+
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20140522110454)[0m
|
741
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
742
|
+
(20140522110326);
|
743
|
+
|
744
|
+
[0m
|
745
|
+
[1m[35m (3.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
746
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
747
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
748
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-06-21 02:27:28.290500"], ["updated_at", "2017-06-21 02:27:28.290500"]]
|
749
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
750
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
751
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
752
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
753
|
+
[1m[36m (122.3ms)[0m [1mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
754
|
+
[1m[35m (292.9ms)[0m CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'
|
755
|
+
[1m[36m (7.4ms)[0m [1mCREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) [0m
|
756
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")
|
757
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
758
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
759
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
760
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
|
761
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140522110326')[0m
|
762
|
+
[1m[36m (118.5ms)[0m [1mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
763
|
+
[1m[35m (242.3ms)[0m CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'
|
764
|
+
[1m[36m (6.8ms)[0m [1mCREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) [0m
|
765
|
+
[1m[35m (1.3ms)[0m CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")
|
766
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
767
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
768
|
+
[1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
769
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
|
770
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140522110326')[0m
|
771
|
+
[1m[36m (120.8ms)[0m [1mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
772
|
+
[1m[35m (236.0ms)[0m CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'
|
773
|
+
[1m[36m (6.8ms)[0m [1mCREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) [0m
|
774
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")
|
775
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
776
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
777
|
+
[1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
778
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
|
779
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140522110326')[0m
|
780
|
+
[1m[36m (118.8ms)[0m [1mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
781
|
+
[1m[35m (243.1ms)[0m CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'
|
782
|
+
[1m[36m (6.8ms)[0m [1mCREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) [0m
|
783
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")
|
784
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
785
|
+
[1m[35m (1.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
786
|
+
[1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
787
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
|
788
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140522110326')[0m
|
789
|
+
[1m[35m (123.3ms)[0m [1m[35mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
790
|
+
[1m[35m (246.0ms)[0m [1m[35mCREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'[0m
|
791
|
+
[1m[35m (5.7ms)[0m [1m[35mCREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)[0m
|
792
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")[0m
|
793
|
+
[1m[35m (3.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
794
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
795
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20140522110454')[0m
|
796
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
797
|
+
('20140522110326');
|
798
|
+
|
799
|
+
[0m
|
800
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
801
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
802
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
803
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", 2017-06-21 02:35:14 UTC], ["updated_at", 2017-06-21 02:35:14 UTC]]
|
804
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
805
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
806
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
807
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
808
|
+
[1m[35m (120.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
809
|
+
[1m[35m (235.9ms)[0m [1m[35mCREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'[0m
|
810
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "accounts" CASCADE[0m
|
811
|
+
[1m[35m (7.0ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)[0m
|
812
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")[0m
|
813
|
+
[1m[35m (2.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
814
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
815
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20140522110454)[0m
|
816
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
817
|
+
(20140522110326);
|
818
|
+
|
819
|
+
[0m
|
820
|
+
[1m[35m (3.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
821
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
822
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
823
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-06-21 02:35:21.438670"], ["updated_at", "2017-06-21 02:35:21.438670"]]
|
824
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
825
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
826
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
827
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
data/spec/dummy/log/test.log
CHANGED
@@ -10074,3 +10074,2850 @@ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
|
10074
10074
|
[1m[35m (0.1ms)[0m ROLLBACK
|
10075
10075
|
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
10076
10076
|
[1m[35m (0.0ms)[0m ROLLBACK
|
10077
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10078
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
10079
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10080
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10081
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10082
|
+
Processing by AuthenticatedController#index as HTML
|
10083
|
+
Completed 500 Internal Server Error in 92ms (ActiveRecord: 0.0ms)
|
10084
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
10085
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10086
|
+
Processing by AuthenticatedController#index as HTML
|
10087
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
10088
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
10089
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
10090
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10091
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10092
|
+
Processing by SessionsController#failure as HTML
|
10093
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
10094
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
|
10095
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
10096
|
+
Completed 200 OK in 20ms (Views: 15.1ms | ActiveRecord: 0.0ms)
|
10097
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
10098
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10099
|
+
Processing by SessionsController#failure as HTML
|
10100
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
10101
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms)
|
10102
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
10103
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
10104
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10105
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
10106
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10107
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10108
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10109
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10110
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10111
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10112
|
+
Processing by SessionsController#destroy as HTML
|
10113
|
+
Redirected to http://test.host/
|
10114
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
10115
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10116
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10117
|
+
Processing by SessionsController#destroy as HTML
|
10118
|
+
Redirected to http://test.host/signed_out
|
10119
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
10120
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10121
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10122
|
+
[1m[36mAccount Load (0.4ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
10123
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10124
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2017-06-21 02:19:36.643626"], ["updated_at", "2017-06-21 02:19:36.643626"]]
|
10125
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10126
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10127
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "synced_id" = $2 WHERE "accounts"."id" = $3[0m [["updated_at", "2017-06-21 02:19:36.645811"], ["synced_id", 0], ["id", 1]]
|
10128
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10129
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 0], ["LIMIT", 1]]
|
10130
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10131
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10132
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10133
|
+
[1m[35mSQL (0.4ms)[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", "2017-06-21 02:19:36.661896"], ["updated_at", "2017-06-21 02:19:36.661896"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925176"]]
|
10134
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
10135
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
10136
|
+
[1m[36mAccount Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 2], ["LIMIT", 1]]
|
10137
|
+
[1m[35mSQL (1.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:19:36.687108"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498184376"], ["id", 2]]
|
10138
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
10139
|
+
[1m[36mAccount Load (0.4ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
10140
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10141
|
+
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 2]]
|
10142
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
10143
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10144
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10145
|
+
[1m[35mSQL (1.0ms)[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", "2017-06-21 02:19:36.696527"], ["updated_at", "2017-06-21 02:19:36.696527"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925176"]]
|
10146
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
10147
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10148
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10149
|
+
[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", 3], ["LIMIT", 1]]
|
10150
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:19:36.703522"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498184376"], ["id", 3]]
|
10151
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
10152
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10153
|
+
[1m[36mAccount Load (0.4ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 3], ["LIMIT", 1]]
|
10154
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
10155
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10156
|
+
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 3]]
|
10157
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
10158
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10159
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10160
|
+
[1m[36mAccount Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10161
|
+
[1m[35mSQL (0.5ms)[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", "2017-06-21 02:19:36.713228"], ["updated_at", "2017-06-21 02:19:36.713228"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1498097976"]]
|
10162
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10163
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
10164
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10165
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10166
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10167
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:19:36.721320"], ["updated_at", "2017-06-21 02:19:36.721320"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10168
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10169
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10170
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10171
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:19:36.724365"], ["updated_at", "2017-06-21 02:19:36.724365"], ["provider", "bookingsync"], ["synced_id", 123]]
|
10172
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10173
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
10174
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10175
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 6], ["LIMIT", 1]]
|
10176
|
+
[1m[35mSQL (0.4ms)[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", "2017-06-21 02:19:36.728056"], ["id", 6]]
|
10177
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10178
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10179
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10180
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10181
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10182
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:19:36.733089"], ["updated_at", "2017-06-21 02:19:36.733089"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10183
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10184
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10185
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10186
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:19:36.735187"], ["updated_at", "2017-06-21 02:19:36.735187"], ["provider", "bookingsync"], ["synced_id", 123]]
|
10187
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10188
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
10189
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10190
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 8], ["LIMIT", 1]]
|
10191
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:19:36.738542"], ["id", 8]]
|
10192
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10193
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 8], ["LIMIT", 1]]
|
10194
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10195
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10196
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10197
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10198
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:19:36.742836"], ["updated_at", "2017-06-21 02:19:36.742836"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10199
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10200
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10201
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10202
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:19:36.744833"], ["updated_at", "2017-06-21 02:19:36.744833"], ["provider", "bookingsync"], ["synced_id", 123]]
|
10203
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10204
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10205
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10206
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 10], ["LIMIT", 1]]
|
10207
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:19:36.747646"], ["id", 10]]
|
10208
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10209
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 10], ["LIMIT", 1]]
|
10210
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10211
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10212
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10213
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10214
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:19:36.752218"], ["updated_at", "2017-06-21 02:19:36.752218"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10215
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10216
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
10217
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10218
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10219
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10220
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:19:36.758660"], ["updated_at", "2017-06-21 02:19:36.758660"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10221
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10222
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
10223
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10224
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10225
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10226
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10227
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:19:36.762787"], ["updated_at", "2017-06-21 02:19:36.762787"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10228
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10229
|
+
[1m[36mAccount Load (0.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]]
|
10230
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10231
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10232
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:19:36.766658"], ["updated_at", "2017-06-21 02:19:36.766658"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10233
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10234
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10235
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10236
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10237
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10238
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:19:36.770223"], ["updated_at", "2017-06-21 02:19:36.770223"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10239
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10240
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
10241
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10242
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10243
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:19:36.773505"], ["updated_at", "2017-06-21 02:19:36.773505"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10244
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10245
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10246
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10247
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10248
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10249
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:19:36.776872"], ["updated_at", "2017-06-21 02:19:36.776872"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10250
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10251
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
10252
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10253
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10254
|
+
[1m[35mSQL (0.4ms)[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", "2017-06-21 02:19:36.780411"], ["updated_at", "2017-06-21 02:19:36.780411"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10255
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10256
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10257
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10258
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10259
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10260
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10261
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
10262
|
+
[1m[35mSQL (0.2ms)[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", "2017-06-21 02:19:36.826505"], ["updated_at", "2017-06-21 02:19:36.826505"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"]]
|
10263
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10264
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10265
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL AND ("accounts"."id" != $1) LIMIT $2[0m [["id", 19], ["LIMIT", 1]]
|
10266
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:19:36.828250"], ["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["id", 19]]
|
10267
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10268
|
+
[1m[36mAccount Load (0.4ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 19], ["LIMIT", 1]]
|
10269
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10270
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10271
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10272
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10273
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10274
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10275
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10276
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10277
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10278
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10279
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10280
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10281
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10282
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10283
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10284
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10285
|
+
Processing by AuthenticatedController#index as HTML
|
10286
|
+
Completed 500 Internal Server Error in 84ms (ActiveRecord: 0.0ms)
|
10287
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10288
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10289
|
+
Processing by AuthenticatedController#index as HTML
|
10290
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
10291
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
10292
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
10293
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10294
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10295
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10296
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10297
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10298
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10299
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10300
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10301
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10302
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10303
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10304
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10305
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10306
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10307
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10308
|
+
[1m[36mAccount Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10309
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:07.987617"], ["updated_at", "2017-06-21 02:20:07.987617"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10310
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10311
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10312
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10313
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:07.991205"], ["updated_at", "2017-06-21 02:20:07.991205"], ["provider", "bookingsync"], ["synced_id", 123]]
|
10314
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10315
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
10316
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10317
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 2], ["LIMIT", 1]]
|
10318
|
+
[1m[35mSQL (0.4ms)[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", "2017-06-21 02:20:07.996172"], ["id", 2]]
|
10319
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10320
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10321
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10322
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10323
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10324
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:08.001666"], ["updated_at", "2017-06-21 02:20:08.001666"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10325
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10326
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10327
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10328
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:08.003376"], ["updated_at", "2017-06-21 02:20:08.003376"], ["provider", "bookingsync"], ["synced_id", 123]]
|
10329
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10330
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10331
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10332
|
+
[1m[36mAccount Exists (0.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", 4], ["LIMIT", 1]]
|
10333
|
+
[1m[35mSQL (0.2ms)[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", "2017-06-21 02:20:08.005526"], ["id", 4]]
|
10334
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10335
|
+
[1m[36mAccount Load (0.1ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 4], ["LIMIT", 1]]
|
10336
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10337
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10338
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10339
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10340
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:08.008883"], ["updated_at", "2017-06-21 02:20:08.008883"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10341
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10342
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10343
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10344
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:08.010531"], ["updated_at", "2017-06-21 02:20:08.010531"], ["provider", "bookingsync"], ["synced_id", 123]]
|
10345
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10346
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10347
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10348
|
+
[1m[36mAccount Exists (0.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", 6], ["LIMIT", 1]]
|
10349
|
+
[1m[35mSQL (0.2ms)[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", "2017-06-21 02:20:08.012851"], ["id", 6]]
|
10350
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10351
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 6], ["LIMIT", 1]]
|
10352
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10353
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10354
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10355
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10356
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:08.016168"], ["updated_at", "2017-06-21 02:20:08.016168"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10357
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10358
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
10359
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10360
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10361
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10362
|
+
[1m[35mSQL (0.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", "2017-06-21 02:20:08.022469"], ["updated_at", "2017-06-21 02:20:08.022469"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10363
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10364
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
10365
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10366
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10367
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10368
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10369
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:08.026536"], ["updated_at", "2017-06-21 02:20:08.026536"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10370
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10371
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10372
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10373
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10374
|
+
[1m[35mSQL (0.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", "2017-06-21 02:20:08.028893"], ["updated_at", "2017-06-21 02:20:08.028893"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10375
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10376
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10377
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10378
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10379
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10380
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:08.031963"], ["updated_at", "2017-06-21 02:20:08.031963"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10381
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10382
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
10383
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10384
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10385
|
+
[1m[35mSQL (0.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", "2017-06-21 02:20:08.035752"], ["updated_at", "2017-06-21 02:20:08.035752"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10386
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10387
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10388
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10389
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10390
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10391
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:08.038410"], ["updated_at", "2017-06-21 02:20:08.038410"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10392
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10393
|
+
[1m[36mAccount Load (0.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]]
|
10394
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10395
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10396
|
+
[1m[35mSQL (0.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", "2017-06-21 02:20:08.040573"], ["updated_at", "2017-06-21 02:20:08.040573"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10397
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10398
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10399
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10400
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10401
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
10402
|
+
[1m[35mSQL (0.2ms)[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", "2017-06-21 02:20:08.043378"], ["updated_at", "2017-06-21 02:20:08.043378"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"]]
|
10403
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10404
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10405
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL AND ("accounts"."id" != $1) LIMIT $2[0m [["id", 15], ["LIMIT", 1]]
|
10406
|
+
[1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:20:08.045009"], ["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["id", 15]]
|
10407
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10408
|
+
[1m[36mAccount Load (0.6ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 15], ["LIMIT", 1]]
|
10409
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10410
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10411
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
10412
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10413
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:08.055253"], ["updated_at", "2017-06-21 02:20:08.055253"]]
|
10414
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10415
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10416
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "synced_id" = $2 WHERE "accounts"."id" = $3[0m [["updated_at", "2017-06-21 02:20:08.056896"], ["synced_id", 0], ["id", 16]]
|
10417
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10418
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 0], ["LIMIT", 1]]
|
10419
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10420
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10421
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10422
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10423
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:20:08.067165"], ["updated_at", "2017-06-21 02:20:08.067165"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1498098008"]]
|
10424
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10425
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10426
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10427
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10428
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:20:08.070477"], ["updated_at", "2017-06-21 02:20:08.070477"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925208"]]
|
10429
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
10430
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10431
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10432
|
+
[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", 18], ["LIMIT", 1]]
|
10433
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:20:08.089827"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498184408"], ["id", 18]]
|
10434
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
10435
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10436
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 18], ["LIMIT", 1]]
|
10437
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
10438
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10439
|
+
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 18]]
|
10440
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
10441
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10442
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10443
|
+
[1m[35mSQL (0.5ms)[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", "2017-06-21 02:20:08.097619"], ["updated_at", "2017-06-21 02:20:08.097619"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925208"]]
|
10444
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
10445
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10446
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 19], ["LIMIT", 1]]
|
10447
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:20:08.101740"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498184408"], ["id", 19]]
|
10448
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
10449
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
10450
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10451
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 19]]
|
10452
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
10453
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10454
|
+
Processing by SessionsController#destroy as HTML
|
10455
|
+
Redirected to http://test.host/
|
10456
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
10457
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10458
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10459
|
+
Processing by SessionsController#destroy as HTML
|
10460
|
+
Redirected to http://test.host/signed_out
|
10461
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
10462
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10463
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
10464
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10465
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10466
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10467
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
10468
|
+
Processing by SessionsController#create as HTML
|
10469
|
+
Parameters: {"provider"=>"bookingsync"}
|
10470
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10471
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10472
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10473
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:20:08.122228"], ["updated_at", "2017-06-21 02:20:08.122228"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10474
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10475
|
+
Redirected to http://test.host/
|
10476
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
10477
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10478
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10479
|
+
Processing by SessionsController#failure as HTML
|
10480
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
10481
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms)
|
10482
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
10483
|
+
Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 0.0ms)
|
10484
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10485
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10486
|
+
Processing by SessionsController#failure as HTML
|
10487
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
10488
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.0ms)
|
10489
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
10490
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
10491
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10492
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10493
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10494
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10495
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10496
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10497
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10498
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10499
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10500
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10501
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10502
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10503
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10504
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
10505
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10506
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
10507
|
+
Processing by AuthenticatedController#index as HTML
|
10508
|
+
Completed 500 Internal Server Error in 82ms (ActiveRecord: 0.0ms)
|
10509
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10510
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10511
|
+
Processing by AuthenticatedController#index as HTML
|
10512
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
10513
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
10514
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
10515
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10516
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10517
|
+
Processing by SessionsController#failure as HTML
|
10518
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
10519
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
|
10520
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
10521
|
+
Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 0.0ms)
|
10522
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10523
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10524
|
+
Processing by SessionsController#failure as HTML
|
10525
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
10526
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms)
|
10527
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
10528
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
10529
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10530
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10531
|
+
Processing by SessionsController#destroy as HTML
|
10532
|
+
Redirected to http://test.host/signed_out
|
10533
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
10534
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10535
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10536
|
+
Processing by SessionsController#destroy as HTML
|
10537
|
+
Redirected to http://test.host/
|
10538
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
10539
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10540
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10541
|
+
Processing by SessionsController#create as HTML
|
10542
|
+
Parameters: {"provider"=>"bookingsync"}
|
10543
|
+
[1m[36mAccount Load (0.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]]
|
10544
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10545
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10546
|
+
[1m[35mSQL (0.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", "2017-06-21 02:20:19.868263"], ["updated_at", "2017-06-21 02:20:19.868263"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10547
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10548
|
+
Redirected to http://test.host/
|
10549
|
+
Completed 302 Found in 27ms (ActiveRecord: 7.7ms)
|
10550
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10551
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10552
|
+
Processing by SessionsController#create as HTML
|
10553
|
+
Parameters: {"provider"=>"bookingsync"}
|
10554
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10555
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10556
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10557
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:20:19.874300"], ["updated_at", "2017-06-21 02:20:19.874300"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10558
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10559
|
+
Redirected to http://test.host/admin
|
10560
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
10561
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10562
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10563
|
+
Processing by SessionsController#create as HTML
|
10564
|
+
Parameters: {"provider"=>"bookingsync"}
|
10565
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
10566
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10567
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10568
|
+
[1m[35mSQL (0.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", "2017-06-21 02:20:19.879831"], ["updated_at", "2017-06-21 02:20:19.879831"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10569
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10570
|
+
Redirected to http://test.host/
|
10571
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
|
10572
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10573
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10574
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10575
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10576
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10577
|
+
[1m[35mSQL (0.2ms)[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", "2017-06-21 02:20:19.920066"], ["updated_at", "2017-06-21 02:20:19.920066"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925219"]]
|
10578
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
10579
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10580
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10581
|
+
[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", 4], ["LIMIT", 1]]
|
10582
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:20:19.935190"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498184419"], ["id", 4]]
|
10583
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
10584
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10585
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 4], ["LIMIT", 1]]
|
10586
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
10587
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10588
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 4]]
|
10589
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
10590
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10591
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10592
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:20:19.942817"], ["updated_at", "2017-06-21 02:20:19.942817"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925219"]]
|
10593
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
10594
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10595
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 5], ["LIMIT", 1]]
|
10596
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:20:19.946162"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498184419"], ["id", 5]]
|
10597
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
10598
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
10599
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10600
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 5]]
|
10601
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
10602
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10603
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10604
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10605
|
+
[1m[35mSQL (0.2ms)[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", "2017-06-21 02:20:19.951076"], ["updated_at", "2017-06-21 02:20:19.951076"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1498098019"]]
|
10606
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10607
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10608
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10609
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10610
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10611
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:19.953761"], ["updated_at", "2017-06-21 02:20:19.953761"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10612
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10613
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
10614
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10615
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10616
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10617
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:20:19.959987"], ["updated_at", "2017-06-21 02:20:19.959987"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10618
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10619
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
10620
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10621
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10622
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10623
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10624
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:19.963742"], ["updated_at", "2017-06-21 02:20:19.963742"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10625
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10626
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10627
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10628
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10629
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:20:19.966656"], ["updated_at", "2017-06-21 02:20:19.966656"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10630
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10631
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10632
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10633
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10634
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10635
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:19.970140"], ["updated_at", "2017-06-21 02:20:19.970140"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10636
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10637
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10638
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10639
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10640
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:20:19.972942"], ["updated_at", "2017-06-21 02:20:19.972942"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10641
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10642
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10643
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
10644
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10645
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10646
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:19.977403"], ["updated_at", "2017-06-21 02:20:19.977403"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10647
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10648
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
10649
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10650
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10651
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:20:19.980414"], ["updated_at", "2017-06-21 02:20:19.980414"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10652
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10653
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10654
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10655
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10656
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10657
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:19.983784"], ["updated_at", "2017-06-21 02:20:19.983784"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10658
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10659
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10660
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10661
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:19.985761"], ["updated_at", "2017-06-21 02:20:19.985761"], ["provider", "bookingsync"], ["synced_id", 123]]
|
10662
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10663
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
10664
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10665
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 16], ["LIMIT", 1]]
|
10666
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:20:19.988682"], ["id", 16]]
|
10667
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10668
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10669
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10670
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10671
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10672
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:19.992397"], ["updated_at", "2017-06-21 02:20:19.992397"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10673
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10674
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10675
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10676
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:19.994359"], ["updated_at", "2017-06-21 02:20:19.994359"], ["provider", "bookingsync"], ["synced_id", 123]]
|
10677
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10678
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10679
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10680
|
+
[1m[36mAccount Exists (0.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", 18], ["LIMIT", 1]]
|
10681
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:20:19.997001"], ["id", 18]]
|
10682
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10683
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 18], ["LIMIT", 1]]
|
10684
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10685
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10686
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10687
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10688
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:20.001261"], ["updated_at", "2017-06-21 02:20:20.001261"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10689
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10690
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10691
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10692
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:20.003740"], ["updated_at", "2017-06-21 02:20:20.003740"], ["provider", "bookingsync"], ["synced_id", 123]]
|
10693
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10694
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10695
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10696
|
+
[1m[36mAccount Exists (0.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", 20], ["LIMIT", 1]]
|
10697
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:20:20.006730"], ["id", 20]]
|
10698
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10699
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 20], ["LIMIT", 1]]
|
10700
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10701
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10702
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10703
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
10704
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:20:20.011868"], ["updated_at", "2017-06-21 02:20:20.011868"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"]]
|
10705
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10706
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10707
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL AND ("accounts"."id" != $1) LIMIT $2[0m [["id", 21], ["LIMIT", 1]]
|
10708
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:20:20.014037"], ["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["id", 21]]
|
10709
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10710
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 21], ["LIMIT", 1]]
|
10711
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10712
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10713
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
10714
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10715
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2017-06-21 02:20:20.022629"], ["updated_at", "2017-06-21 02:20:20.022629"]]
|
10716
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10717
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10718
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "synced_id" = $2 WHERE "accounts"."id" = $3[0m [["updated_at", "2017-06-21 02:20:20.024564"], ["synced_id", 0], ["id", 22]]
|
10719
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10720
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 0], ["LIMIT", 1]]
|
10721
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10722
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10723
|
+
Processing by SessionsController#destroy as HTML
|
10724
|
+
Redirected to http://test.host/signed_out
|
10725
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
10726
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10727
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10728
|
+
Processing by SessionsController#destroy as HTML
|
10729
|
+
Redirected to http://test.host/
|
10730
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
10731
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10732
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10733
|
+
Processing by SessionsController#failure as HTML
|
10734
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
10735
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms)
|
10736
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
10737
|
+
Completed 200 OK in 15ms (Views: 10.3ms | ActiveRecord: 0.0ms)
|
10738
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10739
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10740
|
+
Processing by SessionsController#failure as HTML
|
10741
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
10742
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms)
|
10743
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
10744
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
10745
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10746
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10747
|
+
Processing by SessionsController#create as HTML
|
10748
|
+
Parameters: {"provider"=>"bookingsync"}
|
10749
|
+
[1m[36mAccount Load (0.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]]
|
10750
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10751
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10752
|
+
[1m[35mSQL (0.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", "2017-06-21 02:23:17.480247"], ["updated_at", "2017-06-21 02:23:17.480247"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10753
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10754
|
+
Redirected to http://test.host/admin
|
10755
|
+
Completed 302 Found in 31ms (ActiveRecord: 8.1ms)
|
10756
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10757
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10758
|
+
Processing by SessionsController#create as HTML
|
10759
|
+
Parameters: {"provider"=>"bookingsync"}
|
10760
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10761
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10762
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10763
|
+
[1m[35mSQL (0.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", "2017-06-21 02:23:17.485976"], ["updated_at", "2017-06-21 02:23:17.485976"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10764
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10765
|
+
Redirected to http://test.host/
|
10766
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
|
10767
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10768
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10769
|
+
Processing by SessionsController#create as HTML
|
10770
|
+
Parameters: {"provider"=>"bookingsync"}
|
10771
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
10772
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10773
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10774
|
+
[1m[35mSQL (0.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", "2017-06-21 02:23:17.493393"], ["updated_at", "2017-06-21 02:23:17.493393"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10775
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10776
|
+
Redirected to http://test.host/
|
10777
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
|
10778
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10779
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10780
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10781
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10782
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10783
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10784
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10785
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10786
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10787
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10788
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10789
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10790
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10791
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:23:17.504762"], ["updated_at", "2017-06-21 02:23:17.504762"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925397"]]
|
10792
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
10793
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10794
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10795
|
+
[1m[36mAccount Exists (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 4], ["LIMIT", 1]]
|
10796
|
+
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:23:17.523270"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498184597"], ["id", 4]]
|
10797
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
10798
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10799
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 4], ["LIMIT", 1]]
|
10800
|
+
[1m[36mAccount Load (0.4ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
10801
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10802
|
+
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 4]]
|
10803
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
10804
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10805
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10806
|
+
[1m[35mSQL (0.5ms)[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", "2017-06-21 02:23:17.534598"], ["updated_at", "2017-06-21 02:23:17.534598"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925397"]]
|
10807
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
10808
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10809
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 5], ["LIMIT", 1]]
|
10810
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:23:17.538920"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498184597"], ["id", 5]]
|
10811
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
10812
|
+
[1m[36mAccount Load (0.4ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
10813
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
10814
|
+
[1m[35mSQL (0.7ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 5]]
|
10815
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
10816
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10817
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10818
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10819
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:23:17.546895"], ["updated_at", "2017-06-21 02:23:17.546895"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1498098197"]]
|
10820
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10821
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10822
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10823
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10824
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10825
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
10826
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10827
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2017-06-21 02:23:17.597283"], ["updated_at", "2017-06-21 02:23:17.597283"]]
|
10828
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10829
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10830
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "synced_id" = $2 WHERE "accounts"."id" = $3[0m [["updated_at", "2017-06-21 02:23:17.598737"], ["synced_id", 0], ["id", 7]]
|
10831
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10832
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 0], ["LIMIT", 1]]
|
10833
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
10834
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10835
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10836
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
10837
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:23:17.609767"], ["updated_at", "2017-06-21 02:23:17.609767"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"]]
|
10838
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10839
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10840
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL AND ("accounts"."id" != $1) LIMIT $2[0m [["id", 8], ["LIMIT", 1]]
|
10841
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:23:17.612116"], ["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["id", 8]]
|
10842
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10843
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 8], ["LIMIT", 1]]
|
10844
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10845
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10846
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10847
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10848
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:23:17.616356"], ["updated_at", "2017-06-21 02:23:17.616356"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10849
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10850
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
10851
|
+
[1m[36mAccount Load (0.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]]
|
10852
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10853
|
+
[1m[36mAccount Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10854
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:23:17.625181"], ["updated_at", "2017-06-21 02:23:17.625181"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10855
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10856
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
10857
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10858
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10859
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10860
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10861
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:23:17.628790"], ["updated_at", "2017-06-21 02:23:17.628790"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10862
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10863
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10864
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10865
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10866
|
+
[1m[35mSQL (0.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", "2017-06-21 02:23:17.631432"], ["updated_at", "2017-06-21 02:23:17.631432"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10867
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10868
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10869
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10870
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10871
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10872
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:23:17.634151"], ["updated_at", "2017-06-21 02:23:17.634151"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10873
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10874
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10875
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10876
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10877
|
+
[1m[35mSQL (0.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", "2017-06-21 02:23:17.636293"], ["updated_at", "2017-06-21 02:23:17.636293"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10878
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10879
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10880
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10881
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10882
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10883
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:23:17.638760"], ["updated_at", "2017-06-21 02:23:17.638760"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10884
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10885
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10886
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10887
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10888
|
+
[1m[35mSQL (0.4ms)[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", "2017-06-21 02:23:17.641427"], ["updated_at", "2017-06-21 02:23:17.641427"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
10889
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10890
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10891
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10892
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10893
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10894
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:23:17.644994"], ["updated_at", "2017-06-21 02:23:17.644994"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10895
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10896
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10897
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10898
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:23:17.646646"], ["updated_at", "2017-06-21 02:23:17.646646"], ["provider", "bookingsync"], ["synced_id", 123]]
|
10899
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10900
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10901
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10902
|
+
[1m[36mAccount Exists (0.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", 18], ["LIMIT", 1]]
|
10903
|
+
[1m[35mSQL (0.2ms)[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", "2017-06-21 02:23:17.648990"], ["id", 18]]
|
10904
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10905
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10906
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10907
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10908
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10909
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:23:17.651870"], ["updated_at", "2017-06-21 02:23:17.651870"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10910
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10911
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10912
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10913
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:23:17.653549"], ["updated_at", "2017-06-21 02:23:17.653549"], ["provider", "bookingsync"], ["synced_id", 123]]
|
10914
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10915
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
10916
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10917
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 20], ["LIMIT", 1]]
|
10918
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:23:17.656079"], ["id", 20]]
|
10919
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10920
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 20], ["LIMIT", 1]]
|
10921
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10922
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10923
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10924
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
10925
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:23:17.659770"], ["updated_at", "2017-06-21 02:23:17.659770"], ["provider", "bookingsync"], ["synced_id", 456]]
|
10926
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10927
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10928
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
10929
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:23:17.661461"], ["updated_at", "2017-06-21 02:23:17.661461"], ["provider", "bookingsync"], ["synced_id", 123]]
|
10930
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10931
|
+
[1m[36mAccount Load (0.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]]
|
10932
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
10933
|
+
[1m[36mAccount Exists (0.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", 22], ["LIMIT", 1]]
|
10934
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:23:17.663542"], ["id", 22]]
|
10935
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
10936
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 22], ["LIMIT", 1]]
|
10937
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10938
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10939
|
+
Processing by AuthenticatedController#index as HTML
|
10940
|
+
Completed 500 Internal Server Error in 73ms (ActiveRecord: 0.0ms)
|
10941
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10942
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10943
|
+
Processing by AuthenticatedController#index as HTML
|
10944
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
10945
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
10946
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
10947
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10948
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10949
|
+
Processing by AuthenticatedController#index as JS
|
10950
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
10951
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10952
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10953
|
+
Processing by AuthenticatedController#index as JS
|
10954
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
10955
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10956
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10957
|
+
Processing by AuthenticatedController#index as HTML
|
10958
|
+
Completed 500 Internal Server Error in 94ms (ActiveRecord: 0.0ms)
|
10959
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10960
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10961
|
+
Processing by AuthenticatedController#index as HTML
|
10962
|
+
Completed 500 Internal Server Error in 88ms (ActiveRecord: 0.0ms)
|
10963
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10964
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10965
|
+
Processing by AuthenticatedController#index as HTML
|
10966
|
+
Completed 500 Internal Server Error in 93ms (ActiveRecord: 0.0ms)
|
10967
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10968
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10969
|
+
Processing by AuthenticatedController#index as HTML
|
10970
|
+
Completed 500 Internal Server Error in 93ms (ActiveRecord: 0.0ms)
|
10971
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10972
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10973
|
+
Processing by AuthenticatedController#index as HTML
|
10974
|
+
Completed 500 Internal Server Error in 97ms (ActiveRecord: 0.0ms)
|
10975
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10976
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10977
|
+
Processing by AuthenticatedController#index as HTML
|
10978
|
+
Rendering text template
|
10979
|
+
Rendered text template (0.0ms)
|
10980
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
10981
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
10982
|
+
Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
|
10983
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10984
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10985
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10986
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10987
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10988
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10989
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10990
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10991
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10992
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10993
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
10994
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10995
|
+
Processing by AuthenticatedController#index as JS
|
10996
|
+
Completed 500 Internal Server Error in 87ms (ActiveRecord: 0.0ms)
|
10997
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
10998
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
10999
|
+
Processing by AuthenticatedController#index as JS
|
11000
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
11001
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11002
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11003
|
+
Processing by AuthenticatedController#index as HTML
|
11004
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
11005
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11006
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11007
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11008
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11009
|
+
Processing by AuthenticatedController#index as HTML
|
11010
|
+
Rendering text template
|
11011
|
+
Rendered text template (0.0ms)
|
11012
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11013
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11014
|
+
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
11015
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11016
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11017
|
+
Processing by SessionsController#create as HTML
|
11018
|
+
Parameters: {"provider"=>"bookingsync"}
|
11019
|
+
[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]]
|
11020
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11021
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11022
|
+
[1m[35mSQL (0.6ms)[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", "2017-06-21 02:27:23.136115"], ["updated_at", "2017-06-21 02:27:23.136115"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11023
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11024
|
+
Redirected to http://test.host/
|
11025
|
+
Completed 302 Found in 34ms (ActiveRecord: 9.8ms)
|
11026
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11027
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11028
|
+
Processing by SessionsController#create as HTML
|
11029
|
+
Parameters: {"provider"=>"bookingsync"}
|
11030
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
11031
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11032
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11033
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:23.142909"], ["updated_at", "2017-06-21 02:27:23.142909"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11034
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11035
|
+
Redirected to http://test.host/admin
|
11036
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
11037
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11038
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
11039
|
+
Processing by SessionsController#create as HTML
|
11040
|
+
Parameters: {"provider"=>"bookingsync"}
|
11041
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
11042
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11043
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11044
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:23.151387"], ["updated_at", "2017-06-21 02:27:23.151387"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11045
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11046
|
+
Redirected to http://test.host/
|
11047
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
|
11048
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11049
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11050
|
+
Processing by SessionsController#failure as HTML
|
11051
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
11052
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms)
|
11053
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11054
|
+
Completed 200 OK in 12ms (Views: 7.6ms | ActiveRecord: 0.0ms)
|
11055
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11056
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11057
|
+
Processing by SessionsController#failure as HTML
|
11058
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
11059
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms)
|
11060
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11061
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
11062
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11063
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11064
|
+
Processing by SessionsController#destroy as HTML
|
11065
|
+
Redirected to http://test.host/
|
11066
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11067
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11068
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11069
|
+
Processing by SessionsController#destroy as HTML
|
11070
|
+
Redirected to http://test.host/signed_out
|
11071
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11072
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11073
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11074
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11075
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11076
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11077
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11078
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:23.215194"], ["updated_at", "2017-06-21 02:27:23.215194"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11079
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11080
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
11081
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
11082
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11083
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11084
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:23.220939"], ["updated_at", "2017-06-21 02:27:23.220939"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11085
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11086
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
11087
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11088
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11089
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11090
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11091
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:23.224850"], ["updated_at", "2017-06-21 02:27:23.224850"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11092
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11093
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
11094
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11095
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11096
|
+
[1m[35mSQL (0.4ms)[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", "2017-06-21 02:27:23.228385"], ["updated_at", "2017-06-21 02:27:23.228385"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11097
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11098
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11099
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11100
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11101
|
+
[1m[36mAccount Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11102
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:23.232602"], ["updated_at", "2017-06-21 02:27:23.232602"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11103
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11104
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
11105
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11106
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11107
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:23.235476"], ["updated_at", "2017-06-21 02:27:23.235476"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11108
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11109
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11110
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11111
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11112
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11113
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:23.238420"], ["updated_at", "2017-06-21 02:27:23.238420"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11114
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11115
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
11116
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11117
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11118
|
+
[1m[35mSQL (0.4ms)[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", "2017-06-21 02:27:23.242101"], ["updated_at", "2017-06-21 02:27:23.242101"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11119
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11120
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11121
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11122
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11123
|
+
[1m[36mAccount Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11124
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:23.247086"], ["updated_at", "2017-06-21 02:27:23.247086"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11125
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11126
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11127
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11128
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:23.249768"], ["updated_at", "2017-06-21 02:27:23.249768"], ["provider", "bookingsync"], ["synced_id", 123]]
|
11129
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11130
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
11131
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11132
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 13], ["LIMIT", 1]]
|
11133
|
+
[1m[35mSQL (0.6ms)[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", "2017-06-21 02:27:23.254162"], ["id", 13]]
|
11134
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11135
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11136
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11137
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11138
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11139
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:23.259224"], ["updated_at", "2017-06-21 02:27:23.259224"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11140
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11141
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11142
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11143
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:23.261347"], ["updated_at", "2017-06-21 02:27:23.261347"], ["provider", "bookingsync"], ["synced_id", 123]]
|
11144
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11145
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
11146
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11147
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 15], ["LIMIT", 1]]
|
11148
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:23.265178"], ["id", 15]]
|
11149
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11150
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 15], ["LIMIT", 1]]
|
11151
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11152
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11153
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11154
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11155
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:23.270501"], ["updated_at", "2017-06-21 02:27:23.270501"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11156
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11157
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11158
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11159
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:23.273461"], ["updated_at", "2017-06-21 02:27:23.273461"], ["provider", "bookingsync"], ["synced_id", 123]]
|
11160
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11161
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
11162
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11163
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 17], ["LIMIT", 1]]
|
11164
|
+
[1m[35mSQL (0.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", "2017-06-21 02:27:23.277738"], ["id", 17]]
|
11165
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11166
|
+
[1m[36mAccount Load (0.5ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 17], ["LIMIT", 1]]
|
11167
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11168
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11169
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11170
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
11171
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:23.284523"], ["updated_at", "2017-06-21 02:27:23.284523"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"]]
|
11172
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11173
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11174
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL AND ("accounts"."id" != $1) LIMIT $2[0m [["id", 18], ["LIMIT", 1]]
|
11175
|
+
[1m[35mSQL (0.8ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:27:23.287230"], ["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["id", 18]]
|
11176
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11177
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 18], ["LIMIT", 1]]
|
11178
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11179
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11180
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11181
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:23.293523"], ["updated_at", "2017-06-21 02:27:23.293523"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925643"]]
|
11182
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
11183
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11184
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11185
|
+
[1m[36mAccount Exists (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 19], ["LIMIT", 1]]
|
11186
|
+
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:27:23.312796"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498184843"], ["id", 19]]
|
11187
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
11188
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11189
|
+
[1m[36mAccount Load (0.4ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 19], ["LIMIT", 1]]
|
11190
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
11191
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11192
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 19]]
|
11193
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
11194
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11195
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11196
|
+
[1m[35mSQL (0.5ms)[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", "2017-06-21 02:27:23.321254"], ["updated_at", "2017-06-21 02:27:23.321254"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925643"]]
|
11197
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
11198
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11199
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 20], ["LIMIT", 1]]
|
11200
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:27:23.325176"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498184843"], ["id", 20]]
|
11201
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
11202
|
+
[1m[36mAccount Load (0.4ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
11203
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
11204
|
+
[1m[35mSQL (0.6ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 20]]
|
11205
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
11206
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11207
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11208
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11209
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:23.334141"], ["updated_at", "2017-06-21 02:27:23.334141"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1498098443"]]
|
11210
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11211
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11212
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11213
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
11214
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11215
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:23.341877"], ["updated_at", "2017-06-21 02:27:23.341877"]]
|
11216
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11217
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11218
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "synced_id" = $2 WHERE "accounts"."id" = $3[0m [["updated_at", "2017-06-21 02:27:23.343585"], ["synced_id", 0], ["id", 22]]
|
11219
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11220
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 0], ["LIMIT", 1]]
|
11221
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11222
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11223
|
+
Processing by AuthenticatedController#index as HTML
|
11224
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
11225
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11226
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
11227
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11228
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11229
|
+
Processing by AuthenticatedController#index as HTML
|
11230
|
+
Rendering text template
|
11231
|
+
Rendered text template (0.0ms)
|
11232
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11233
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11234
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
11235
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11236
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11237
|
+
Processing by AuthenticatedController#index as JS
|
11238
|
+
Rendering text template
|
11239
|
+
Rendered text template (0.0ms)
|
11240
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11241
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11242
|
+
Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
11243
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11244
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11245
|
+
Processing by AuthenticatedController#index as JS
|
11246
|
+
Rendering text template
|
11247
|
+
Rendered text template (0.0ms)
|
11248
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11249
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11250
|
+
Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
11251
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11252
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
11253
|
+
Processing by SessionsController#create as HTML
|
11254
|
+
Parameters: {"provider"=>"bookingsync"}
|
11255
|
+
[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]]
|
11256
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11257
|
+
[1m[36mAccount Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11258
|
+
[1m[35mSQL (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", "2017-06-21 02:27:30.802913"], ["updated_at", "2017-06-21 02:27:30.802913"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11259
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11260
|
+
Redirected to http://test.host/admin
|
11261
|
+
Completed 302 Found in 44ms (ActiveRecord: 12.6ms)
|
11262
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11263
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11264
|
+
Processing by SessionsController#create as HTML
|
11265
|
+
Parameters: {"provider"=>"bookingsync"}
|
11266
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
11267
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11268
|
+
[1m[36mAccount Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11269
|
+
[1m[35mSQL (0.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", "2017-06-21 02:27:30.813367"], ["updated_at", "2017-06-21 02:27:30.813367"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11270
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11271
|
+
Redirected to http://test.host/
|
11272
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.5ms)
|
11273
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11274
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11275
|
+
Processing by SessionsController#create as HTML
|
11276
|
+
Parameters: {"provider"=>"bookingsync"}
|
11277
|
+
[1m[36mAccount Load (0.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]]
|
11278
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11279
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11280
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:30.821852"], ["updated_at", "2017-06-21 02:27:30.821852"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11281
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11282
|
+
Redirected to http://test.host/
|
11283
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
|
11284
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11285
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11286
|
+
Processing by SessionsController#destroy as HTML
|
11287
|
+
Redirected to http://test.host/signed_out
|
11288
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11289
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11290
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
11291
|
+
Processing by SessionsController#destroy as HTML
|
11292
|
+
Redirected to http://test.host/
|
11293
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
11294
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11295
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11296
|
+
Processing by SessionsController#failure as HTML
|
11297
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
11298
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
|
11299
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11300
|
+
Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 0.0ms)
|
11301
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11302
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11303
|
+
Processing by SessionsController#failure as HTML
|
11304
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
11305
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.0ms)
|
11306
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11307
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
11308
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11309
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11310
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11311
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11312
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11313
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11314
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11315
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11316
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11317
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11318
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11319
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11320
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
11321
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11322
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:30.871541"], ["updated_at", "2017-06-21 02:27:30.871541"]]
|
11323
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11324
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11325
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "synced_id" = $2 WHERE "accounts"."id" = $3[0m [["updated_at", "2017-06-21 02:27:30.873898"], ["synced_id", 0], ["id", 4]]
|
11326
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11327
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 0], ["LIMIT", 1]]
|
11328
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11329
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11330
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11331
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11332
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:30.884216"], ["updated_at", "2017-06-21 02:27:30.884216"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11333
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11334
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
11335
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
11336
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11337
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11338
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:30.889831"], ["updated_at", "2017-06-21 02:27:30.889831"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11339
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11340
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
11341
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11342
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11343
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11344
|
+
[1m[36mAccount Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11345
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:30.895920"], ["updated_at", "2017-06-21 02:27:30.895920"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11346
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11347
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
11348
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11349
|
+
[1m[36mAccount Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11350
|
+
[1m[35mSQL (0.4ms)[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", "2017-06-21 02:27:30.900309"], ["updated_at", "2017-06-21 02:27:30.900309"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11351
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11352
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11353
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11354
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11355
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11356
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:30.904510"], ["updated_at", "2017-06-21 02:27:30.904510"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11357
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11358
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
11359
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11360
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11361
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:30.907593"], ["updated_at", "2017-06-21 02:27:30.907593"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11362
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11363
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11364
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11365
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11366
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11367
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:30.911178"], ["updated_at", "2017-06-21 02:27:30.911178"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11368
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11369
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
11370
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11371
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11372
|
+
[1m[35mSQL (0.4ms)[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", "2017-06-21 02:27:30.915170"], ["updated_at", "2017-06-21 02:27:30.915170"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
11373
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11374
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11375
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11376
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11377
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11378
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:30.919617"], ["updated_at", "2017-06-21 02:27:30.919617"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11379
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11380
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11381
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11382
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:30.921835"], ["updated_at", "2017-06-21 02:27:30.921835"], ["provider", "bookingsync"], ["synced_id", 123]]
|
11383
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11384
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
11385
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11386
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 14], ["LIMIT", 1]]
|
11387
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:30.926543"], ["id", 14]]
|
11388
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11389
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11390
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11391
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11392
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11393
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:30.930548"], ["updated_at", "2017-06-21 02:27:30.930548"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11394
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11395
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11396
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11397
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:30.932686"], ["updated_at", "2017-06-21 02:27:30.932686"], ["provider", "bookingsync"], ["synced_id", 123]]
|
11398
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11399
|
+
[1m[36mAccount Load (0.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]]
|
11400
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11401
|
+
[1m[36mAccount Exists (0.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", 16], ["LIMIT", 1]]
|
11402
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:30.935256"], ["id", 16]]
|
11403
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11404
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 16], ["LIMIT", 1]]
|
11405
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11406
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11407
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11408
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
11409
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:30.939083"], ["updated_at", "2017-06-21 02:27:30.939083"], ["provider", "bookingsync"], ["synced_id", 456]]
|
11410
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11411
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11412
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11413
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:27:30.941232"], ["updated_at", "2017-06-21 02:27:30.941232"], ["provider", "bookingsync"], ["synced_id", 123]]
|
11414
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11415
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
11416
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11417
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 18], ["LIMIT", 1]]
|
11418
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:30.944333"], ["id", 18]]
|
11419
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11420
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 18], ["LIMIT", 1]]
|
11421
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11422
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11423
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11424
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11425
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:30.950436"], ["updated_at", "2017-06-21 02:27:30.950436"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1498098450"]]
|
11426
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11427
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
11428
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11429
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11430
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:30.954547"], ["updated_at", "2017-06-21 02:27:30.954547"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925650"]]
|
11431
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
11432
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11433
|
+
[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", 20], ["LIMIT", 1]]
|
11434
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:27:30.971996"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498184850"], ["id", 20]]
|
11435
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
11436
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
11437
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11438
|
+
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 20]]
|
11439
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
11440
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11441
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
11442
|
+
[1m[35mSQL (0.5ms)[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", "2017-06-21 02:27:30.978118"], ["updated_at", "2017-06-21 02:27:30.978118"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925650"]]
|
11443
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
11444
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11445
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11446
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 21], ["LIMIT", 1]]
|
11447
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:27:30.982773"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498184850"], ["id", 21]]
|
11448
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
11449
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11450
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 21], ["LIMIT", 1]]
|
11451
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
11452
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11453
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 21]]
|
11454
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
11455
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11456
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11457
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11458
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11459
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
11460
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:27:31.024658"], ["updated_at", "2017-06-21 02:27:31.024658"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"]]
|
11461
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11462
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
11463
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL AND ("accounts"."id" != $1) LIMIT $2[0m [["id", 22], ["LIMIT", 1]]
|
11464
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:27:31.027159"], ["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["id", 22]]
|
11465
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
11466
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 22], ["LIMIT", 1]]
|
11467
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
11468
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11469
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
11470
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11471
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11472
|
+
[1m[36mAccount Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11473
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1498098649"], ["created_at", "2017-06-21 02:30:49.616800"], ["updated_at", "2017-06-21 02:30:49.616800"]]
|
11474
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11475
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11476
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11477
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
11478
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925849"], ["created_at", "2017-06-21 02:30:49.620388"], ["updated_at", "2017-06-21 02:30:49.620388"]]
|
11479
|
+
[1m[35m (0.3ms)[0m COMMIT
|
11480
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11481
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11482
|
+
[1m[36mAccount Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
11483
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498185049"], ["updated_at", "2017-06-21 02:30:49.636497"], ["id", 2]]
|
11484
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
11485
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11486
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 2]]
|
11487
|
+
[1m[35mAccount Load (0.4ms)[0m SELECT "accounts".* FROM "accounts"
|
11488
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11489
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "accounts" WHERE "accounts"."id" = $1 [["id", 2]]
|
11490
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
11491
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11492
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11493
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925849"], ["created_at", "2017-06-21 02:30:49.652613"], ["updated_at", "2017-06-21 02:30:49.652613"]]
|
11494
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
11495
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11496
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 3) LIMIT 1[0m
|
11497
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498185049"], ["updated_at", "2017-06-21 02:30:49.656423"], ["id", 3]]
|
11498
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
11499
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT "accounts".* FROM "accounts"
|
11500
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11501
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "accounts" WHERE "accounts"."id" = $1 [["id", 3]]
|
11502
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
11503
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11504
|
+
[1m[36mAccount Load (0.5ms)[0m [1mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1[0m
|
11505
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11506
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2017-06-21 02:30:49.665148"], ["updated_at", "2017-06-21 02:30:49.665148"]]
|
11507
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11508
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11509
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "synced_id" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3 [["synced_id", 0], ["updated_at", "2017-06-21 02:30:49.666807"], ["id", 4]]
|
11510
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11511
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1
|
11512
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11513
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11514
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11515
|
+
[1m[35mAccount Exists (0.4ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
11516
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:30:49.677833"], ["updated_at", "2017-06-21 02:30:49.677833"]]
|
11517
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11518
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11519
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
11520
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-21 02:30:49.680142"], ["updated_at", "2017-06-21 02:30:49.680142"]]
|
11521
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11522
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
11523
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11524
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 6) LIMIT 1[0m
|
11525
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-06-21 02:30:49.683451"], ["id", 6]]
|
11526
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11527
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11528
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11529
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11530
|
+
[1m[36mAccount Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
11531
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:30:49.688104"], ["updated_at", "2017-06-21 02:30:49.688104"]]
|
11532
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11533
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11534
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11535
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-21 02:30:49.690535"], ["updated_at", "2017-06-21 02:30:49.690535"]]
|
11536
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11537
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
11538
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11539
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 8) LIMIT 1
|
11540
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "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", "2017-06-21 02:30:49.694351"], ["id", 8]]
|
11541
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11542
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 8]]
|
11543
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11544
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11545
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11546
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
11547
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:30:49.698832"], ["updated_at", "2017-06-21 02:30:49.698832"]]
|
11548
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11549
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11550
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11551
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-21 02:30:49.700773"], ["updated_at", "2017-06-21 02:30:49.700773"]]
|
11552
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11553
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
11554
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11555
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 10) LIMIT 1
|
11556
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "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", "2017-06-21 02:30:49.703871"], ["id", 10]]
|
11557
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11558
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 10]]
|
11559
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11560
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11561
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11562
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
11563
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:30:49.707776"], ["updated_at", "2017-06-21 02:30:49.707776"]]
|
11564
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11565
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "accounts"
|
11566
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
11567
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11568
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11569
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:30:49.714113"], ["updated_at", "2017-06-21 02:30:49.714113"]]
|
11570
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11571
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "accounts"
|
11572
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11573
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11574
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11575
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
11576
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:30:49.717888"], ["updated_at", "2017-06-21 02:30:49.717888"]]
|
11577
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11578
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
11579
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11580
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11581
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:30:49.720711"], ["updated_at", "2017-06-21 02:30:49.720711"]]
|
11582
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11583
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11584
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11585
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11586
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
11587
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:30:49.724310"], ["updated_at", "2017-06-21 02:30:49.724310"]]
|
11588
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11589
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
11590
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11591
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
11592
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:30:49.726817"], ["updated_at", "2017-06-21 02:30:49.726817"]]
|
11593
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11594
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11595
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11596
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11597
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
11598
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:30:49.730113"], ["updated_at", "2017-06-21 02:30:49.730113"]]
|
11599
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11600
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
11601
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11602
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11603
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:30:49.732838"], ["updated_at", "2017-06-21 02:30:49.732838"]]
|
11604
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11605
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11606
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11607
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11608
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1[0m
|
11609
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["created_at", "2017-06-21 02:30:49.735719"], ["updated_at", "2017-06-21 02:30:49.735719"]]
|
11610
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11611
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11612
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" IS NULL AND "accounts"."id" != 19) LIMIT 1[0m
|
11613
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2017-06-21 02:30:49.737730"], ["id", 19]]
|
11614
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11615
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 19]]
|
11616
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
11617
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11618
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
11619
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11620
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11621
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11622
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11623
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11624
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11625
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11626
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11627
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11628
|
+
Processing by SessionsController#create as HTML
|
11629
|
+
Parameters: {"params"=>{"provider"=>"bookingsync"}}
|
11630
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
11631
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11632
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11633
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:30:49.762670"], ["updated_at", "2017-06-21 02:30:49.762670"]]
|
11634
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11635
|
+
Redirected to http://test.host/admin
|
11636
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
|
11637
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11638
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11639
|
+
Processing by SessionsController#create as HTML
|
11640
|
+
Parameters: {"params"=>{"provider"=>"bookingsync"}}
|
11641
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
11642
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11643
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
11644
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:30:49.771075"], ["updated_at", "2017-06-21 02:30:49.771075"]]
|
11645
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11646
|
+
Redirected to http://test.host/
|
11647
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
11648
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11649
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11650
|
+
Processing by SessionsController#create as HTML
|
11651
|
+
Parameters: {"params"=>{"provider"=>"bookingsync"}}
|
11652
|
+
[1m[36mAccount Load (0.4ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
11653
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11654
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11655
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:30:49.780302"], ["updated_at", "2017-06-21 02:30:49.780302"]]
|
11656
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11657
|
+
Redirected to http://test.host/
|
11658
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
|
11659
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11660
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11661
|
+
Processing by SessionsController#failure as HTML
|
11662
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms)
|
11663
|
+
Completed 200 OK in 19ms (Views: 18.5ms | ActiveRecord: 0.0ms)
|
11664
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11665
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11666
|
+
Processing by SessionsController#failure as HTML
|
11667
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.0ms)
|
11668
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
11669
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11670
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11671
|
+
Processing by SessionsController#destroy as HTML
|
11672
|
+
Redirected to http://test.host/
|
11673
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11674
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11675
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11676
|
+
Processing by SessionsController#destroy as HTML
|
11677
|
+
Redirected to http://test.host/signed_out
|
11678
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11679
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11680
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11681
|
+
Processing by AuthenticatedController#index as HTML
|
11682
|
+
Rendered text template (0.0ms)
|
11683
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11684
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
|
11685
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
11686
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11687
|
+
Processing by AuthenticatedController#index as HTML
|
11688
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
11689
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11690
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11691
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11692
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11693
|
+
Processing by AuthenticatedController#index as HTML
|
11694
|
+
Parameters: {"xhr"=>true}
|
11695
|
+
Rendered text template (0.0ms)
|
11696
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11697
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
11698
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11699
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11700
|
+
Processing by AuthenticatedController#index as HTML
|
11701
|
+
Parameters: {"xhr"=>true}
|
11702
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
11703
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11704
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11705
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11706
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11707
|
+
Processing by SessionsController#destroy as HTML
|
11708
|
+
Redirected to http://test.host/
|
11709
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11710
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
11711
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11712
|
+
Processing by SessionsController#destroy as HTML
|
11713
|
+
Redirected to http://test.host/signed_out
|
11714
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11715
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11716
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11717
|
+
Processing by SessionsController#failure as HTML
|
11718
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
|
11719
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11720
|
+
Completed 200 OK in 15ms (Views: 15.1ms | ActiveRecord: 0.0ms)
|
11721
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11722
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11723
|
+
Processing by SessionsController#failure as HTML
|
11724
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms)
|
11725
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11726
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
11727
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11728
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11729
|
+
Processing by SessionsController#create as HTML
|
11730
|
+
Parameters: {"params"=>{"provider"=>"bookingsync"}}
|
11731
|
+
[1m[35mAccount Load (0.4ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
11732
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11733
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
11734
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:02.315518"], ["updated_at", "2017-06-21 02:32:02.315518"]]
|
11735
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11736
|
+
Redirected to http://test.host/admin
|
11737
|
+
Completed 302 Found in 31ms (ActiveRecord: 5.6ms)
|
11738
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11739
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11740
|
+
Processing by SessionsController#create as HTML
|
11741
|
+
Parameters: {"params"=>{"provider"=>"bookingsync"}}
|
11742
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
11743
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11744
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11745
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:02.323393"], ["updated_at", "2017-06-21 02:32:02.323393"]]
|
11746
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11747
|
+
Redirected to http://test.host/
|
11748
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
|
11749
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11750
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11751
|
+
Processing by SessionsController#create as HTML
|
11752
|
+
Parameters: {"params"=>{"provider"=>"bookingsync"}}
|
11753
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
11754
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11755
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
11756
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:02.329835"], ["updated_at", "2017-06-21 02:32:02.329835"]]
|
11757
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11758
|
+
Redirected to http://test.host/
|
11759
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
|
11760
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11761
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11762
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11763
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11764
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11765
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11766
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11767
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11768
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11769
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11770
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11771
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11772
|
+
Processing by AuthenticatedController#index as HTML
|
11773
|
+
Rendered text template (0.0ms)
|
11774
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11775
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11776
|
+
Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
11777
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11778
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11779
|
+
Processing by AuthenticatedController#index as HTML
|
11780
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
11781
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11782
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11783
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11784
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11785
|
+
Processing by AuthenticatedController#index as HTML
|
11786
|
+
Parameters: {"xhr"=>true}
|
11787
|
+
Rendered text template (0.0ms)
|
11788
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11789
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11790
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
11791
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11792
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11793
|
+
Processing by AuthenticatedController#index as HTML
|
11794
|
+
Parameters: {"xhr"=>true}
|
11795
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
11796
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11797
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11798
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11799
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11800
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11801
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
11802
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1498098722"], ["created_at", "2017-06-21 02:32:02.376181"], ["updated_at", "2017-06-21 02:32:02.376181"]]
|
11803
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11804
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11805
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11806
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11807
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925922"], ["created_at", "2017-06-21 02:32:02.379449"], ["updated_at", "2017-06-21 02:32:02.379449"]]
|
11808
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
11809
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11810
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11811
|
+
[1m[35mAccount Exists (0.5ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 5) LIMIT 1
|
11812
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "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", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498185122"], ["updated_at", "2017-06-21 02:32:02.398678"], ["id", 5]]
|
11813
|
+
[1m[35m (0.5ms)[0m COMMIT
|
11814
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11815
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 5]]
|
11816
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts"[0m
|
11817
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11818
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 5]]
|
11819
|
+
[1m[35m (0.3ms)[0m COMMIT
|
11820
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11821
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
11822
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925922"], ["created_at", "2017-06-21 02:32:02.407189"], ["updated_at", "2017-06-21 02:32:02.407189"]]
|
11823
|
+
[1m[35m (0.4ms)[0m COMMIT
|
11824
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11825
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 6) LIMIT 1
|
11826
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "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", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498185122"], ["updated_at", "2017-06-21 02:32:02.410322"], ["id", 6]]
|
11827
|
+
[1m[35m (0.3ms)[0m COMMIT
|
11828
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts"[0m
|
11829
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11830
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 6]]
|
11831
|
+
[1m[35m (0.3ms)[0m COMMIT
|
11832
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11833
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11834
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
11835
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:02.414628"], ["updated_at", "2017-06-21 02:32:02.414628"]]
|
11836
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11837
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "accounts"
|
11838
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
11839
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11840
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11841
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:02.419700"], ["updated_at", "2017-06-21 02:32:02.419700"]]
|
11842
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11843
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "accounts"
|
11844
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11845
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11846
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11847
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
11848
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:02.422450"], ["updated_at", "2017-06-21 02:32:02.422450"]]
|
11849
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11850
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
11851
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11852
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11853
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:02.425301"], ["updated_at", "2017-06-21 02:32:02.425301"]]
|
11854
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11855
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11856
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
11857
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11858
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
11859
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:02.428000"], ["updated_at", "2017-06-21 02:32:02.428000"]]
|
11860
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11861
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
11862
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11863
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
11864
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:02.430483"], ["updated_at", "2017-06-21 02:32:02.430483"]]
|
11865
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11866
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11867
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11868
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11869
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
11870
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:02.432921"], ["updated_at", "2017-06-21 02:32:02.432921"]]
|
11871
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11872
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
11873
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11874
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11875
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:02.435233"], ["updated_at", "2017-06-21 02:32:02.435233"]]
|
11876
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11877
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11878
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11879
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11880
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
11881
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:02.438632"], ["updated_at", "2017-06-21 02:32:02.438632"]]
|
11882
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11883
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11884
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
11885
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-21 02:32:02.440733"], ["updated_at", "2017-06-21 02:32:02.440733"]]
|
11886
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11887
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
11888
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11889
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 16) LIMIT 1
|
11890
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "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", "2017-06-21 02:32:02.443208"], ["id", 16]]
|
11891
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11892
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11893
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11894
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11895
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
11896
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:02.446185"], ["updated_at", "2017-06-21 02:32:02.446185"]]
|
11897
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11898
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11899
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
11900
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-21 02:32:02.447845"], ["updated_at", "2017-06-21 02:32:02.447845"]]
|
11901
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11902
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
11903
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11904
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 18) LIMIT 1[0m
|
11905
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-06-21 02:32:02.449960"], ["id", 18]]
|
11906
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11907
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 18]]
|
11908
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11909
|
+
[1m[35m (0.0ms)[0m BEGIN
|
11910
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11911
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
11912
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:02.452997"], ["updated_at", "2017-06-21 02:32:02.452997"]]
|
11913
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11914
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11915
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
11916
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-21 02:32:02.455244"], ["updated_at", "2017-06-21 02:32:02.455244"]]
|
11917
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11918
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
11919
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11920
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 20) LIMIT 1[0m
|
11921
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-06-21 02:32:02.457814"], ["id", 20]]
|
11922
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11923
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 20]]
|
11924
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
11925
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11926
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11927
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11928
|
+
[1m[36mAccount Load (0.6ms)[0m [1mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1[0m
|
11929
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11930
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2017-06-21 02:32:02.495645"], ["updated_at", "2017-06-21 02:32:02.495645"]]
|
11931
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11932
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11933
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "synced_id" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3 [["synced_id", 0], ["updated_at", "2017-06-21 02:32:02.497408"], ["id", 21]]
|
11934
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11935
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1
|
11936
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11937
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11938
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11939
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1
|
11940
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["created_at", "2017-06-21 02:32:02.506937"], ["updated_at", "2017-06-21 02:32:02.506937"]]
|
11941
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11942
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11943
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" IS NULL AND "accounts"."id" != 22) LIMIT 1
|
11944
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "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", "2017-06-21 02:32:02.508681"], ["id", 22]]
|
11945
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11946
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 22]]
|
11947
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11948
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11949
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11950
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11951
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11952
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11953
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11954
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11955
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11956
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11957
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11958
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11959
|
+
Processing by AuthenticatedController#index as HTML
|
11960
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
11961
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11962
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
11963
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
11964
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11965
|
+
Processing by AuthenticatedController#index as HTML
|
11966
|
+
Rendered text template (0.0ms)
|
11967
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11968
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11969
|
+
Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms)
|
11970
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
11971
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11972
|
+
Processing by AuthenticatedController#index as HTML
|
11973
|
+
Parameters: {"xhr"=>true}
|
11974
|
+
Rendered text template (0.0ms)
|
11975
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
11976
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11977
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
11978
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11979
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11980
|
+
Processing by AuthenticatedController#index as HTML
|
11981
|
+
Parameters: {"xhr"=>true}
|
11982
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
11983
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
11984
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11985
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11986
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11987
|
+
Processing by SessionsController#destroy as HTML
|
11988
|
+
Redirected to http://test.host/
|
11989
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11990
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11991
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11992
|
+
Processing by SessionsController#destroy as HTML
|
11993
|
+
Redirected to http://test.host/signed_out
|
11994
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
11995
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11996
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11997
|
+
Processing by SessionsController#create as HTML
|
11998
|
+
Parameters: {"params"=>{"provider"=>"bookingsync"}}
|
11999
|
+
[1m[35mAccount Load (0.5ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
12000
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
12001
|
+
[1m[35mAccount Exists (0.4ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
12002
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:31.604312"], ["updated_at", "2017-06-21 02:32:31.604312"]]
|
12003
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12004
|
+
Redirected to http://test.host/admin
|
12005
|
+
Completed 302 Found in 30ms (ActiveRecord: 6.5ms)
|
12006
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12007
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12008
|
+
Processing by SessionsController#create as HTML
|
12009
|
+
Parameters: {"params"=>{"provider"=>"bookingsync"}}
|
12010
|
+
[1m[36mAccount Load (0.4ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
12011
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12012
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12013
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:31.614440"], ["updated_at", "2017-06-21 02:32:31.614440"]]
|
12014
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12015
|
+
Redirected to http://test.host/
|
12016
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
12017
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12018
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12019
|
+
Processing by SessionsController#create as HTML
|
12020
|
+
Parameters: {"params"=>{"provider"=>"bookingsync"}}
|
12021
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
12022
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12023
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
12024
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:31.622290"], ["updated_at", "2017-06-21 02:32:31.622290"]]
|
12025
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12026
|
+
Redirected to http://test.host/
|
12027
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
|
12028
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12029
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12030
|
+
Processing by SessionsController#failure as HTML
|
12031
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
|
12032
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12033
|
+
Completed 200 OK in 11ms (Views: 11.0ms | ActiveRecord: 0.0ms)
|
12034
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12035
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12036
|
+
Processing by SessionsController#failure as HTML
|
12037
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms)
|
12038
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12039
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
12040
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12041
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12042
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12043
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1
|
12044
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["created_at", "2017-06-21 02:32:31.648883"], ["updated_at", "2017-06-21 02:32:31.648883"]]
|
12045
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12046
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12047
|
+
[1m[35mAccount Exists (0.4ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" IS NULL AND "accounts"."id" != 4) LIMIT 1
|
12048
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "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", "2017-06-21 02:32:31.651805"], ["id", 4]]
|
12049
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12050
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 4]]
|
12051
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12052
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12053
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
12054
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925951"], ["created_at", "2017-06-21 02:32:31.657509"], ["updated_at", "2017-06-21 02:32:31.657509"]]
|
12055
|
+
[1m[35m (0.4ms)[0m COMMIT
|
12056
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12057
|
+
[1m[35mAccount Exists (0.9ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 5) LIMIT 1
|
12058
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "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", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498185151"], ["updated_at", "2017-06-21 02:32:31.678151"], ["id", 5]]
|
12059
|
+
[1m[35m (0.4ms)[0m COMMIT
|
12060
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts"[0m
|
12061
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12062
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 5]]
|
12063
|
+
[1m[35m (0.3ms)[0m COMMIT
|
12064
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12065
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
12066
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497925951"], ["created_at", "2017-06-21 02:32:31.684044"], ["updated_at", "2017-06-21 02:32:31.684044"]]
|
12067
|
+
[1m[35m (0.3ms)[0m COMMIT
|
12068
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12069
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12070
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 6) LIMIT 1[0m
|
12071
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498185151"], ["updated_at", "2017-06-21 02:32:31.687768"], ["id", 6]]
|
12072
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
12073
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12074
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 6]]
|
12075
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts"
|
12076
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12077
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "accounts" WHERE "accounts"."id" = $1 [["id", 6]]
|
12078
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
12079
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12080
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12081
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
12082
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1498098751"], ["created_at", "2017-06-21 02:32:31.694188"], ["updated_at", "2017-06-21 02:32:31.694188"]]
|
12083
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12084
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12085
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12086
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12087
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
12088
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:31.697801"], ["updated_at", "2017-06-21 02:32:31.697801"]]
|
12089
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12090
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12091
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
12092
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-21 02:32:31.700063"], ["updated_at", "2017-06-21 02:32:31.700063"]]
|
12093
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12094
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
12095
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12096
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 9) LIMIT 1[0m
|
12097
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-06-21 02:32:31.703209"], ["id", 9]]
|
12098
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12099
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12100
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12101
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12102
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
12103
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:31.706837"], ["updated_at", "2017-06-21 02:32:31.706837"]]
|
12104
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12105
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12106
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12107
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-21 02:32:31.709355"], ["updated_at", "2017-06-21 02:32:31.709355"]]
|
12108
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12109
|
+
[1m[35mAccount Load (0.4ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
12110
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12111
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 11) LIMIT 1
|
12112
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "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", "2017-06-21 02:32:31.713826"], ["id", 11]]
|
12113
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12114
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 11]]
|
12115
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12116
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12117
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12118
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
12119
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:31.717843"], ["updated_at", "2017-06-21 02:32:31.717843"]]
|
12120
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12121
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12122
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12123
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-21 02:32:31.720268"], ["updated_at", "2017-06-21 02:32:31.720268"]]
|
12124
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12125
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
12126
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12127
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 13) LIMIT 1
|
12128
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "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", "2017-06-21 02:32:31.723256"], ["id", 13]]
|
12129
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12130
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 13]]
|
12131
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12132
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12133
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12134
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
12135
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:31.726953"], ["updated_at", "2017-06-21 02:32:31.726953"]]
|
12136
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12137
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "accounts"
|
12138
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
12139
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12140
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12141
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:31.732142"], ["updated_at", "2017-06-21 02:32:31.732142"]]
|
12142
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12143
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "accounts"
|
12144
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12145
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12146
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12147
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
12148
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:31.735846"], ["updated_at", "2017-06-21 02:32:31.735846"]]
|
12149
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12150
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
12151
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12152
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12153
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:31.738447"], ["updated_at", "2017-06-21 02:32:31.738447"]]
|
12154
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12155
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12156
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12157
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12158
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
12159
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:31.741728"], ["updated_at", "2017-06-21 02:32:31.741728"]]
|
12160
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12161
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
12162
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12163
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
12164
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:31.744954"], ["updated_at", "2017-06-21 02:32:31.744954"]]
|
12165
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12166
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12167
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12168
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12169
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
12170
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:32:31.748128"], ["updated_at", "2017-06-21 02:32:31.748128"]]
|
12171
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12172
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
12173
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12174
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12175
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:32:31.751765"], ["updated_at", "2017-06-21 02:32:31.751765"]]
|
12176
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12177
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12178
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12179
|
+
[1m[35mAccount Load (0.5ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
|
12180
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12181
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2017-06-21 02:32:31.758277"], ["updated_at", "2017-06-21 02:32:31.758277"]]
|
12182
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12183
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12184
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "accounts" SET "synced_id" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3[0m [["synced_id", 0], ["updated_at", "2017-06-21 02:32:31.760276"], ["id", 22]]
|
12185
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12186
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1[0m
|
12187
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12188
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12189
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
12190
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12191
|
+
[1m[35mAccount Load (1.0ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
|
12192
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
12193
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2017-06-21 02:34:39.899116"], ["updated_at", "2017-06-21 02:34:39.899116"]]
|
12194
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12195
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12196
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "accounts" SET "synced_id" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3[0m [["synced_id", 0], ["updated_at", "2017-06-21 02:34:39.901588"], ["id", 1]]
|
12197
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12198
|
+
[1m[36mAccount Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1[0m
|
12199
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
12200
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12201
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12202
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12203
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1498098879"], ["created_at", "2017-06-21 02:34:39.921940"], ["updated_at", "2017-06-21 02:34:39.921940"]]
|
12204
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12205
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12206
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12207
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
12208
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497926079"], ["created_at", "2017-06-21 02:34:39.926188"], ["updated_at", "2017-06-21 02:34:39.926188"]]
|
12209
|
+
[1m[35m (0.4ms)[0m COMMIT
|
12210
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12211
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12212
|
+
[1m[36mAccount Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 3) LIMIT 1[0m
|
12213
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498185279"], ["updated_at", "2017-06-21 02:34:39.954583"], ["id", 3]]
|
12214
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
12215
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12216
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 3]]
|
12217
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts"
|
12218
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12219
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "accounts" WHERE "accounts"."id" = $1 [["id", 3]]
|
12220
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
12221
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12222
|
+
[1m[36mAccount Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12223
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497926079"], ["created_at", "2017-06-21 02:34:39.963116"], ["updated_at", "2017-06-21 02:34:39.963116"]]
|
12224
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
12225
|
+
[1m[35m (0.3ms)[0m BEGIN
|
12226
|
+
[1m[36mAccount Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) LIMIT 1[0m
|
12227
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498185279"], ["updated_at", "2017-06-21 02:34:39.968313"], ["id", 4]]
|
12228
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
12229
|
+
[1m[35mAccount Load (0.4ms)[0m SELECT "accounts".* FROM "accounts"
|
12230
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12231
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "accounts" WHERE "accounts"."id" = $1 [["id", 4]]
|
12232
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
12233
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12234
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12235
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
12236
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:34:39.974974"], ["updated_at", "2017-06-21 02:34:39.974974"]]
|
12237
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12238
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12239
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
12240
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-21 02:34:39.977061"], ["updated_at", "2017-06-21 02:34:39.977061"]]
|
12241
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12242
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
12243
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12244
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 6) LIMIT 1[0m
|
12245
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-06-21 02:34:39.980437"], ["id", 6]]
|
12246
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12247
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12248
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12249
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12250
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
12251
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:34:39.985361"], ["updated_at", "2017-06-21 02:34:39.985361"]]
|
12252
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12253
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12254
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12255
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-21 02:34:39.987432"], ["updated_at", "2017-06-21 02:34:39.987432"]]
|
12256
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12257
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
12258
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12259
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 8) LIMIT 1
|
12260
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "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", "2017-06-21 02:34:39.990486"], ["id", 8]]
|
12261
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12262
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 8]]
|
12263
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12264
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12265
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12266
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
12267
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:34:39.994515"], ["updated_at", "2017-06-21 02:34:39.994515"]]
|
12268
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12269
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12270
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12271
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-21 02:34:39.996396"], ["updated_at", "2017-06-21 02:34:39.996396"]]
|
12272
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12273
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
12274
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12275
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 10) LIMIT 1
|
12276
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "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", "2017-06-21 02:34:39.999016"], ["id", 10]]
|
12277
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12278
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 10]]
|
12279
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12280
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12281
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12282
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
12283
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:34:40.002814"], ["updated_at", "2017-06-21 02:34:40.002814"]]
|
12284
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12285
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "accounts"
|
12286
|
+
[1m[36mAccount Load (0.6ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
12287
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12288
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12289
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:34:40.010048"], ["updated_at", "2017-06-21 02:34:40.010048"]]
|
12290
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12291
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "accounts"
|
12292
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12293
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12294
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12295
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
12296
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:34:40.014147"], ["updated_at", "2017-06-21 02:34:40.014147"]]
|
12297
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12298
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
12299
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12300
|
+
[1m[36mAccount Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12301
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:34:40.017362"], ["updated_at", "2017-06-21 02:34:40.017362"]]
|
12302
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12303
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12304
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12305
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12306
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
12307
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:34:40.022005"], ["updated_at", "2017-06-21 02:34:40.022005"]]
|
12308
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12309
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
12310
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12311
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
12312
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:34:40.024819"], ["updated_at", "2017-06-21 02:34:40.024819"]]
|
12313
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12314
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12315
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12316
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12317
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
12318
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-21 02:34:40.027775"], ["updated_at", "2017-06-21 02:34:40.027775"]]
|
12319
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12320
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
12321
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12322
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12323
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:34:40.030346"], ["updated_at", "2017-06-21 02:34:40.030346"]]
|
12324
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12325
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12326
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12327
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12328
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1[0m
|
12329
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["created_at", "2017-06-21 02:34:40.033407"], ["updated_at", "2017-06-21 02:34:40.033407"]]
|
12330
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12331
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12332
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" IS NULL AND "accounts"."id" != 19) LIMIT 1[0m
|
12333
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2017-06-21 02:34:40.035380"], ["id", 19]]
|
12334
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12335
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 19]]
|
12336
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12337
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12338
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
12339
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12340
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12341
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12342
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12343
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12344
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12345
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12346
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12347
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12348
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12349
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12350
|
+
Processing by SessionsController#failure as HTML
|
12351
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
|
12352
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12353
|
+
Completed 200 OK in 17ms (Views: 17.3ms | ActiveRecord: 0.0ms)
|
12354
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
12355
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12356
|
+
Processing by SessionsController#failure as HTML
|
12357
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.0ms)
|
12358
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12359
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
12360
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12361
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12362
|
+
Processing by SessionsController#destroy as HTML
|
12363
|
+
Redirected to http://test.host/
|
12364
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
12365
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
12366
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12367
|
+
Processing by SessionsController#destroy as HTML
|
12368
|
+
Redirected to http://test.host/signed_out
|
12369
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
12370
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12371
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12372
|
+
Processing by SessionsController#create as HTML
|
12373
|
+
Parameters: {"params"=>{"provider"=>"bookingsync"}}
|
12374
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
12375
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12376
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12377
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:34:40.127962"], ["updated_at", "2017-06-21 02:34:40.127962"]]
|
12378
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12379
|
+
Redirected to http://test.host/admin
|
12380
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
|
12381
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12382
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12383
|
+
Processing by SessionsController#create as HTML
|
12384
|
+
Parameters: {"params"=>{"provider"=>"bookingsync"}}
|
12385
|
+
[1m[35mAccount Load (0.5ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
12386
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12387
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
12388
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:34:40.137202"], ["updated_at", "2017-06-21 02:34:40.137202"]]
|
12389
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
12390
|
+
Redirected to http://test.host/
|
12391
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.5ms)
|
12392
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
12393
|
+
[1m[35m (0.1ms)[0m BEGIN
|
12394
|
+
Processing by SessionsController#create as HTML
|
12395
|
+
Parameters: {"params"=>{"provider"=>"bookingsync"}}
|
12396
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
12397
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12398
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
12399
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-21 02:34:40.147022"], ["updated_at", "2017-06-21 02:34:40.147022"]]
|
12400
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12401
|
+
Redirected to http://test.host/
|
12402
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
|
12403
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
12404
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12405
|
+
Processing by AuthenticatedController#index as HTML
|
12406
|
+
Parameters: {"xhr"=>true}
|
12407
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
12408
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
12409
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
12410
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
12411
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12412
|
+
Processing by AuthenticatedController#index as HTML
|
12413
|
+
Parameters: {"xhr"=>true}
|
12414
|
+
Rendered text template (0.0ms)
|
12415
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12416
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
12417
|
+
Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
12418
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12419
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12420
|
+
Processing by AuthenticatedController#index as HTML
|
12421
|
+
Rendered text template (0.0ms)
|
12422
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12423
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
12424
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
12425
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
12426
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
12427
|
+
Processing by AuthenticatedController#index as HTML
|
12428
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
12429
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
12430
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
12431
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
12432
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12433
|
+
Processing by AuthenticatedController#index as HTML
|
12434
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
12435
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
12436
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
|
12437
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12438
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12439
|
+
Processing by AuthenticatedController#index as HTML
|
12440
|
+
Rendering text template
|
12441
|
+
Rendered text template (0.0ms)
|
12442
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12443
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
12444
|
+
Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)
|
12445
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12446
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12447
|
+
Processing by AuthenticatedController#index as JS
|
12448
|
+
Rendering text template
|
12449
|
+
Rendered text template (0.0ms)
|
12450
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12451
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
12452
|
+
Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
12453
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12454
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12455
|
+
Processing by AuthenticatedController#index as JS
|
12456
|
+
Rendering text template
|
12457
|
+
Rendered text template (0.0ms)
|
12458
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12459
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
12460
|
+
Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
12461
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12462
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12463
|
+
Processing by SessionsController#create as HTML
|
12464
|
+
Parameters: {"provider"=>"bookingsync"}
|
12465
|
+
[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]]
|
12466
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12467
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12468
|
+
[1m[35mSQL (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", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12469
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12470
|
+
Redirected to http://test.host/admin
|
12471
|
+
Completed 302 Found in 48ms (ActiveRecord: 11.3ms)
|
12472
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12473
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12474
|
+
Processing by SessionsController#create as HTML
|
12475
|
+
Parameters: {"provider"=>"bookingsync"}
|
12476
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
12477
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12478
|
+
[1m[36mAccount Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12479
|
+
[1m[35mSQL (0.6ms)[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", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12480
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12481
|
+
Redirected to http://test.host/
|
12482
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.5ms)
|
12483
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12484
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12485
|
+
Processing by SessionsController#create as HTML
|
12486
|
+
Parameters: {"provider"=>"bookingsync"}
|
12487
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
12488
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12489
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12490
|
+
[1m[35mSQL (0.3ms)[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", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12491
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12492
|
+
Redirected to http://test.host/
|
12493
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
|
12494
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12495
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12496
|
+
Processing by SessionsController#failure as HTML
|
12497
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
12498
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
|
12499
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12500
|
+
Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
12501
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12502
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12503
|
+
Processing by SessionsController#failure as HTML
|
12504
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
12505
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.0ms)
|
12506
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12507
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
12508
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12509
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12510
|
+
Processing by SessionsController#destroy as HTML
|
12511
|
+
Redirected to http://test.host/signed_out
|
12512
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
12513
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12514
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12515
|
+
Processing by SessionsController#destroy as HTML
|
12516
|
+
Redirected to http://test.host/
|
12517
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
12518
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12519
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12520
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12521
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
12522
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12523
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
12524
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12525
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12526
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12527
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
12528
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12529
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12530
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
12531
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12532
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC]]
|
12533
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12534
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12535
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "synced_id" = $2 WHERE "accounts"."id" = $3[0m [["updated_at", 2017-06-21 02:35:17 UTC], ["synced_id", 0], ["id", 4]]
|
12536
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12537
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 0], ["LIMIT", 1]]
|
12538
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12539
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12540
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12541
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12542
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12543
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
12544
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 456]]
|
12545
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12546
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12547
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12548
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 123]]
|
12549
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12550
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
12551
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12552
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 6], ["LIMIT", 1]]
|
12553
|
+
[1m[35mSQL (0.3ms)[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", 2017-06-21 02:35:17 UTC], ["id", 6]]
|
12554
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12555
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12556
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12557
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12558
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
12559
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 456]]
|
12560
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12561
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12562
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12563
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 123]]
|
12564
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12565
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
12566
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12567
|
+
[1m[36mAccount Exists (0.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", 8], ["LIMIT", 1]]
|
12568
|
+
[1m[35mSQL (0.3ms)[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", 2017-06-21 02:35:17 UTC], ["id", 8]]
|
12569
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12570
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 8], ["LIMIT", 1]]
|
12571
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12572
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12573
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12574
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
12575
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 456]]
|
12576
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12577
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12578
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12579
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 123]]
|
12580
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12581
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
12582
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12583
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 10], ["LIMIT", 1]]
|
12584
|
+
[1m[35mSQL (0.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", 2017-06-21 02:35:17 UTC], ["id", 10]]
|
12585
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12586
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 10], ["LIMIT", 1]]
|
12587
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12588
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12589
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12590
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
12591
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 456]]
|
12592
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12593
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
12594
|
+
[1m[36mAccount Load (0.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]]
|
12595
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12596
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12597
|
+
[1m[35mSQL (0.3ms)[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", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12598
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12599
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
12600
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12601
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12602
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12603
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
12604
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 456]]
|
12605
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12606
|
+
[1m[36mAccount Load (0.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]]
|
12607
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12608
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12609
|
+
[1m[35mSQL (0.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", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12610
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12611
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12612
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12613
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12614
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
12615
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 456]]
|
12616
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12617
|
+
[1m[36mAccount Load (0.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]]
|
12618
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12619
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12620
|
+
[1m[35mSQL (0.3ms)[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", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12621
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12622
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12623
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12624
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12625
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
12626
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 456]]
|
12627
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12628
|
+
[1m[36mAccount Load (0.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]]
|
12629
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12630
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12631
|
+
[1m[35mSQL (0.3ms)[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", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12632
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12633
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12634
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12635
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12636
|
+
[1m[35mSQL (0.4ms)[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", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497926117"]]
|
12637
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
12638
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12639
|
+
[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", 19], ["LIMIT", 1]]
|
12640
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", 2017-06-21 02:35:17 UTC], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498185317"], ["id", 19]]
|
12641
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
12642
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
12643
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12644
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 19]]
|
12645
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
12646
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12647
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12648
|
+
[1m[35mSQL (0.4ms)[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", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497926117"]]
|
12649
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
12650
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12651
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12652
|
+
[1m[36mAccount Exists (0.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", 20], ["LIMIT", 1]]
|
12653
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", 2017-06-21 02:35:17 UTC], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498185317"], ["id", 20]]
|
12654
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
12655
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12656
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 20], ["LIMIT", 1]]
|
12657
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
12658
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12659
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 20]]
|
12660
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
12661
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12662
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12663
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12664
|
+
[1m[35mSQL (0.3ms)[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", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1498098917"]]
|
12665
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12666
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12667
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12668
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12669
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
12670
|
+
[1m[35mSQL (0.3ms)[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", 2017-06-21 02:35:17 UTC], ["updated_at", 2017-06-21 02:35:17 UTC], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"]]
|
12671
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12672
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12673
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL AND ("accounts"."id" != $1) LIMIT $2[0m [["id", 22], ["LIMIT", 1]]
|
12674
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", 2017-06-21 02:35:17 UTC], ["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["id", 22]]
|
12675
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12676
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 22], ["LIMIT", 1]]
|
12677
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12678
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12679
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12680
|
+
[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]]
|
12681
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:35:23.565889"], ["updated_at", "2017-06-21 02:35:23.565889"], ["provider", "bookingsync"], ["synced_id", 456]]
|
12682
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12683
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12684
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12685
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:35:23.569798"], ["updated_at", "2017-06-21 02:35:23.569798"], ["provider", "bookingsync"], ["synced_id", 123]]
|
12686
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12687
|
+
[1m[36mAccount Load (0.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]]
|
12688
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12689
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 2], ["LIMIT", 1]]
|
12690
|
+
[1m[35mSQL (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", "2017-06-21 02:35:23.575532"], ["id", 2]]
|
12691
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12692
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12693
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12694
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12695
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
12696
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:35:23.582331"], ["updated_at", "2017-06-21 02:35:23.582331"], ["provider", "bookingsync"], ["synced_id", 456]]
|
12697
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12698
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12699
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12700
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:35:23.584294"], ["updated_at", "2017-06-21 02:35:23.584294"], ["provider", "bookingsync"], ["synced_id", 123]]
|
12701
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12702
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
12703
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12704
|
+
[1m[36mAccount Exists (0.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", 4], ["LIMIT", 1]]
|
12705
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:35:23.586904"], ["id", 4]]
|
12706
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12707
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 4], ["LIMIT", 1]]
|
12708
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12709
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12710
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12711
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
12712
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:35:23.591283"], ["updated_at", "2017-06-21 02:35:23.591283"], ["provider", "bookingsync"], ["synced_id", 456]]
|
12713
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12714
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12715
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12716
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:35:23.593429"], ["updated_at", "2017-06-21 02:35:23.593429"], ["provider", "bookingsync"], ["synced_id", 123]]
|
12717
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12718
|
+
[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]]
|
12719
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12720
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 6], ["LIMIT", 1]]
|
12721
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:35:23.597553"], ["id", 6]]
|
12722
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12723
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 6], ["LIMIT", 1]]
|
12724
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12725
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12726
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12727
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
12728
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:35:23.602159"], ["updated_at", "2017-06-21 02:35:23.602159"], ["provider", "bookingsync"], ["synced_id", 456]]
|
12729
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12730
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
12731
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
12732
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12733
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12734
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:35:23.607541"], ["updated_at", "2017-06-21 02:35:23.607541"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12735
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12736
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "accounts"[0m
|
12737
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12738
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12739
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12740
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
12741
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:35:23.611813"], ["updated_at", "2017-06-21 02:35:23.611813"], ["provider", "bookingsync"], ["synced_id", 456]]
|
12742
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12743
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
12744
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12745
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12746
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:35:23.614707"], ["updated_at", "2017-06-21 02:35:23.614707"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12747
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12748
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12749
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12750
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12751
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
12752
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:35:23.618114"], ["updated_at", "2017-06-21 02:35:23.618114"], ["provider", "bookingsync"], ["synced_id", 456]]
|
12753
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12754
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
12755
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12756
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12757
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:35:23.620725"], ["updated_at", "2017-06-21 02:35:23.620725"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12758
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12759
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12760
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12761
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12762
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 456], ["LIMIT", 1]]
|
12763
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at", "provider", "synced_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2017-06-21 02:35:23.623614"], ["updated_at", "2017-06-21 02:35:23.623614"], ["provider", "bookingsync"], ["synced_id", 456]]
|
12764
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12765
|
+
[1m[36mAccount Load (0.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]]
|
12766
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12767
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12768
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:35:23.626332"], ["updated_at", "2017-06-21 02:35:23.626332"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12769
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12770
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12771
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12772
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
12773
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12774
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2017-06-21 02:35:23.634546"], ["updated_at", "2017-06-21 02:35:23.634546"]]
|
12775
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12776
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12777
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "synced_id" = $2 WHERE "accounts"."id" = $3[0m [["updated_at", "2017-06-21 02:35:23.636255"], ["synced_id", 0], ["id", 15]]
|
12778
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12779
|
+
[1m[36mAccount Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 0], ["LIMIT", 1]]
|
12780
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12781
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12782
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12783
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12784
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12785
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
12786
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:35:23.687716"], ["updated_at", "2017-06-21 02:35:23.687716"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"]]
|
12787
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12788
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12789
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL AND ("accounts"."id" != $1) LIMIT $2[0m [["id", 16], ["LIMIT", 1]]
|
12790
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:35:23.689927"], ["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["id", 16]]
|
12791
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12792
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 16], ["LIMIT", 1]]
|
12793
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12794
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12795
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12796
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12797
|
+
[1m[35mSQL (0.4ms)[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", "2017-06-21 02:35:23.694187"], ["updated_at", "2017-06-21 02:35:23.694187"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1498098923"]]
|
12798
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12799
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12800
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12801
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12802
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:35:23.698527"], ["updated_at", "2017-06-21 02:35:23.698527"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497926123"]]
|
12803
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
12804
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12805
|
+
[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", 18], ["LIMIT", 1]]
|
12806
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:35:23.717151"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498185323"], ["id", 18]]
|
12807
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
12808
|
+
[1m[36mAccount Load (0.4ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
12809
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12810
|
+
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 18]]
|
12811
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
12812
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12813
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12814
|
+
[1m[35mSQL (0.5ms)[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", "2017-06-21 02:35:23.723697"], ["updated_at", "2017-06-21 02:35:23.723697"], ["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497926123"]]
|
12815
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
12816
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12817
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12818
|
+
[1m[36mAccount Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 AND ("accounts"."id" != $2) LIMIT $3[0m [["synced_id", 123], ["id", 19], ["LIMIT", 1]]
|
12819
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "accounts" SET "updated_at" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4 WHERE "accounts"."id" = $5[0m [["updated_at", "2017-06-21 02:35:23.728672"], ["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1498185323"], ["id", 19]]
|
12820
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
12821
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12822
|
+
[1m[36mAccount Load (0.3ms)[0m [1m[34mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT $2[0m [["id", 19], ["LIMIT", 1]]
|
12823
|
+
[1m[36mAccount Load (0.2ms)[0m [1m[34mSELECT "accounts".* FROM "accounts"[0m
|
12824
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12825
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 19]]
|
12826
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
12827
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12828
|
+
Processing by SessionsController#destroy as HTML
|
12829
|
+
Redirected to http://test.host/signed_out
|
12830
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
12831
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12832
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12833
|
+
Processing by SessionsController#destroy as HTML
|
12834
|
+
Redirected to http://test.host/
|
12835
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
12836
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12837
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12838
|
+
Processing by SessionsController#create as HTML
|
12839
|
+
Parameters: {"provider"=>"bookingsync"}
|
12840
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
12841
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12842
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12843
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:35:23.750295"], ["updated_at", "2017-06-21 02:35:23.750295"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12844
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12845
|
+
Redirected to http://test.host/
|
12846
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
|
12847
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12848
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12849
|
+
Processing by SessionsController#create as HTML
|
12850
|
+
Parameters: {"provider"=>"bookingsync"}
|
12851
|
+
[1m[36mAccount Load (0.3ms)[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]]
|
12852
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12853
|
+
[1m[36mAccount Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12854
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:35:23.756343"], ["updated_at", "2017-06-21 02:35:23.756343"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12855
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12856
|
+
Redirected to http://test.host/admin
|
12857
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
|
12858
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12859
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12860
|
+
Processing by SessionsController#create as HTML
|
12861
|
+
Parameters: {"provider"=>"bookingsync"}
|
12862
|
+
[1m[36mAccount Load (0.2ms)[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]]
|
12863
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12864
|
+
[1m[36mAccount Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = $1 LIMIT $2[0m [["synced_id", 123], ["LIMIT", 1]]
|
12865
|
+
[1m[35mSQL (0.3ms)[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", "2017-06-21 02:35:23.763723"], ["updated_at", "2017-06-21 02:35:23.763723"], ["provider", "bookingsync"], ["synced_id", 123], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]]
|
12866
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12867
|
+
Redirected to http://test.host/
|
12868
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
|
12869
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12870
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12871
|
+
Processing by SessionsController#failure as HTML
|
12872
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
12873
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms)
|
12874
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12875
|
+
Completed 200 OK in 15ms (Views: 11.1ms | ActiveRecord: 0.0ms)
|
12876
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12877
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12878
|
+
Processing by SessionsController#failure as HTML
|
12879
|
+
Rendering /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application
|
12880
|
+
Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.0ms)
|
12881
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12882
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
12883
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12884
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12885
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12886
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12887
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12888
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12889
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12890
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12891
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12892
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12893
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12894
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12895
|
+
Processing by AuthenticatedController#index as HTML
|
12896
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
12897
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
12898
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
12899
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12900
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12901
|
+
Processing by AuthenticatedController#index as HTML
|
12902
|
+
Rendering text template
|
12903
|
+
Rendered text template (0.0ms)
|
12904
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12905
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
12906
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
|
12907
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
12908
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12909
|
+
Processing by AuthenticatedController#index as JS
|
12910
|
+
Rendering text template
|
12911
|
+
Rendered text template (0.0ms)
|
12912
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12913
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
12914
|
+
Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
12915
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
12916
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
12917
|
+
Processing by AuthenticatedController#index as JS
|
12918
|
+
Rendering text template
|
12919
|
+
Rendered text template (0.0ms)
|
12920
|
+
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
|
12921
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
12922
|
+
Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
12923
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|