bookingsync-engine 0.3.0 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bookingsync/engine.rb +1 -0
- data/lib/bookingsync/engine/api_client.rb +19 -0
- data/lib/bookingsync/engine/model.rb +9 -5
- data/lib/bookingsync/engine/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +16 -0
- data/spec/dummy/log/test.log +785 -1042
- data/spec/models/account_spec.rb +40 -0
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d93adbbbc222b81d24568db7658cb1eed95d072e
|
4
|
+
data.tar.gz: e473056b861f09e6b3e25be301472b1584792850
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67b4de4948fff649d4c5f0342915836f434d2d622c061234652ce6282f74f6789e2f11ecc2244c8a94c32c663f929563ba4b2d882c2f0805b374220b548d2e22
|
7
|
+
data.tar.gz: 0d209ea2ca8feff16d6d64ee807cbc7f55ce1e3a9c0c4dbbf911489fded2179c36356e7e1869e2150bc818491fe4b4a8a0cb58926ea245a3142d684a7f0c82ed
|
data/lib/bookingsync/engine.rb
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
class BookingSync::Engine::APIClient < BookingSync::API::Client
|
2
|
+
def initialize(token, options = {})
|
3
|
+
super
|
4
|
+
@account = options[:account]
|
5
|
+
end
|
6
|
+
|
7
|
+
def call(method, path, data = nil, options = nil)
|
8
|
+
tries ||= 1
|
9
|
+
super
|
10
|
+
rescue BookingSync::API::Unauthorized => e
|
11
|
+
token_expired = e.headers["www-authenticate"].include?("The access token expired")
|
12
|
+
if token_expired && (tries -= 1) >= 0
|
13
|
+
@token = @account.refresh_token!.token
|
14
|
+
retry
|
15
|
+
else
|
16
|
+
raise
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -3,6 +3,7 @@ module BookingSync::Engine::Model
|
|
3
3
|
|
4
4
|
included do
|
5
5
|
validates :uid, uniqueness: true
|
6
|
+
scope :authorized, -> { where.not(oauth_access_token: nil) }
|
6
7
|
end
|
7
8
|
|
8
9
|
module ClassMethods
|
@@ -27,16 +28,19 @@ module BookingSync::Engine::Model
|
|
27
28
|
oauth_access_token, token_options)
|
28
29
|
|
29
30
|
if token.expired?
|
30
|
-
token
|
31
|
-
|
31
|
+
refresh_token!(token)
|
32
|
+
else
|
33
|
+
token
|
32
34
|
end
|
33
|
-
|
34
|
-
token
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
def refresh_token!(current_token = token)
|
39
|
+
@token = current_token.refresh!.tap { |new_token| update_token!(new_token) }
|
40
|
+
end
|
41
|
+
|
38
42
|
def api
|
39
|
-
@api ||= BookingSync::
|
43
|
+
@api ||= BookingSync::Engine::APIClient.new(token.token, account: self)
|
40
44
|
end
|
41
45
|
|
42
46
|
def update_token(token)
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -0,0 +1,16 @@
|
|
1
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar(255), "uid" integer, "name" varchar(255), "oauth_access_token" varchar(255), "oauth_refresh_token" varchar(255), "oauth_expires_at" varchar(255)) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")[0m
|
4
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
5
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
7
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140522110454')[0m
|
8
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
|
9
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar(255), "uid" integer, "name" varchar(255), "oauth_access_token" varchar(255), "oauth_refresh_token" varchar(255), "oauth_expires_at" varchar(255)) [0m
|
10
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
11
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")[0m
|
12
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
13
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
14
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
15
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140522110454')[0m
|
16
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
|
data/spec/dummy/log/test.log
CHANGED
@@ -1,1367 +1,1110 @@
|
|
1
1
|
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
7
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
9
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
11
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
13
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
14
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
15
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2
|
+
Processing by AuthenticatedController#index as JS
|
3
|
+
Rendered text template (0.0ms)
|
4
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
5
|
+
Completed 401 Unauthorized in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
16
6
|
[1m[35m (0.0ms)[0m rollback transaction
|
17
7
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8
|
+
Processing by AuthenticatedController#index as JS
|
9
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
10
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
18
11
|
[1m[35m (0.0ms)[0m rollback transaction
|
19
12
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20
|
-
Processing by AuthenticatedController#index as HTML
|
21
|
-
Rendered text template (0.0ms)
|
22
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
23
|
-
Completed 200 OK in 7ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
24
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
25
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
26
13
|
Processing by AuthenticatedController#index as HTML
|
27
14
|
Redirected to http://test.host/auth/bookingsync/?account_id=
|
28
15
|
Filter chain halted as :authenticate_account! rendered or redirected
|
29
16
|
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
30
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
31
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32
|
-
Processing by AuthenticatedController#index as JS
|
33
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
34
|
-
Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
35
17
|
[1m[35m (0.0ms)[0m rollback transaction
|
36
18
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
37
|
-
Processing by AuthenticatedController#index as
|
19
|
+
Processing by AuthenticatedController#index as HTML
|
38
20
|
Filter chain halted as :authenticate_account! rendered or redirected
|
39
|
-
Completed
|
21
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
40
22
|
[1m[35m (0.0ms)[0m rollback transaction
|
41
23
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
42
|
-
Processing by SessionsController#failure as HTML
|
43
|
-
Completed 200 OK in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)
|
44
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
45
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46
|
-
Processing by SessionsController#failure as HTML
|
47
|
-
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
48
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
49
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
50
24
|
Processing by SessionsController#create as HTML
|
51
25
|
Parameters: {"provider"=>"bookingsync"}
|
52
|
-
[1m[35mAccount Load (0.
|
53
|
-
|
54
|
-
|
55
|
-
[1m[
|
56
|
-
[1m[35m (0.
|
26
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
27
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
28
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
29
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.450447"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.450447"]]
|
30
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31
|
+
Redirected to http://test.host/
|
32
|
+
Completed 302 Found in 15ms (ActiveRecord: 1.2ms)
|
33
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
34
|
+
[1m[35m (0.0ms)[0m begin transaction
|
57
35
|
Processing by SessionsController#create as HTML
|
58
36
|
Parameters: {"provider"=>"bookingsync"}
|
59
|
-
[1m[36mAccount Load (0.
|
60
|
-
|
61
|
-
|
62
|
-
[1m[
|
63
|
-
[1m[36m (0.
|
37
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
38
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
39
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
40
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.454804"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.454804"]]
|
41
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
42
|
+
Redirected to http://test.host/
|
43
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
44
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
45
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64
46
|
Processing by SessionsController#create as HTML
|
65
47
|
Parameters: {"provider"=>"bookingsync"}
|
66
|
-
[1m[35mAccount Load (0.
|
67
|
-
|
68
|
-
|
69
|
-
[1m[
|
48
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
49
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
50
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
51
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.457947"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.457947"]]
|
52
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
53
|
+
Redirected to http://test.host/admin
|
54
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
55
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
70
56
|
[1m[35m (0.0ms)[0m begin transaction
|
71
57
|
Processing by SessionsController#destroy as HTML
|
72
|
-
Redirected to http://test.host/
|
58
|
+
Redirected to http://test.host/signed_out
|
73
59
|
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
74
60
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
75
|
-
[1m[35m (0.
|
61
|
+
[1m[35m (0.0ms)[0m begin transaction
|
76
62
|
Processing by SessionsController#destroy as HTML
|
77
|
-
Redirected to http://test.host/
|
63
|
+
Redirected to http://test.host/
|
78
64
|
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
79
65
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
80
|
-
[1m[
|
81
|
-
|
82
|
-
|
83
|
-
[1m[
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
[1m[
|
88
|
-
[1m[35m (
|
89
|
-
|
90
|
-
[1m[
|
91
|
-
[1m[
|
92
|
-
[1m[
|
93
|
-
[1m[
|
94
|
-
[1m[
|
95
|
-
[1m[
|
96
|
-
[1m[
|
97
|
-
[1m[
|
98
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140522110454"]]
|
99
|
-
[1m[35m (1.1ms)[0m commit transaction
|
100
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
101
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
102
|
-
FROM sqlite_master
|
103
|
-
WHERE name='index_accounts_on_uid' AND type='index'
|
104
|
-
UNION ALL
|
105
|
-
SELECT sql
|
106
|
-
FROM sqlite_temp_master
|
107
|
-
WHERE name='index_accounts_on_uid' AND type='index'
|
108
|
-
|
109
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
110
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
111
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
66
|
+
[1m[35m (0.0ms)[0m begin transaction
|
67
|
+
Processing by SessionsController#failure as HTML
|
68
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
69
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
70
|
+
[1m[35m (0.0ms)[0m begin transaction
|
71
|
+
Processing by SessionsController#failure as HTML
|
72
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
73
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
74
|
+
[1m[35m (0.0ms)[0m begin transaction
|
75
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
76
|
+
[1m[35m (0.0ms)[0m begin transaction
|
77
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
78
|
+
[1m[35m (0.0ms)[0m begin transaction
|
79
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
80
|
+
[1m[35m (0.0ms)[0m begin transaction
|
81
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
82
|
+
[1m[35m (0.0ms)[0m begin transaction
|
83
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1[0m
|
112
84
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
113
|
-
[1m[36mSQL (0.
|
114
|
-
[1m[35m (0.
|
85
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.475554"], ["uid", 0], ["updated_at", "2015-02-11 15:46:47.475554"]]
|
86
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
87
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
|
88
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
|
89
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
90
|
+
[1m[35m (0.0ms)[0m begin transaction
|
115
91
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
116
|
-
[1m[
|
117
|
-
[1m[
|
118
|
-
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
119
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
120
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-21 18:50:45.794425"]]
|
121
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
122
|
-
[1m[35m (1.2ms)[0m rollback transaction
|
123
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
124
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
125
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:50:45.798850"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 18:50:45.798850"]]
|
92
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
93
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.483734"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.483734"]]
|
126
94
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
95
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
96
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
127
97
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
128
|
-
[1m[
|
98
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
99
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.486462"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.486462"]]
|
100
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
101
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
102
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
103
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
104
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
105
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
106
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.488922"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.488922"]]
|
129
107
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
130
108
|
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
131
109
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
132
|
-
[1m[
|
133
|
-
[1m[
|
134
|
-
[1m[
|
135
|
-
[1m[36m (0.
|
110
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
111
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.490168"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.490168"]]
|
112
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
113
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
136
114
|
[1m[35m (0.0ms)[0m begin transaction
|
137
|
-
[1m[36m (0.
|
138
|
-
[1m[
|
139
|
-
[1m[
|
140
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:50:45.806672"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:50:45.806672"]]
|
142
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
143
|
-
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
144
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
145
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-21 18:50:45.808967"]]
|
115
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
116
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
117
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.492300"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.492300"]]
|
146
118
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
147
|
-
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."
|
148
|
-
[1m[35m (
|
119
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
120
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
121
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
122
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.493446"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.493446"]]
|
123
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
124
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
149
125
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
150
126
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
151
|
-
[1m[
|
152
|
-
[1m[
|
153
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
154
|
-
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
155
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
156
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-21 18:50:45.816763"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:50:45.816763"]]
|
127
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
128
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.495332"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.495332"]]
|
157
129
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
158
|
-
[1m[
|
159
|
-
[1m[36m (0.
|
130
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
131
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
132
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
133
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.496435"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.496435"]]
|
134
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
135
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
160
136
|
[1m[35m (0.0ms)[0m begin transaction
|
161
137
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
162
|
-
[1m[
|
163
|
-
[1m[
|
164
|
-
[1m[
|
165
|
-
[1m[36m (0.
|
166
|
-
[1m[
|
138
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
139
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.498489"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.498489"]]
|
140
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
143
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.499392"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.499392"]]
|
144
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
145
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
146
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
147
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
148
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:46:47.500921"]]
|
167
149
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
168
150
|
[1m[35m (0.6ms)[0m rollback transaction
|
169
151
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
170
152
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
171
|
-
[1m[
|
172
|
-
[1m[
|
173
|
-
[1m[
|
153
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
154
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.503144"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.503144"]]
|
155
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
174
156
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
175
|
-
[1m[
|
176
|
-
[1m[
|
177
|
-
[1m[36m (0.
|
178
|
-
[1m[
|
157
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
158
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.503952"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.503952"]]
|
159
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
160
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
179
161
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
180
|
-
[1m[
|
162
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
163
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:46:47.505075"]]
|
164
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
165
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
166
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
167
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
168
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
169
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
170
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.506981"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.506981"]]
|
171
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
172
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
173
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
174
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.507829"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.507829"]]
|
181
175
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
182
176
|
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
183
177
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
184
|
-
[1m[
|
178
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
179
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:46:47.508930"]]
|
180
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
181
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
182
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
183
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
184
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
185
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
186
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
187
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1[0m
|
188
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.514663"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-11 15:46:47.514663"]]
|
185
189
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
186
|
-
[1m[35m (0.8ms)[0m rollback transaction
|
187
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
188
190
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
189
|
-
[1m[
|
190
|
-
[1m[
|
191
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
192
|
-
[1m[35mSQL (0.3ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-11-21 18:50:45.834209"]]
|
191
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1[0m
|
192
|
+
[1m[35mSQL (1.1ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-11 15:46:47.515717"]]
|
193
193
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
194
194
|
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
195
|
-
[1m[36m (
|
196
|
-
[1m[
|
195
|
+
[1m[36m (4.8ms)[0m [1mrollback transaction[0m
|
196
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
197
197
|
Processing by AuthenticatedController#index as HTML
|
198
198
|
Rendered text template (0.0ms)
|
199
199
|
Filter chain halted as :authenticate_account! rendered or redirected
|
200
|
-
Completed 200 OK in
|
201
|
-
[1m[
|
202
|
-
[1m[
|
200
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
201
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
202
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
203
203
|
Processing by AuthenticatedController#index as HTML
|
204
204
|
Redirected to http://test.host/auth/bookingsync/?account_id=
|
205
205
|
Filter chain halted as :authenticate_account! rendered or redirected
|
206
206
|
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
207
|
-
[1m[
|
208
|
-
[1m[
|
207
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
208
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
209
209
|
Processing by AuthenticatedController#index as JS
|
210
210
|
Filter chain halted as :authenticate_account! rendered or redirected
|
211
|
-
Completed 401 Unauthorized in
|
212
|
-
[1m[
|
213
|
-
[1m[
|
211
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
212
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
213
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
214
214
|
Processing by AuthenticatedController#index as JS
|
215
215
|
Filter chain halted as :authenticate_account! rendered or redirected
|
216
|
-
Completed 401 Unauthorized in 0ms (Views: 0.
|
217
|
-
[1m[
|
216
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
217
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
218
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
219
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
|
220
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
221
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-11 15:49:40.531833"], ["uid", 0], ["updated_at", "2015-02-11 15:49:40.531833"]]
|
222
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
223
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
|
224
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
|
225
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
226
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
227
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
228
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1[0m
|
229
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.544303"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-11 15:49:40.544303"]]
|
230
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
232
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1[0m
|
233
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-11 15:49:40.545706"]]
|
234
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
235
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
236
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
218
237
|
[1m[35m (0.0ms)[0m begin transaction
|
219
|
-
|
220
|
-
Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)
|
221
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
238
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
222
239
|
[1m[35m (0.0ms)[0m begin transaction
|
223
|
-
|
224
|
-
|
225
|
-
[1m[
|
226
|
-
[1m[35m (0.1ms)[0m begin transaction
|
227
|
-
Processing by SessionsController#create as HTML
|
228
|
-
Parameters: {"provider"=>"bookingsync"}
|
229
|
-
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
230
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
231
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:50:45.866487"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:50:45.866487"]]
|
240
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
242
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.555312"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.555312"]]
|
232
243
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
233
|
-
|
234
|
-
|
235
|
-
[1m[
|
236
|
-
[1m[35m (0.0ms)[0m begin transaction
|
237
|
-
Processing by SessionsController#create as HTML
|
238
|
-
Parameters: {"provider"=>"bookingsync"}
|
239
|
-
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
240
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
241
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:50:45.871743"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:50:45.871743"]]
|
244
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
245
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
246
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.556260"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.556260"]]
|
242
247
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
243
|
-
Redirected to http://test.host/
|
244
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
|
245
|
-
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
246
|
-
[1m[35m (0.0ms)[0m begin transaction
|
247
|
-
Processing by SessionsController#create as HTML
|
248
|
-
Parameters: {"provider"=>"bookingsync"}
|
249
248
|
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
250
249
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251
|
-
[1m[
|
252
|
-
[1m[
|
253
|
-
|
254
|
-
|
255
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
256
|
-
[1m[35m (0.1ms)[0m begin transaction
|
257
|
-
Processing by SessionsController#destroy as HTML
|
258
|
-
Redirected to http://test.host/
|
259
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
260
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
261
|
-
[1m[35m (0.0ms)[0m begin transaction
|
262
|
-
Processing by SessionsController#destroy as HTML
|
263
|
-
Redirected to http://test.host/signed_out
|
264
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
265
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
266
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
267
|
-
Processing by AuthenticatedController#index as HTML
|
268
|
-
Rendered text template (0.0ms)
|
269
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
270
|
-
Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
|
271
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
272
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
273
|
-
Processing by AuthenticatedController#index as HTML
|
274
|
-
Redirected to http://test.host/auth/bookingsync/?account_id=
|
275
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
276
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
277
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
278
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
279
|
-
Processing by AuthenticatedController#index as JS
|
280
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
281
|
-
Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
282
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
283
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
284
|
-
Processing by AuthenticatedController#index as JS
|
285
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
286
|
-
Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
287
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
250
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
251
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:49:40.559001"]]
|
252
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
288
254
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
289
|
-
[1m[35m (0.
|
255
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
290
256
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
291
|
-
[1m[35mSQL (0.
|
257
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.561107"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.561107"]]
|
292
258
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
293
259
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
294
|
-
[1m[36mAccount Exists (0.
|
295
|
-
[1m[35mSQL (
|
296
|
-
[1m[36m (0.
|
260
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
261
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.561907"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.561907"]]
|
262
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
297
263
|
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
298
264
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299
|
-
[1m[35mAccount Exists (0.
|
300
|
-
[1m[36mSQL (0.
|
301
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
302
|
-
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
303
|
-
[1m[35m (0.1ms)[0m begin transaction
|
304
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
305
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
306
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:53:13.249694"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 18:53:13.249694"]]
|
307
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
308
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
309
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
310
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:53:13.251458"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:53:13.251458"]]
|
265
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
266
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:49:40.563009"]]
|
311
267
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
312
|
-
[1m[36mAccount Load (0.
|
268
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
269
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
270
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
313
271
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
314
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE
|
315
|
-
[1m[35mSQL (0.
|
272
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
273
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.564753"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.564753"]]
|
316
274
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
317
|
-
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
|
318
|
-
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
319
|
-
[1m[35m (0.0ms)[0m begin transaction
|
320
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
321
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
322
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:53:13.256633"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 18:53:13.256633"]]
|
323
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
325
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
326
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:53:13.258180"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:53:13.258180"]]
|
327
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
328
|
-
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
329
275
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
330
|
-
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE
|
331
|
-
[1m[35mSQL (0.
|
276
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
277
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.565494"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.565494"]]
|
332
278
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
333
|
-
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."
|
334
|
-
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
335
|
-
[1m[35m (0.0ms)[0m begin transaction
|
279
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
336
280
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
337
|
-
[1m[35mAccount Exists (0.
|
338
|
-
[1m[36mSQL (0.
|
339
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
340
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
341
|
-
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
342
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
343
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
344
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:53:13.267292"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:53:13.267292"]]
|
281
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
282
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:49:40.566666"]]
|
345
283
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
346
|
-
[1m[
|
347
|
-
[1m[35m (0.
|
348
|
-
[1m[36m (0.
|
284
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
285
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
286
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
349
287
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
350
288
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
351
|
-
[1m[35mSQL (0.
|
289
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.568805"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.568805"]]
|
352
290
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
353
|
-
[1m[
|
291
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
|
292
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
293
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
294
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
295
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.571337"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.571337"]]
|
296
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
297
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
|
298
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
299
|
+
[1m[35m (0.0ms)[0m begin transaction
|
354
300
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
355
|
-
[1m[35mAccount Exists (0.
|
356
|
-
[1m[36mSQL (0.
|
301
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
302
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.573462"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.573462"]]
|
357
303
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
358
|
-
[1m[
|
359
|
-
[1m[35m (0.1ms)[0m begin transaction
|
360
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
361
|
-
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
362
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:53:13.277779"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 18:53:13.277779"]]
|
363
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
364
|
-
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
304
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
365
305
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
366
|
-
[1m[36mAccount Exists (0.
|
367
|
-
[1m[35mSQL (0.
|
306
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
307
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.574490"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.574490"]]
|
368
308
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
369
|
-
[1m[35m (0.
|
370
|
-
[1m[36m (0.
|
309
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
310
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
371
311
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
372
312
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
373
|
-
[1m[35mSQL (0.
|
313
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.576222"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.576222"]]
|
374
314
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
375
|
-
[1m[35mAccount Load (0.
|
315
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
376
316
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
377
|
-
[1m[35mAccount Exists (0.
|
378
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "
|
317
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
318
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.577248"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.577248"]]
|
379
319
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
380
|
-
[1m[36m (0.
|
320
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
381
321
|
[1m[35m (0.0ms)[0m begin transaction
|
382
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
383
|
-
[1m[35m (0.1ms)[0m begin transaction
|
384
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
385
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
|
386
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:53:13.303051"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-11-21 18:53:13.303051"]]
|
387
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
388
322
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
389
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE
|
390
|
-
[1m[36mSQL (0.
|
323
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
324
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.579157"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.579157"]]
|
391
325
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
392
|
-
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."
|
393
|
-
[1m[35m (0.
|
326
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
327
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
328
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
329
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.580226"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.580226"]]
|
330
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
331
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
332
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
333
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
334
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
335
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
336
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
337
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
338
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
339
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
394
340
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
395
341
|
Processing by SessionsController#create as HTML
|
396
342
|
Parameters: {"provider"=>"bookingsync"}
|
397
|
-
[1m[35mAccount Load (0.
|
398
|
-
[1m[36m (0.
|
343
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
344
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
399
345
|
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
400
|
-
[1m[36mSQL (0.
|
401
|
-
[1m[35m (0.
|
346
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.588056"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.588056"]]
|
347
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
402
348
|
Redirected to http://test.host/
|
403
|
-
Completed 302 Found in
|
404
|
-
[1m[36m (0.
|
349
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
|
350
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
405
351
|
[1m[35m (0.0ms)[0m begin transaction
|
406
352
|
Processing by SessionsController#create as HTML
|
407
353
|
Parameters: {"provider"=>"bookingsync"}
|
408
|
-
[1m[36mAccount Load (0.
|
354
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
409
355
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
410
|
-
[1m[36mAccount Exists (0.
|
411
|
-
[1m[35mSQL (0.
|
412
|
-
[1m[36m (0.
|
356
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
357
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.591910"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.591910"]]
|
358
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
413
359
|
Redirected to http://test.host/admin
|
414
|
-
Completed 302 Found in
|
415
|
-
[1m[35m (0.
|
360
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
361
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
416
362
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
417
363
|
Processing by SessionsController#create as HTML
|
418
364
|
Parameters: {"provider"=>"bookingsync"}
|
419
|
-
[1m[35mAccount Load (0.
|
420
|
-
[1m[36m (0.
|
365
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
366
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
421
367
|
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
422
|
-
[1m[36mSQL (0.
|
368
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.594608"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.594608"]]
|
423
369
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
424
370
|
Redirected to http://test.host/
|
425
|
-
Completed 302 Found in
|
426
|
-
[1m[36m (0.
|
427
|
-
[1m[35m (0.
|
371
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
|
372
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
373
|
+
[1m[35m (0.0ms)[0m begin transaction
|
428
374
|
Processing by SessionsController#failure as HTML
|
429
|
-
Completed 200 OK in 3ms (Views: 2.
|
430
|
-
[1m[36m (0.
|
431
|
-
[1m[35m (0.
|
375
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
|
376
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
377
|
+
[1m[35m (0.0ms)[0m begin transaction
|
432
378
|
Processing by SessionsController#failure as HTML
|
433
|
-
Completed 200 OK in
|
379
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
434
380
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
435
381
|
[1m[35m (0.1ms)[0m begin transaction
|
436
382
|
Processing by SessionsController#destroy as HTML
|
437
383
|
Redirected to http://test.host/
|
438
384
|
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
439
385
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
440
|
-
[1m[35m (0.
|
441
|
-
Processing by SessionsController#destroy as HTML
|
442
|
-
Redirected to http://test.host/signed_out
|
443
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
444
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
445
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
386
|
+
[1m[35m (0.0ms)[0m begin transaction
|
446
387
|
Processing by SessionsController#destroy as HTML
|
447
388
|
Redirected to http://test.host/signed_out
|
448
389
|
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
449
|
-
[1m[
|
450
|
-
[1m[36m (0.
|
451
|
-
|
452
|
-
Redirected to http://test.host/
|
453
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
454
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
455
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
456
|
-
Processing by SessionsController#failure as HTML
|
457
|
-
Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
|
458
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
390
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
391
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
392
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
459
393
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
460
|
-
|
461
|
-
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
462
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
394
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
463
395
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
464
|
-
|
465
|
-
|
466
|
-
[1m[
|
467
|
-
[1m[36m (0.
|
468
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" =
|
469
|
-
[1m[
|
470
|
-
[1m[35m (0.
|
471
|
-
|
472
|
-
|
473
|
-
[1m[
|
474
|
-
[1m[
|
475
|
-
|
476
|
-
Parameters: {"provider"=>"bookingsync"}
|
477
|
-
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
396
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
|
397
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
398
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-12 20:01:06.371988"], ["uid", 0], ["updated_at", "2015-02-12 20:01:06.371988"]]
|
399
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
400
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
|
401
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
|
402
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
403
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
404
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
405
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
406
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.389273"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.389273"]]
|
407
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
478
408
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
479
409
|
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
480
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "
|
410
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.390208"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.390208"]]
|
481
411
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
482
|
-
Redirected to http://test.host/admin
|
483
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
|
484
|
-
[1m[35m (0.6ms)[0m rollback transaction
|
485
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
486
|
-
Processing by SessionsController#create as HTML
|
487
|
-
Parameters: {"provider"=>"bookingsync"}
|
488
412
|
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
489
413
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
490
|
-
[1m[35mAccount Exists (0.
|
491
|
-
[1m[36mSQL (0.
|
492
|
-
[1m[35m (0.
|
493
|
-
|
494
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
|
495
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
414
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
415
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:06.394590"]]
|
416
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
417
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
496
418
|
[1m[35m (0.0ms)[0m begin transaction
|
497
|
-
[1m[36m (0.
|
498
|
-
[1m[
|
499
|
-
[1m[
|
500
|
-
[1m[
|
501
|
-
[1m[
|
419
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
420
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
421
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.397910"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.397910"]]
|
422
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
423
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
424
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
425
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.398765"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.398765"]]
|
426
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
427
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
428
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
429
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
430
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:06.399960"]]
|
431
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
432
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
|
433
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
434
|
+
[1m[35m (0.0ms)[0m begin transaction
|
435
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
436
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
437
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.401788"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.401788"]]
|
502
438
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
503
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
504
|
-
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
505
439
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
506
440
|
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
507
|
-
[1m[36mSQL (
|
508
|
-
[1m[35m (0.
|
509
|
-
[1m[
|
510
|
-
[1m[35m (0.9ms)[0m rollback transaction
|
511
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
441
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.402598"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.402598"]]
|
442
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
443
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
512
444
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
513
|
-
[1m[36mAccount Exists (0.
|
514
|
-
[1m[35mSQL (0.
|
445
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
446
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:06.403630"]]
|
515
447
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
448
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
|
449
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
450
|
+
[1m[35m (0.0ms)[0m begin transaction
|
451
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
452
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
453
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.405479"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.405479"]]
|
454
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
455
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
516
456
|
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
517
457
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
518
458
|
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
519
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "
|
459
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.408899"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.408899"]]
|
520
460
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
521
|
-
[1m[36m (
|
522
|
-
[1m[35m (0.
|
523
|
-
[1m[36m (0.
|
524
|
-
[1m[
|
525
|
-
[1m[
|
526
|
-
[1m[
|
527
|
-
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
528
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
529
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
530
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-21 18:53:57.230154"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:53:57.230154"]]
|
531
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
532
|
-
[1m[35m (0.8ms)[0m rollback transaction
|
533
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
534
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
535
|
-
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
536
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 18:53:57.234384"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 18:53:57.234384"]]
|
461
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
462
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
463
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
464
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
465
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
466
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.411202"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.411202"]]
|
537
467
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
538
|
-
[1m[35mAccount Load (0.
|
539
|
-
[1m[36m (0.
|
540
|
-
[1m[35mAccount Exists (0.
|
541
|
-
[1m[36mSQL (0.
|
468
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
469
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
470
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
471
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.412254"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.412254"]]
|
542
472
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
543
|
-
[1m[36m (0.
|
544
|
-
[1m[35m (0.
|
473
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
474
|
+
[1m[35m (0.0ms)[0m begin transaction
|
545
475
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
546
476
|
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
547
|
-
[1m[36mSQL (0.
|
548
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
549
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
550
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
551
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:53:57.241829"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:53:57.241829"]]
|
477
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.414042"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.414042"]]
|
552
478
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
553
|
-
[1m[36mAccount Load (0.
|
479
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
554
480
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
555
|
-
[1m[36mAccount Exists (0.
|
556
|
-
[1m[35mSQL (0.
|
481
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
482
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.415033"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.415033"]]
|
557
483
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
558
|
-
[1m[35m (0.
|
484
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
559
485
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
560
486
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
561
487
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
562
|
-
[1m[35mSQL (0.
|
563
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
564
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
565
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
566
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 18:53:57.249738"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:53:57.249738"]]
|
488
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.416719"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.416719"]]
|
567
489
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
568
|
-
[1m[35mAccount Load (0.
|
490
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
569
491
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
570
|
-
[1m[35mAccount Exists (0.
|
571
|
-
[1m[36mSQL (0.
|
492
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
493
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.417803"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.417803"]]
|
572
494
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
573
|
-
[1m[
|
574
|
-
[1m[35m (0.
|
575
|
-
[1m[36m (0.0ms)[0m [
|
495
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
496
|
+
[1m[35m (0.0ms)[0m begin transaction
|
497
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
498
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
|
499
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.420932"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-12 20:01:06.420932"]]
|
500
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
501
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
502
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
|
503
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-12 20:01:06.422276"]]
|
504
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
505
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
506
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
507
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
576
508
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
577
509
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
578
|
-
[1m[35mSQL (0.
|
510
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.852149"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.852149"]]
|
579
511
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
580
|
-
[1m[35m (0.
|
512
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
581
513
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
582
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "
|
514
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.853500"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.853500"]]
|
583
515
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
584
516
|
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
585
517
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
586
|
-
[1m[35mAccount Exists (0.
|
587
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "
|
518
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
519
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:24.857196"]]
|
588
520
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
589
|
-
[1m[
|
590
|
-
[1m[35m (
|
591
|
-
[1m[36m (0.
|
592
|
-
[1m[
|
593
|
-
[1m[
|
594
|
-
[1m[
|
595
|
-
[1m[36m (0.
|
596
|
-
[1m[
|
597
|
-
[1m[
|
598
|
-
[1m[
|
521
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
522
|
+
[1m[35m (0.0ms)[0m begin transaction
|
523
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
524
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
525
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.860005"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.860005"]]
|
526
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
527
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
528
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
529
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.860892"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.860892"]]
|
530
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
531
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
532
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
533
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
534
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:24.862066"]]
|
599
535
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
600
|
-
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id",
|
601
|
-
[1m[36m (0.
|
602
|
-
[1m[35m (0.1ms)[0m begin transaction
|
603
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
604
|
-
[1m[35m (0.1ms)[0m begin transaction
|
605
|
-
Processing by AuthenticatedController#index as JS
|
606
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
607
|
-
Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
608
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
536
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
|
537
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
609
538
|
[1m[35m (0.0ms)[0m begin transaction
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
[1m[
|
614
|
-
[1m[
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
620
|
-
[1m[35m (0.1ms)[0m begin transaction
|
621
|
-
Processing by AuthenticatedController#index as HTML
|
622
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
623
|
-
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
624
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
625
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
626
|
-
Processing by SessionsController#destroy as HTML
|
627
|
-
Redirected to http://test.host/signed_out
|
628
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
629
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
630
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
631
|
-
Processing by SessionsController#destroy as HTML
|
632
|
-
Redirected to http://test.host/
|
633
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
634
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
635
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
636
|
-
Processing by SessionsController#create as HTML
|
637
|
-
Parameters: {"provider"=>"bookingsync"}
|
638
|
-
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
639
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
640
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
641
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:54:55.186376"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:54:55.186376"]]
|
642
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
643
|
-
Redirected to http://test.host/
|
644
|
-
Completed 302 Found in 31ms (ActiveRecord: 2.6ms)
|
645
|
-
[1m[36m (1.8ms)[0m [1mrollback transaction[0m
|
646
|
-
[1m[35m (0.1ms)[0m begin transaction
|
647
|
-
Processing by SessionsController#create as HTML
|
648
|
-
Parameters: {"provider"=>"bookingsync"}
|
649
|
-
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
539
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
540
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
541
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.864769"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.864769"]]
|
542
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
543
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
544
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
545
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.865648"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.865648"]]
|
546
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
547
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
650
548
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
651
|
-
[1m[36mAccount Exists (0.
|
652
|
-
[1m[35mSQL (0.
|
549
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
550
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:24.866777"]]
|
653
551
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
654
|
-
|
655
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
656
|
-
[1m[35m (0.5ms)[0m rollback transaction
|
657
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
658
|
-
Processing by SessionsController#create as HTML
|
659
|
-
Parameters: {"provider"=>"bookingsync"}
|
660
|
-
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
661
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
662
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
663
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:54:55.200615"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:54:55.200615"]]
|
664
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
665
|
-
Redirected to http://test.host/admin
|
666
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
552
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
|
667
553
|
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
668
|
-
[1m[35m (0.1ms)[0m begin transaction
|
669
|
-
Processing by SessionsController#failure as HTML
|
670
|
-
Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
|
671
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
672
|
-
[1m[35m (0.1ms)[0m begin transaction
|
673
|
-
Processing by SessionsController#failure as HTML
|
674
|
-
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
675
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
676
554
|
[1m[35m (0.0ms)[0m begin transaction
|
677
|
-
Processing by AuthenticatedController#index as JS
|
678
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
679
|
-
Completed 401 Unauthorized in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
680
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
681
|
-
[1m[35m (0.1ms)[0m begin transaction
|
682
|
-
Processing by AuthenticatedController#index as JS
|
683
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
684
|
-
Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
685
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
686
|
-
[1m[35m (0.1ms)[0m begin transaction
|
687
|
-
Processing by AuthenticatedController#index as HTML
|
688
|
-
Redirected to http://test.host/auth/bookingsync/?account_id=
|
689
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
690
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
691
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
692
|
-
[1m[35m (0.1ms)[0m begin transaction
|
693
|
-
Processing by AuthenticatedController#index as HTML
|
694
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
695
|
-
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
696
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
697
|
-
[1m[35m (0.1ms)[0m begin transaction
|
698
555
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
699
|
-
[1m[35mAccount Exists (0.
|
700
|
-
[1m[36mSQL (0.
|
701
|
-
[1m[35m (0.
|
702
|
-
[1m[36m (0.
|
703
|
-
[1m[35mAccount Load (0.
|
556
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
557
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.869347"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.869347"]]
|
558
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
559
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
560
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
704
561
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
705
|
-
[1m[35mAccount Exists (0.
|
706
|
-
[1m[36mSQL (0.
|
707
|
-
[1m[35m (0.
|
708
|
-
[1m[36m (0.
|
709
|
-
[1m[35m (
|
710
|
-
[1m[36m (0.
|
711
|
-
[1m[35m (0.
|
712
|
-
[1m[36mAccount Exists (0.
|
713
|
-
[1m[35mSQL (0.
|
562
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
563
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.871921"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.871921"]]
|
564
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
565
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
566
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
567
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
568
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
569
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
570
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.874052"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.874052"]]
|
714
571
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
715
|
-
[1m[35mAccount Load (0.
|
572
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
716
573
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
717
|
-
[1m[35mAccount Exists (0.
|
718
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "
|
574
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
575
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.875093"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.875093"]]
|
719
576
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
720
|
-
[1m[36m (0.
|
577
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
721
578
|
[1m[35m (0.0ms)[0m begin transaction
|
722
579
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
723
580
|
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
724
|
-
[1m[36mSQL (0.
|
581
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.876954"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.876954"]]
|
725
582
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
726
|
-
[1m[36mAccount Load (0.
|
583
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
727
584
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
728
585
|
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
729
|
-
[1m[35mSQL (0.
|
586
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.877964"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.877964"]]
|
730
587
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
731
|
-
[1m[35m (0.
|
588
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
732
589
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
733
590
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
734
591
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
735
|
-
[1m[35mSQL (0.
|
736
|
-
[1m[36m (0.
|
737
|
-
[1m[35mAccount Load (0.
|
738
|
-
[1m[36m (0.
|
592
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.879669"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.879669"]]
|
593
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
594
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
595
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
739
596
|
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
740
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "
|
597
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.880708"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.880708"]]
|
741
598
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
742
|
-
[1m[36m (0.
|
743
|
-
[1m[35m (0.
|
599
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
600
|
+
[1m[35m (0.0ms)[0m begin transaction
|
744
601
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
745
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" =
|
746
|
-
[1m[36mSQL (0.
|
602
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
603
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.882712"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423857684], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.882712"]]
|
604
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
605
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
606
|
+
[1m[35m (0.0ms)[0m begin transaction
|
607
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1[0m
|
608
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
609
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.887200"], ["uid", 0], ["updated_at", "2015-02-12 20:01:24.887200"]]
|
747
610
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
611
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
|
612
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
|
613
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
614
|
+
[1m[35m (0.0ms)[0m begin transaction
|
615
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
616
|
+
[1m[35m (0.0ms)[0m begin transaction
|
748
617
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
749
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid"
|
750
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "
|
618
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
|
619
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.900178"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-12 20:01:24.900178"]]
|
751
620
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
752
|
-
[1m[
|
621
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
622
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
|
623
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-12 20:01:24.901135"]]
|
624
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
625
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
626
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
627
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
753
628
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
754
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE
|
755
|
-
[1m[35mSQL (0.
|
629
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
630
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:31.125780"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423857691], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:01:31.125780"]]
|
756
631
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
757
|
-
[1m[35m (0.
|
758
|
-
[1m[36m (0.
|
632
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
633
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
759
634
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
760
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" =
|
761
|
-
[1m[35mSQL (0.
|
635
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
636
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:55.797523"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423857715], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:01:55.797523"]]
|
762
637
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
638
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
639
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
763
640
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
764
641
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
765
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "
|
642
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:06:16.319287"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685176], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:06:16.319287"]]
|
766
643
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
767
|
-
[1m[
|
768
|
-
[1m[36m (0.0ms)[0m [
|
769
|
-
[1m[
|
770
|
-
[1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-21 18:54:55.268755"]]
|
771
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
772
|
-
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
773
|
-
[1m[35m (0.9ms)[0m rollback transaction
|
644
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
645
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
646
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
774
647
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
775
648
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
776
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" =
|
777
|
-
[1m[35mSQL (0.
|
649
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
650
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:06:16.322197"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423857976], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:06:16.322197"]]
|
778
651
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
652
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
653
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
779
654
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
780
655
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
781
|
-
[1m[35mSQL (0.
|
656
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:09.770187"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858029], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:09.770187"]]
|
782
657
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
783
|
-
[1m[
|
784
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
785
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
786
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-21 18:54:55.275506"]]
|
787
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
788
|
-
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
789
|
-
[1m[35m (0.7ms)[0m rollback transaction
|
790
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
791
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
658
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
792
659
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
793
660
|
[1m[35m (0.0ms)[0m rollback transaction
|
794
|
-
[1m[36m (0.
|
661
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
795
662
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
796
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid"
|
797
|
-
[1m[35mSQL (0.
|
798
|
-
[1m[36m (0.
|
663
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
664
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:09.777507"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685229], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:09.777507"]]
|
665
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
666
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
667
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
799
668
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
800
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE
|
801
|
-
[1m[35mSQL (0.
|
669
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
670
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:19.000194"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685238], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:19.000194"]]
|
802
671
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
803
|
-
[1m[
|
804
|
-
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
805
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
806
|
-
Processing by AuthenticatedController#index as JS
|
807
|
-
Rendered text template (0.1ms)
|
808
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
809
|
-
Completed 401 Unauthorized in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)
|
810
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
811
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
812
|
-
Processing by AuthenticatedController#index as JS
|
813
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
814
|
-
Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
815
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
816
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
817
|
-
Processing by AuthenticatedController#index as HTML
|
818
|
-
Redirected to http://test.host/auth/bookingsync/?account_id=
|
819
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
820
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
821
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
672
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
822
673
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
823
|
-
Processing by AuthenticatedController#index as HTML
|
824
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
825
|
-
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
826
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
827
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
828
|
-
Processing by SessionsController#create as HTML
|
829
|
-
Parameters: {"provider"=>"bookingsync"}
|
830
|
-
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
831
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
832
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
833
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:55:33.301837"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:55:33.301837"]]
|
834
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
835
|
-
Redirected to http://test.host/
|
836
|
-
Completed 302 Found in 25ms (ActiveRecord: 2.0ms)
|
837
|
-
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
838
|
-
[1m[35m (0.1ms)[0m begin transaction
|
839
|
-
Processing by SessionsController#create as HTML
|
840
|
-
Parameters: {"provider"=>"bookingsync"}
|
841
|
-
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
842
674
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
843
|
-
[1m[36mAccount Exists (0.
|
844
|
-
[1m[35mSQL (0.
|
845
|
-
[1m[36m (0.
|
846
|
-
|
847
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
848
|
-
[1m[35m (0.5ms)[0m rollback transaction
|
849
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
850
|
-
Processing by SessionsController#create as HTML
|
851
|
-
Parameters: {"provider"=>"bookingsync"}
|
852
|
-
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
853
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
854
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
855
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:55:33.313593"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:55:33.313593"]]
|
856
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
857
|
-
Redirected to http://test.host/admin
|
858
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
|
859
|
-
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
860
|
-
[1m[35m (0.0ms)[0m begin transaction
|
861
|
-
Processing by SessionsController#destroy as HTML
|
862
|
-
Redirected to http://test.host/signed_out
|
863
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
864
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
865
|
-
[1m[35m (0.0ms)[0m begin transaction
|
866
|
-
Processing by SessionsController#destroy as HTML
|
867
|
-
Redirected to http://test.host/
|
868
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
869
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
870
|
-
[1m[35m (0.0ms)[0m begin transaction
|
871
|
-
Processing by SessionsController#failure as HTML
|
872
|
-
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
|
873
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
874
|
-
[1m[35m (0.1ms)[0m begin transaction
|
875
|
-
Processing by SessionsController#failure as HTML
|
876
|
-
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
877
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
878
|
-
[1m[35m (0.0ms)[0m begin transaction
|
879
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
880
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
881
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:55:33.329817"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 18:55:33.329817"]]
|
882
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
883
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
884
|
-
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
885
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
886
|
-
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
887
|
-
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:55:33.334203"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:55:33.334203"]]
|
888
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
889
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
890
|
-
[1m[35m (0.9ms)[0m rollback transaction
|
675
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
676
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:19.002839"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685239], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:19.002839"]]
|
677
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
678
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
891
679
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
892
680
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
893
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" =
|
894
|
-
[1m[35mSQL (0.
|
681
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
682
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:19.004445"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858039], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:19.004445"]]
|
895
683
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
896
|
-
[1m[
|
897
|
-
[1m[36m (0.
|
898
|
-
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
899
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:55:33.340714"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:55:33.340714"]]
|
900
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
901
|
-
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
902
|
-
[1m[35m (0.1ms)[0m begin transaction
|
903
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
904
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
905
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:55:33.344157"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 18:55:33.344157"]]
|
906
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
907
|
-
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
684
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
685
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
908
686
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
909
|
-
[1m[36mAccount Exists (0.
|
910
|
-
[1m[35mSQL (0.
|
687
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
688
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:45.038363"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858065], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:45.038363"]]
|
911
689
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
912
|
-
[1m[35m (0.
|
690
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
913
691
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
914
692
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
915
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" =
|
916
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "
|
693
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
694
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:45.045485"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685265], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:45.045485"]]
|
917
695
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
918
|
-
[1m[
|
919
|
-
[1m[36m (0.0ms)[0m [
|
920
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
921
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:55:33.350441"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:55:33.350441"]]
|
922
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
923
|
-
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
924
|
-
[1m[35m (0.1ms)[0m begin transaction
|
925
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
926
|
-
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
927
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:55:33.354184"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 18:55:33.354184"]]
|
928
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
929
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
930
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
931
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 18:55:33.356113"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:55:33.356113"]]
|
932
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
933
|
-
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
696
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
697
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
934
698
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
935
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE
|
936
|
-
[1m[35mSQL (0.1ms)[0m
|
699
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
700
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:45.047345"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685265], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:45.047345"]]
|
937
701
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
938
|
-
[1m[35m (
|
939
|
-
[1m[36m (0.
|
702
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
703
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
940
704
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
941
|
-
[1m[36mAccount Exists (0.
|
942
|
-
[1m[35mSQL (0.
|
705
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
706
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:51.526990"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858071], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:51.526990"]]
|
943
707
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
708
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
709
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
944
710
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
945
711
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
946
|
-
[1m[35mSQL (0.
|
712
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:51.533708"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685271], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:51.533708"]]
|
947
713
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
948
|
-
[1m[
|
949
|
-
[1m[
|
950
|
-
[1m[
|
951
|
-
[1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-21 18:55:33.366259"]]
|
952
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
953
|
-
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
954
|
-
[1m[35m (0.9ms)[0m rollback transaction
|
955
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
956
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
957
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
958
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 18:55:33.369941"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 18:55:33.369941"]]
|
714
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
715
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
716
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", 1423944471], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:07:51.534846"]]
|
959
717
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
718
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
719
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
960
720
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
961
721
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
962
|
-
[1m[35mSQL (0.
|
722
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:51.537102"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685271], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:51.537102"]]
|
963
723
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
964
|
-
[1m[
|
965
|
-
[1m[
|
966
|
-
[1m[
|
967
|
-
[1m[
|
968
|
-
[1m[
|
969
|
-
[1m[
|
970
|
-
[1m[
|
971
|
-
[1m[
|
972
|
-
[1m[
|
724
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
725
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
726
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", 1423944471], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:07:51.538004"]]
|
727
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
728
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
729
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
730
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
731
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
732
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
733
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:59.469958"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858079], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:59.469958"]]
|
734
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
735
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
973
736
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
974
|
-
[1m[35m (0.0ms)[0m
|
737
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
738
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
739
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:59.476828"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685279], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:59.476828"]]
|
740
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
741
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
742
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
743
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", 1423944479], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:07:59.478062"]]
|
744
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
745
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
975
746
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
976
747
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
977
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid"
|
978
|
-
[1m[35mSQL (0.
|
748
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
749
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:59.480168"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685279], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:59.480168"]]
|
979
750
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
980
751
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
981
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid"
|
982
|
-
[1m[35mSQL (0.
|
752
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
753
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", 1423944479], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:07:59.481277"]]
|
983
754
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
984
755
|
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
985
|
-
[1m[36m (0.
|
986
|
-
[1m[36m (0.
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
[1m[35m (0.
|
756
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
757
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
758
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
759
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
760
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:17.361778"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858097], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:17.361778"]]
|
761
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
762
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
992
763
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
[1m[
|
764
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
765
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
766
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:17.369132"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685297"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:17.369132"]]
|
767
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
768
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
769
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
770
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423944497"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:08:17.370555"]]
|
771
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
772
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
997
773
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
[1m[35m (0.0ms)[0m
|
774
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
775
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
776
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:17.373351"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685297"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:17.373351"]]
|
777
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
778
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
779
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
780
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423944497"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:08:17.374422"]]
|
781
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
782
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
783
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
784
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
785
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
786
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
787
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:27.663084"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685307"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:27.663084"]]
|
788
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
789
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1003
790
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
[1m[
|
791
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
792
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
793
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:27.765821"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685307"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:27.765821"]]
|
794
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
795
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1008
796
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1009
|
-
|
1010
|
-
|
1011
|
-
[1m[
|
1012
|
-
[1m[36m (0.
|
1013
|
-
[1m[
|
1014
|
-
[1m[
|
1015
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1016
|
-
Redirected to http://test.host/
|
1017
|
-
Completed 302 Found in 34ms (ActiveRecord: 2.0ms)
|
1018
|
-
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1019
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1020
|
-
Processing by SessionsController#create as HTML
|
1021
|
-
Parameters: {"provider"=>"bookingsync"}
|
1022
|
-
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
797
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
798
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
799
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:27.850237"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858107], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:27.850237"]]
|
800
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
801
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
802
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1023
803
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1024
804
|
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1025
|
-
[1m[35mSQL (0.
|
805
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:39.768969"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685319"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:39.768969"]]
|
1026
806
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1027
|
-
|
1028
|
-
|
1029
|
-
[1m[
|
1030
|
-
[1m[36m (0.0ms)[0m [
|
1031
|
-
|
1032
|
-
|
1033
|
-
[1m[
|
807
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
808
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
809
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423944519"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:08:39.770439"]]
|
810
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
811
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
812
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
813
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1034
814
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1035
815
|
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1036
|
-
[1m[36mSQL (0.
|
816
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:08:39.774408"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685319"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:39.774408"]]
|
817
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
818
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
819
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
|
820
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423944519"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:08:39.775257"]]
|
1037
821
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1038
|
-
Redirected to http://test.host/admin
|
1039
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
1040
822
|
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1041
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1042
|
-
Processing by SessionsController#destroy as HTML
|
1043
|
-
Redirected to http://test.host/signed_out
|
1044
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1045
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1046
823
|
[1m[35m (0.0ms)[0m begin transaction
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
[1m[
|
824
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
825
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
826
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:08:39.777040"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858119], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:39.777040"]]
|
827
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
828
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
829
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
830
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
|
831
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
832
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-12 20:19:46.419520"], ["uid", 0], ["updated_at", "2015-02-12 20:19:46.419520"]]
|
833
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
834
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
|
835
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
|
836
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
837
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
838
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
839
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
840
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.437620"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.437620"]]
|
841
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
842
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
843
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
844
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.438633"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.438633"]]
|
845
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
846
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
847
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
848
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
849
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:19:46.443218"]]
|
850
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
851
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1051
852
|
[1m[35m (0.0ms)[0m begin transaction
|
1052
|
-
|
1053
|
-
|
1054
|
-
[1m[
|
1055
|
-
[1m[35m (0.
|
1056
|
-
|
1057
|
-
|
1058
|
-
[1m[
|
853
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
854
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
855
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.446023"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.446023"]]
|
856
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
857
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
858
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
859
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.446895"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.446895"]]
|
860
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
861
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
862
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
863
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
864
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:19:46.448155"]]
|
865
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
866
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
|
867
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1059
868
|
[1m[35m (0.0ms)[0m begin transaction
|
1060
869
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1061
870
|
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1062
|
-
[1m[36mSQL (0.
|
871
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.451130"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.451130"]]
|
1063
872
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1064
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
1065
|
-
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1066
873
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1067
|
-
[1m[35mAccount Exists (0.
|
1068
|
-
[1m[36mSQL (
|
1069
|
-
[1m[35m (0.
|
1070
|
-
[1m[
|
1071
|
-
[1m[35m (0.
|
874
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
875
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.452140"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.452140"]]
|
876
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
877
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
878
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
879
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
880
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:19:46.453340"]]
|
881
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
882
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
|
883
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
884
|
+
[1m[35m (0.0ms)[0m begin transaction
|
885
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
886
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
887
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.455373"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.455373"]]
|
888
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
889
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
890
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
891
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
892
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
893
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.458622"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.458622"]]
|
894
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
895
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
896
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1072
897
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1073
898
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1074
899
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1075
|
-
[1m[35mSQL (0.
|
900
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.460682"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.460682"]]
|
1076
901
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1077
902
|
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1078
|
-
[1m[36m (0.
|
1079
|
-
[1m[35mAccount Exists (0.
|
1080
|
-
[1m[36mSQL (0.
|
903
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
904
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
905
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.461899"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.461899"]]
|
1081
906
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1082
|
-
[1m[36m (
|
1083
|
-
[1m[35m (0.
|
907
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
908
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1084
909
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1085
910
|
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1086
|
-
[1m[36mSQL (0.
|
911
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.463834"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.463834"]]
|
1087
912
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1088
913
|
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1089
914
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1090
|
-
[1m[36mAccount Exists (0.
|
1091
|
-
[1m[35mSQL (0.
|
915
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
916
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.464970"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.464970"]]
|
1092
917
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1093
|
-
[1m[35m (0.
|
1094
|
-
[1m[36m (0.
|
918
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
919
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1095
920
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1096
|
-
[1m[36mAccount Exists (0.
|
1097
|
-
[1m[35mSQL (0.
|
921
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
922
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.467109"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.467109"]]
|
1098
923
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1099
924
|
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1100
925
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
926
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
927
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.468395"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.468395"]]
|
928
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
929
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
930
|
+
[1m[35m (0.0ms)[0m begin transaction
|
931
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1101
932
|
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1102
|
-
[1m[36mSQL (0.
|
1103
|
-
[1m[35m (0.
|
1104
|
-
[1m[36m (0.
|
933
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.471060"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858786], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.471060"]]
|
934
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
935
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1105
936
|
[1m[35m (0.0ms)[0m begin transaction
|
937
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
938
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
939
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.482655"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685986"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.482655"]]
|
940
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1106
941
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1107
|
-
[1m[35mAccount Exists (0.
|
1108
|
-
[1m[36mSQL (0.2ms)[0m [
|
1109
|
-
[1m[35m (0.
|
942
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
|
943
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423945186"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:19:46.483744"]]
|
944
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
945
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
946
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1110
947
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1111
|
-
[1m[35mAccount Exists (0.
|
1112
|
-
[1m[36mSQL (0.
|
948
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
949
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.485858"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685986"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.485858"]]
|
1113
950
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1114
|
-
[1m[
|
951
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
952
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
|
953
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423945186"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:19:46.486830"]]
|
954
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
955
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
956
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
957
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1115
958
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1116
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE
|
1117
|
-
[1m[35mSQL (0.1ms)[0m
|
959
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1[0m
|
960
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.489197"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-12 20:19:46.489197"]]
|
1118
961
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1119
|
-
[1m[35m (0.9ms)[0m rollback transaction
|
1120
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1121
962
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1122
|
-
[1m[36mAccount Exists (0.
|
1123
|
-
[1m[35mSQL (0.
|
1124
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1125
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1126
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1127
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 18:56:04.708524"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 18:56:04.708524"]]
|
963
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1[0m
|
964
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-12 20:19:46.489992"]]
|
1128
965
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1129
|
-
[1m[35mAccount Load (0.
|
1130
|
-
[1m[36m (0.
|
1131
|
-
[1m[
|
1132
|
-
[1m[
|
1133
|
-
[1m[
|
1134
|
-
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1135
|
-
[1m[35m (0.9ms)[0m rollback transaction
|
1136
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
966
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
967
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
968
|
+
[1m[35m (0.1ms)[0m begin transaction
|
969
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
970
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1137
971
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1138
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" =
|
1139
|
-
[1m[35mSQL (0.
|
972
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
973
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.417751"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858804], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.417751"]]
|
1140
974
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
975
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
976
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1141
977
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1142
978
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1143
|
-
[1m[35mSQL (0.
|
979
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.424927"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423686004"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.424927"]]
|
1144
980
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1145
|
-
[1m[
|
1146
|
-
[1m[
|
1147
|
-
[1m[
|
1148
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-21 18:56:04.716448"]]
|
1149
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1150
|
-
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1151
|
-
[1m[35m (0.9ms)[0m rollback transaction
|
1152
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1153
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1154
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1155
|
-
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
|
1156
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1157
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-21 18:56:04.727373"], ["uid", 0], ["updated_at", "2014-11-21 18:56:04.727373"]]
|
981
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
982
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
983
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423945204"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:20:04.426163"]]
|
1158
984
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1159
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
|
1160
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
|
1161
985
|
[1m[35m (0.5ms)[0m rollback transaction
|
1162
986
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1163
987
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1164
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid"
|
1165
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "
|
988
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
989
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.428553"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423686004"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.428553"]]
|
1166
990
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1167
991
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1168
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid"
|
1169
|
-
[1m[35mSQL (0.
|
1170
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1171
|
-
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1172
|
-
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
1173
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1174
|
-
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1175
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1[0m
|
1176
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-01-14 18:40:39.960480"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-01-14 18:40:39.960480"]]
|
992
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
993
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423945204"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:20:04.429829"]]
|
1177
994
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1178
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1179
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1[0m
|
1180
|
-
[1m[35mSQL (1.0ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-01-14 18:40:39.962784"]]
|
1181
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1182
995
|
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1183
|
-
[1m[36m (0.
|
1184
|
-
[1m[35m (0.
|
1185
|
-
[1m[36m (0.1ms)[0m [
|
1186
|
-
[1m[
|
1187
|
-
[1m[
|
1188
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1189
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
1190
|
-
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1191
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1192
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1193
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-01-14 18:40:39.980606"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 18:40:39.980606"]]
|
1194
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1195
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
1196
|
-
[1m[35m (0.8ms)[0m rollback transaction
|
1197
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
996
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
997
|
+
[1m[35m (0.0ms)[0m begin transaction
|
998
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
999
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1000
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1[0m
|
1198
1001
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1199
|
-
[1m[
|
1200
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 18:40:39.984743"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 18:40:39.984743"]]
|
1201
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1202
|
-
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1203
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1204
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1205
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-01-14 18:40:39.986955"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 18:40:39.986955"]]
|
1002
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-02-12 20:20:04.438271"], ["uid", 0], ["updated_at", "2015-02-12 20:20:04.438271"]]
|
1206
1003
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1207
|
-
[1m[
|
1208
|
-
[1m[
|
1004
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
|
1005
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
|
1006
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1007
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1209
1008
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1210
1009
|
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1211
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-
|
1010
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:20:04.445127"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.445127"]]
|
1011
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1012
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1013
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1014
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:20:04.446040"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.446040"]]
|
1212
1015
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1213
1016
|
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1214
|
-
[1m[35m (0.
|
1215
|
-
[1m[36mAccount Exists (0.
|
1216
|
-
[1m[35mSQL (0.
|
1017
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1018
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
1019
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:20:04.449112"]]
|
1217
1020
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1218
|
-
[1m[35m (0.
|
1021
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1219
1022
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1220
1023
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1221
1024
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1222
|
-
[1m[35mSQL (0.
|
1025
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.451438"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.451438"]]
|
1026
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1027
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1028
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1029
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.452311"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.452311"]]
|
1223
1030
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1224
1031
|
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1225
1032
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1226
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1227
|
-
[1m[36mSQL (0.
|
1228
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1229
|
-
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1230
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1231
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1232
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1233
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-01-14 18:40:40.003521"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 18:40:40.003521"]]
|
1033
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
1034
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:20:04.453458"]]
|
1234
1035
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1235
|
-
[1m[
|
1236
|
-
[1m[
|
1237
|
-
[1m[
|
1238
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1239
|
-
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1240
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1241
|
-
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
1242
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-01-14 18:40:40.007787"]]
|
1243
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1244
|
-
[1m[35m (0.8ms)[0m rollback transaction
|
1245
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1036
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1037
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1038
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1246
1039
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1247
1040
|
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1248
|
-
[1m[35mSQL (0.
|
1041
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.455241"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.455241"]]
|
1249
1042
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1250
1043
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1251
|
-
[1m[36mAccount Exists (0.
|
1252
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-
|
1044
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1045
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.456063"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.456063"]]
|
1253
1046
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1254
|
-
[1m[35mAccount Load (0.
|
1047
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1255
1048
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1256
|
-
[1m[35mAccount Exists (0.
|
1257
|
-
[1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-
|
1049
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
1050
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:20:04.457138"]]
|
1258
1051
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1259
1052
|
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1260
|
-
[1m[35m (
|
1261
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1262
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1263
|
-
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1264
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 18:40:40.018999"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 18:40:40.018999"]]
|
1265
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1266
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1267
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1268
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 18:40:40.021478"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 18:40:40.021478"]]
|
1269
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1270
|
-
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1271
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1272
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
1273
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-01-14 18:40:40.024435"]]
|
1274
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1275
|
-
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1276
|
-
[1m[35m (1.0ms)[0m rollback transaction
|
1277
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1278
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1053
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1279
1054
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1280
|
-
[1m[
|
1055
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1056
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1057
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.459060"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.459060"]]
|
1058
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1059
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
|
1060
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1061
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1062
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1063
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.461841"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.461841"]]
|
1064
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1065
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
|
1066
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1067
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1281
1068
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1282
|
-
[1m[
|
1069
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1070
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:20:04.464529"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.464529"]]
|
1071
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1072
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1073
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1074
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1075
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.465642"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.465642"]]
|
1283
1076
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1284
|
-
[1m[
|
1285
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
|
1286
|
-
[1m[35m (0.5ms)[0m rollback transaction
|
1287
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1288
|
-
Processing by SessionsController#failure as HTML
|
1289
|
-
Rendered /Users/wijet/projects/bs/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
|
1290
|
-
Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)
|
1291
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1292
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1293
|
-
Processing by SessionsController#failure as HTML
|
1294
|
-
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
1295
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
1296
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1297
|
-
Processing by SessionsController#destroy as HTML
|
1298
|
-
Redirected to http://test.host/signed_out
|
1299
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1300
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
1301
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1302
|
-
Processing by SessionsController#destroy as HTML
|
1303
|
-
Redirected to http://test.host/
|
1304
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1305
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
1077
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1306
1078
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1307
|
-
|
1308
|
-
|
1309
|
-
[1m[
|
1079
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1080
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1081
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.467827"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.467827"]]
|
1082
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1083
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1310
1084
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1311
|
-
[1m[35mAccount Exists (0.
|
1312
|
-
[1m[36mSQL (0.
|
1085
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1086
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:20:04.469054"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.469054"]]
|
1313
1087
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1314
|
-
Redirected to http://test.host/admin
|
1315
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
1316
1088
|
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1317
1089
|
[1m[35m (0.0ms)[0m begin transaction
|
1318
|
-
Processing by SessionsController#create as HTML
|
1319
|
-
Parameters: {"provider"=>"bookingsync"}
|
1320
|
-
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1321
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1322
|
-
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1323
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-14 18:40:40.092446"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 18:40:40.092446"]]
|
1324
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1325
|
-
Redirected to http://test.host/
|
1326
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
|
1327
|
-
[1m[35m (0.7ms)[0m rollback transaction
|
1328
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1329
|
-
Processing by SessionsController#create as HTML
|
1330
|
-
Parameters: {"provider"=>"bookingsync"}
|
1331
|
-
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1332
1090
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1333
|
-
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" =
|
1334
|
-
[1m[36mSQL (0.
|
1091
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1092
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:20:04.471189"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.471189"]]
|
1335
1093
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1336
|
-
|
1337
|
-
|
1338
|
-
[1m[
|
1339
|
-
[1m[
|
1340
|
-
[1m[36m (0.
|
1341
|
-
[1m[35m (0.
|
1342
|
-
[1m[36m (0.
|
1343
|
-
[1m[35m (0.0ms)[0m
|
1344
|
-
[1m[
|
1345
|
-
[1m[
|
1346
|
-
[1m[36m (0.1ms)[0m [
|
1347
|
-
[1m[35m (0.0ms)[0m
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
[1m[
|
1352
|
-
[1m[
|
1353
|
-
Processing by AuthenticatedController#index as JS
|
1354
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
1355
|
-
Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
1356
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1357
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1358
|
-
Processing by AuthenticatedController#index as HTML
|
1359
|
-
Redirected to http://test.host/auth/bookingsync/?account_id=
|
1360
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
1361
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1362
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1363
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1364
|
-
Processing by AuthenticatedController#index as HTML
|
1365
|
-
Filter chain halted as :authenticate_account! rendered or redirected
|
1366
|
-
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
1367
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1094
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1095
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1096
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1097
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.472297"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.472297"]]
|
1098
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1099
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1100
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1101
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1102
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1[0m
|
1103
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.474344"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-12 20:20:04.474344"]]
|
1104
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1105
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1106
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1[0m
|
1107
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-12 20:20:04.475155"]]
|
1108
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1109
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1110
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|