bookingsync-engine 0.4.4 → 0.4.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f4553c2aa2d33fff7c7e4682e1b798942337185
4
- data.tar.gz: b0601325fb091cf3245eced3569f2d4d003b1605
3
+ metadata.gz: 75f31ae9cf0b2602dbbab9ea743bb5cfa537e7fb
4
+ data.tar.gz: b554f66299b9df0f0f5482d032da16c48ec0733b
5
5
  SHA512:
6
- metadata.gz: 0a7a8ba13b2292f623347ddb0a07c2a65af71fff6da88d60721f14f951c68c91cce45ae32708762fe64137d5008b36cb4e4ac9461c7fec9b3f175a1e89715067
7
- data.tar.gz: 7a63be0dcbff43a7aaf6d7cc66cbef937d2445e42e4a59af56ce6f4df667f2c14d86fedaa5452ca0eb59e6cd7341ce2e1112b1ddcb28ed7cb89a6e43a93ff76e
6
+ metadata.gz: 2ddb554ba0f1411576fd6e8019d92c5b002098542fabc2c04f93b4a4546d005189ad2510043431877c93aece5bbf001074a1136f8e259f0ea934f5f8037aedb3
7
+ data.tar.gz: 5c4e004307873196d810215b3c127405dd28238158af1acd3778f2bf940b6c27039112b818af517974814e7857030787dc1d3fb31156c565cf5af9fb60144511
@@ -21,7 +21,7 @@ module BookingSync
21
21
  end
22
22
  end
23
23
 
24
- initializer "bookingsync.controller_helper" do |app|
24
+ config.to_prepare do
25
25
  require "bookingsync/engine/helpers"
26
26
  require "bookingsync/engine/session_helpers"
27
27
  require "bookingsync/engine/auth_helpers"
@@ -1,3 +1,3 @@
1
1
  module BookingSync
2
- ENGINE_VERSION = "0.4.4"
2
+ ENGINE_VERSION = "0.4.5"
3
3
  end
Binary file
@@ -1,2002 +1,387 @@
1
-  (0.2ms) begin transaction
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)
6
-  (0.0ms) rollback transaction
7
-  (0.0ms) begin transaction
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)
11
-  (0.0ms) rollback transaction
12
-  (0.0ms) begin transaction
13
- Processing by AuthenticatedController#index as HTML
14
- Redirected to http://test.host/auth/bookingsync/?account_id=
15
- Filter chain halted as :authenticate_account! rendered or redirected
16
- Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
17
-  (0.0ms) rollback transaction
1
+  (0.3ms) begin transaction
2
+  (0.1ms) rollback transaction
18
3
   (0.1ms) begin transaction
19
- Processing by AuthenticatedController#index as HTML
20
- Filter chain halted as :authenticate_account! rendered or redirected
21
- Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
22
-  (0.0ms) rollback transaction
23
-  (0.0ms) begin transaction
24
- Processing by SessionsController#create as HTML
25
- Parameters: {"provider"=>"bookingsync"}
26
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
27
-  (0.0ms) SAVEPOINT active_record_1
28
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
29
- SQL (0.3ms) 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.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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
31
- Redirected to http://test.host/
32
- Completed 302 Found in 15ms (ActiveRecord: 1.2ms)
33
-  (0.7ms) rollback transaction
34
-  (0.0ms) begin transaction
35
- Processing by SessionsController#create as HTML
36
- Parameters: {"provider"=>"bookingsync"}
37
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
38
-  (0.0ms) SAVEPOINT active_record_1
39
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
40
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
42
- Redirected to http://test.host/
43
- Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
44
-  (0.3ms) rollback transaction
45
-  (0.0ms) begin transaction
46
- Processing by SessionsController#create as HTML
47
- Parameters: {"provider"=>"bookingsync"}
48
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
49
-  (0.0ms) SAVEPOINT active_record_1
50
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
51
- SQL (0.1ms) 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.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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
53
- Redirected to http://test.host/admin
54
- Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
55
-  (0.4ms) rollback transaction
56
-  (0.0ms) begin transaction
57
- Processing by SessionsController#destroy as HTML
58
- Redirected to http://test.host/signed_out
59
- Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
60
-  (0.0ms) rollback transaction
61
-  (0.0ms) begin transaction
62
- Processing by SessionsController#destroy as HTML
63
- Redirected to http://test.host/
64
- Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
65
-  (0.0ms) rollback transaction
66
-  (0.0ms) begin transaction
67
- Processing by SessionsController#failure as HTML
68
- Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
69
-  (0.0ms) rollback transaction
70
-  (0.0ms) begin transaction
71
- Processing by SessionsController#failure as HTML
72
- Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
73
-  (0.0ms) rollback transaction
74
-  (0.0ms) begin transaction
75
-  (0.0ms) rollback transaction
76
-  (0.0ms) begin transaction
77
-  (0.0ms) rollback transaction
78
-  (0.0ms) begin transaction
79
-  (0.0ms) rollback transaction
80
-  (0.0ms) begin transaction
81
-  (0.0ms) rollback transaction
82
-  (0.0ms) begin transaction
83
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
84
-  (0.0ms) SAVEPOINT active_record_1
85
- SQL (0.3ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-11 15:46:47.475554"], ["uid", 0], ["updated_at", "2015-02-11 15:46:47.475554"]]
86
-  (0.0ms) RELEASE SAVEPOINT active_record_1
87
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
88
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
89
-  (0.3ms) rollback transaction
90
-  (0.0ms) begin transaction
91
-  (0.0ms) SAVEPOINT active_record_1
92
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
93
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.483734"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.483734"]]
94
-  (0.0ms) RELEASE SAVEPOINT active_record_1
95
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
96
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
97
-  (0.0ms) SAVEPOINT active_record_1
98
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
99
- SQL (0.2ms) 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.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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
101
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
102
-  (0.6ms) rollback transaction
103
-  (0.0ms) begin transaction
104
-  (0.0ms) SAVEPOINT active_record_1
105
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
106
- SQL (0.2ms) 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"]]
107
-  (0.0ms) RELEASE SAVEPOINT active_record_1
108
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
109
-  (0.0ms) SAVEPOINT active_record_1
110
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
111
- SQL (0.2ms) 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.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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
113
-  (0.6ms) rollback transaction
114
-  (0.0ms) begin transaction
115
-  (0.0ms) SAVEPOINT active_record_1
116
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
117
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.492300"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.492300"]]
118
-  (0.0ms) RELEASE SAVEPOINT active_record_1
119
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
120
-  (0.0ms) SAVEPOINT active_record_1
121
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
122
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
124
-  (0.5ms) rollback transaction
125
-  (0.0ms) begin transaction
126
-  (0.0ms) SAVEPOINT active_record_1
127
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
128
- SQL (0.2ms) 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"]]
129
-  (0.0ms) RELEASE SAVEPOINT active_record_1
130
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
131
-  (0.0ms) SAVEPOINT active_record_1
132
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
133
- SQL (0.3ms) 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.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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
135
-  (0.5ms) rollback transaction
136
-  (0.0ms) begin transaction
137
-  (0.0ms) SAVEPOINT active_record_1
138
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
139
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.498489"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.498489"]]
140
-  (0.0ms) RELEASE SAVEPOINT active_record_1
141
-  (0.0ms) SAVEPOINT active_record_1
142
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
143
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.499392"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.499392"]]
144
-  (0.0ms) RELEASE SAVEPOINT active_record_1
145
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
146
-  (0.0ms) SAVEPOINT active_record_1
147
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
148
- SQL (0.1ms) 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"]]
149
-  (0.0ms) RELEASE SAVEPOINT active_record_1
150
-  (0.6ms) rollback transaction
151
-  (0.0ms) begin transaction
152
-  (0.0ms) SAVEPOINT active_record_1
153
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
154
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
156
-  (0.0ms) SAVEPOINT active_record_1
157
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
158
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
160
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
161
-  (0.0ms) SAVEPOINT active_record_1
162
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
163
- SQL (0.0ms) 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.505075"]]
164
-  (0.0ms) RELEASE SAVEPOINT active_record_1
165
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
166
-  (0.6ms) rollback transaction
167
-  (0.0ms) begin transaction
168
-  (0.0ms) SAVEPOINT active_record_1
169
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
170
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
172
-  (0.0ms) SAVEPOINT active_record_1
173
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
174
- SQL (0.2ms) 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"]]
175
-  (0.0ms) RELEASE SAVEPOINT active_record_1
176
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
177
-  (0.0ms) SAVEPOINT active_record_1
178
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
179
- SQL (0.0ms) 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.508930"]]
180
-  (0.0ms) RELEASE SAVEPOINT active_record_1
181
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
182
-  (0.6ms) rollback transaction
183
-  (0.0ms) begin transaction
184
-  (0.0ms) rollback transaction
185
-  (0.0ms) begin transaction
186
-  (0.0ms) SAVEPOINT active_record_1
187
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
188
- SQL (0.2ms) 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"]]
189
-  (0.0ms) RELEASE SAVEPOINT active_record_1
190
-  (0.0ms) SAVEPOINT active_record_1
191
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
192
- SQL (1.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
194
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
195
-  (4.8ms) rollback transaction
196
-  (0.2ms) begin transaction
197
- Processing by AuthenticatedController#index as HTML
198
- Rendered text template (0.0ms)
199
- Filter chain halted as :authenticate_account! rendered or redirected
200
- Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
201
-  (0.0ms) rollback transaction
202
-  (0.0ms) begin transaction
203
- Processing by AuthenticatedController#index as HTML
204
- Redirected to http://test.host/auth/bookingsync/?account_id=
205
- Filter chain halted as :authenticate_account! rendered or redirected
206
- Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
207
-  (0.0ms) rollback transaction
208
-  (0.0ms) begin transaction
209
- Processing by AuthenticatedController#index as JS
210
- Filter chain halted as :authenticate_account! rendered or redirected
211
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
212
-  (0.0ms) rollback transaction
213
-  (0.0ms) begin transaction
214
- Processing by AuthenticatedController#index as JS
215
- Filter chain halted as :authenticate_account! rendered or redirected
216
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
217
-  (0.0ms) rollback transaction
218
-  (0.0ms) begin transaction
219
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
220
-  (0.0ms) SAVEPOINT active_record_1
221
- SQL (0.3ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
223
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
224
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
225
-  (0.5ms) rollback transaction
226
-  (0.0ms) begin transaction
227
-  (0.0ms) SAVEPOINT active_record_1
228
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
229
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
231
-  (0.0ms) SAVEPOINT active_record_1
232
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
233
- SQL (0.3ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
235
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
236
-  (0.5ms) rollback transaction
237
-  (0.0ms) begin transaction
238
-  (0.0ms) rollback transaction
239
-  (0.0ms) begin transaction
240
-  (0.0ms) SAVEPOINT active_record_1
241
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
242
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.555312"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.555312"]]
243
-  (0.0ms) RELEASE SAVEPOINT active_record_1
244
-  (0.0ms) SAVEPOINT active_record_1
245
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
246
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.556260"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.556260"]]
247
-  (0.0ms) RELEASE SAVEPOINT active_record_1
248
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
249
-  (0.0ms) SAVEPOINT active_record_1
250
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
251
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
253
-  (0.5ms) rollback transaction
254
-  (0.0ms) begin transaction
255
-  (0.0ms) SAVEPOINT active_record_1
256
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
257
- SQL (0.1ms) 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"]]
258
-  (0.0ms) RELEASE SAVEPOINT active_record_1
259
-  (0.0ms) SAVEPOINT active_record_1
260
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
261
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
263
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
264
-  (0.0ms) SAVEPOINT active_record_1
265
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
266
- SQL (0.0ms) 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.563009"]]
267
-  (0.0ms) RELEASE SAVEPOINT active_record_1
268
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
269
-  (0.5ms) rollback transaction
270
-  (0.0ms) begin transaction
271
-  (0.0ms) SAVEPOINT active_record_1
272
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
273
- SQL (0.1ms) 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"]]
274
-  (0.0ms) RELEASE SAVEPOINT active_record_1
275
-  (0.0ms) SAVEPOINT active_record_1
276
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
277
- SQL (0.2ms) 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"]]
278
-  (0.0ms) RELEASE SAVEPOINT active_record_1
279
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
280
-  (0.0ms) SAVEPOINT active_record_1
281
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
282
- SQL (0.0ms) 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.566666"]]
283
-  (0.0ms) RELEASE SAVEPOINT active_record_1
284
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
285
-  (0.5ms) rollback transaction
286
-  (0.0ms) begin transaction
287
-  (0.0ms) SAVEPOINT active_record_1
288
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
289
- SQL (0.1ms) 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"]]
290
-  (0.0ms) RELEASE SAVEPOINT active_record_1
291
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
292
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
293
-  (0.0ms) SAVEPOINT active_record_1
294
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
295
- SQL (0.3ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
297
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
298
-  (0.5ms) rollback transaction
299
-  (0.0ms) begin transaction
300
-  (0.0ms) SAVEPOINT active_record_1
301
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
302
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.573462"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.573462"]]
303
-  (0.0ms) RELEASE SAVEPOINT active_record_1
304
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
305
-  (0.0ms) SAVEPOINT active_record_1
306
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
307
- SQL (0.2ms) 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"]]
308
-  (0.0ms) RELEASE SAVEPOINT active_record_1
309
-  (0.5ms) rollback transaction
310
-  (0.0ms) begin transaction
311
-  (0.0ms) SAVEPOINT active_record_1
312
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
313
- SQL (0.1ms) 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"]]
314
-  (0.0ms) RELEASE SAVEPOINT active_record_1
315
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
316
-  (0.0ms) SAVEPOINT active_record_1
317
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
318
- SQL (0.3ms) 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.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"]]
319
-  (0.0ms) RELEASE SAVEPOINT active_record_1
320
-  (0.4ms) rollback transaction
321
-  (0.0ms) begin transaction
322
-  (0.0ms) SAVEPOINT active_record_1
323
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
324
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.579157"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.579157"]]
325
-  (0.0ms) RELEASE SAVEPOINT active_record_1
326
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
327
-  (0.0ms) SAVEPOINT active_record_1
328
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
329
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
331
-  (0.5ms) rollback transaction
332
-  (0.0ms) begin transaction
333
-  (0.0ms) rollback transaction
334
-  (0.0ms) begin transaction
335
4
   (0.0ms) rollback transaction
336
-  (0.0ms) begin transaction
5
+  (0.1ms) begin transaction
6
+  (0.1ms) rollback transaction
7
+  (0.1ms) begin transaction
8
+  (0.1ms) rollback transaction
9
+  (0.1ms) begin transaction
337
10
   (0.0ms) rollback transaction
338
11
   (0.0ms) begin transaction
339
12
   (0.0ms) rollback transaction
340
-  (0.0ms) begin transaction
341
- Processing by SessionsController#create as HTML
342
- Parameters: {"provider"=>"bookingsync"}
343
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
344
-  (0.0ms) SAVEPOINT active_record_1
345
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
346
- SQL (0.1ms) 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.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
-  (0.4ms) RELEASE SAVEPOINT active_record_1
348
- Redirected to http://test.host/
349
- Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
350
-  (0.4ms) rollback transaction
351
-  (0.0ms) begin transaction
352
- Processing by SessionsController#create as HTML
353
- Parameters: {"provider"=>"bookingsync"}
354
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
355
-  (0.0ms) SAVEPOINT active_record_1
356
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
357
- SQL (0.1ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
359
- Redirected to http://test.host/admin
360
- Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
361
-  (0.3ms) rollback transaction
362
-  (0.0ms) begin transaction
363
- Processing by SessionsController#create as HTML
364
- Parameters: {"provider"=>"bookingsync"}
365
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
366
-  (0.0ms) SAVEPOINT active_record_1
367
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
368
- SQL (0.1ms) 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.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"]]
369
-  (0.0ms) RELEASE SAVEPOINT active_record_1
370
- Redirected to http://test.host/
371
- Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
372
-  (0.3ms) rollback transaction
373
-  (0.0ms) begin transaction
374
- Processing by SessionsController#failure as HTML
375
- Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
376
-  (0.0ms) rollback transaction
377
-  (0.0ms) begin transaction
378
- Processing by SessionsController#failure as HTML
379
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
380
-  (0.0ms) rollback transaction
381
-  (0.1ms) begin transaction
382
- Processing by SessionsController#destroy as HTML
383
- Redirected to http://test.host/
384
- Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
385
-  (0.0ms) rollback transaction
386
-  (0.0ms) begin transaction
387
- Processing by SessionsController#destroy as HTML
388
- Redirected to http://test.host/signed_out
389
- Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
390
-  (0.0ms) rollback transaction
391
-  (0.2ms) begin transaction
13
+  (0.1ms) begin transaction
392
14
   (0.0ms) rollback transaction
393
15
   (0.0ms) begin transaction
394
16
   (0.0ms) rollback transaction
395
17
   (0.0ms) begin transaction
396
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
397
-  (0.0ms) SAVEPOINT active_record_1
398
- SQL (0.3ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
400
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
401
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
402
-  (0.4ms) rollback transaction
403
-  (0.0ms) begin transaction
404
-  (0.0ms) SAVEPOINT active_record_1
405
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
406
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
408
-  (0.0ms) SAVEPOINT active_record_1
409
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
410
- SQL (0.2ms) 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"]]
411
-  (0.0ms) RELEASE SAVEPOINT active_record_1
412
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
413
-  (0.0ms) SAVEPOINT active_record_1
414
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
415
- SQL (0.1ms) 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.394590"]]
416
-  (0.0ms) RELEASE SAVEPOINT active_record_1
417
-  (0.6ms) rollback transaction
418
-  (0.0ms) begin transaction
419
-  (0.0ms) SAVEPOINT active_record_1
420
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
421
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.397910"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.397910"]]
422
-  (0.0ms) RELEASE SAVEPOINT active_record_1
423
-  (0.0ms) SAVEPOINT active_record_1
424
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
425
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.398765"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.398765"]]
426
-  (0.0ms) RELEASE SAVEPOINT active_record_1
427
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
428
-  (0.0ms) SAVEPOINT active_record_1
429
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
430
- SQL (0.0ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
432
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
433
-  (0.5ms) rollback transaction
434
-  (0.0ms) begin transaction
435
-  (0.0ms) SAVEPOINT active_record_1
436
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
437
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.401788"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.401788"]]
438
-  (0.0ms) RELEASE SAVEPOINT active_record_1
439
-  (0.0ms) SAVEPOINT active_record_1
440
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
441
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.402598"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.402598"]]
442
-  (0.0ms) RELEASE SAVEPOINT active_record_1
443
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
444
-  (0.0ms) SAVEPOINT active_record_1
445
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
446
- SQL (0.0ms) 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"]]
447
-  (0.0ms) RELEASE SAVEPOINT active_record_1
448
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
449
-  (0.6ms) rollback transaction
450
-  (0.0ms) begin transaction
451
-  (0.0ms) SAVEPOINT active_record_1
452
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
453
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.405479"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.405479"]]
454
-  (0.0ms) RELEASE SAVEPOINT active_record_1
455
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
456
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
457
-  (0.0ms) SAVEPOINT active_record_1
458
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
459
- SQL (0.3ms) 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.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"]]
460
-  (0.0ms) RELEASE SAVEPOINT active_record_1
461
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
462
-  (0.5ms) rollback transaction
463
-  (0.0ms) begin transaction
464
-  (0.0ms) SAVEPOINT active_record_1
465
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
466
- SQL (0.1ms) 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"]]
467
-  (0.0ms) RELEASE SAVEPOINT active_record_1
468
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
469
-  (0.0ms) SAVEPOINT active_record_1
470
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
471
- SQL (0.2ms) 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.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"]]
472
-  (0.0ms) RELEASE SAVEPOINT active_record_1
473
-  (0.5ms) rollback transaction
474
-  (0.0ms) begin transaction
475
-  (0.0ms) SAVEPOINT active_record_1
476
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
477
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.414042"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.414042"]]
478
-  (0.0ms) RELEASE SAVEPOINT active_record_1
479
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
480
-  (0.0ms) SAVEPOINT active_record_1
481
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
482
- SQL (0.2ms) 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"]]
483
-  (0.0ms) RELEASE SAVEPOINT active_record_1
484
-  (0.4ms) rollback transaction
485
-  (0.0ms) begin transaction
486
-  (0.0ms) SAVEPOINT active_record_1
487
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
488
- SQL (0.1ms) 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"]]
489
-  (0.0ms) RELEASE SAVEPOINT active_record_1
490
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
491
-  (0.0ms) SAVEPOINT active_record_1
492
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
493
- SQL (0.4ms) 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.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"]]
494
-  (0.0ms) RELEASE SAVEPOINT active_record_1
495
-  (0.6ms) rollback transaction
496
-  (0.0ms) begin transaction
497
-  (0.0ms) SAVEPOINT active_record_1
498
- Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
499
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
501
-  (0.0ms) SAVEPOINT active_record_1
502
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
503
- SQL (0.3ms) 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:01:06.422276"]]
504
-  (0.0ms) RELEASE SAVEPOINT active_record_1
505
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
506
-  (0.5ms) rollback transaction
507
-  (0.2ms) begin transaction
508
-  (0.0ms) SAVEPOINT active_record_1
509
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
510
- SQL (0.3ms) 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"]]
511
-  (0.0ms) RELEASE SAVEPOINT active_record_1
512
-  (0.0ms) SAVEPOINT active_record_1
513
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
514
- SQL (0.2ms) 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"]]
515
-  (0.0ms) RELEASE SAVEPOINT active_record_1
516
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
517
-  (0.0ms) SAVEPOINT active_record_1
518
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
519
- SQL (0.1ms) 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.857196"]]
520
-  (0.0ms) RELEASE SAVEPOINT active_record_1
521
-  (0.6ms) rollback transaction
522
-  (0.0ms) begin transaction
523
-  (0.0ms) SAVEPOINT active_record_1
524
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
525
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.860005"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.860005"]]
526
-  (0.0ms) RELEASE SAVEPOINT active_record_1
527
-  (0.0ms) SAVEPOINT active_record_1
528
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
529
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.860892"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.860892"]]
530
-  (0.0ms) RELEASE SAVEPOINT active_record_1
531
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
532
-  (0.0ms) SAVEPOINT active_record_1
533
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
534
- SQL (0.0ms) 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"]]
535
-  (0.0ms) RELEASE SAVEPOINT active_record_1
536
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
537
-  (0.6ms) rollback transaction
538
-  (0.0ms) begin transaction
539
-  (0.0ms) SAVEPOINT active_record_1
540
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
541
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.864769"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.864769"]]
542
-  (0.0ms) RELEASE SAVEPOINT active_record_1
543
-  (0.0ms) SAVEPOINT active_record_1
544
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
545
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.865648"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.865648"]]
546
-  (0.0ms) RELEASE SAVEPOINT active_record_1
547
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
548
-  (0.0ms) SAVEPOINT active_record_1
549
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
550
- SQL (0.1ms) 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"]]
551
-  (0.0ms) RELEASE SAVEPOINT active_record_1
552
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
553
-  (0.5ms) rollback transaction
554
-  (0.0ms) begin transaction
555
-  (0.0ms) SAVEPOINT active_record_1
556
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
557
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.869347"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.869347"]]
558
-  (0.0ms) RELEASE SAVEPOINT active_record_1
559
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
560
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
561
-  (0.0ms) SAVEPOINT active_record_1
562
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
563
- SQL (0.2ms) 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.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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
565
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
566
-  (0.6ms) rollback transaction
567
-  (0.0ms) begin transaction
568
-  (0.0ms) SAVEPOINT active_record_1
569
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
570
- SQL (0.1ms) 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"]]
571
-  (0.0ms) RELEASE SAVEPOINT active_record_1
572
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
573
-  (0.0ms) SAVEPOINT active_record_1
574
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
575
- SQL (0.2ms) 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.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"]]
576
-  (0.0ms) RELEASE SAVEPOINT active_record_1
577
-  (0.5ms) rollback transaction
578
-  (0.0ms) begin transaction
579
-  (0.0ms) SAVEPOINT active_record_1
580
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
581
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.876954"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.876954"]]
582
-  (0.0ms) RELEASE SAVEPOINT active_record_1
583
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
584
-  (0.0ms) SAVEPOINT active_record_1
585
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
586
- SQL (0.2ms) 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"]]
587
-  (0.0ms) RELEASE SAVEPOINT active_record_1
588
-  (0.5ms) rollback transaction
589
-  (0.0ms) begin transaction
590
-  (0.0ms) SAVEPOINT active_record_1
591
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
592
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
594
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
595
-  (0.0ms) SAVEPOINT active_record_1
596
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
597
- SQL (0.2ms) 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.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"]]
598
-  (0.0ms) RELEASE SAVEPOINT active_record_1
599
-  (0.5ms) rollback transaction
600
-  (0.0ms) begin transaction
601
-  (0.0ms) SAVEPOINT active_record_1
602
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
603
- SQL (0.1ms) 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: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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
605
-  (0.3ms) rollback transaction
606
-  (0.0ms) begin transaction
607
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
608
-  (0.0ms) SAVEPOINT active_record_1
609
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-12 20:01:24.887200"], ["uid", 0], ["updated_at", "2015-02-12 20:01:24.887200"]]
610
-  (0.0ms) RELEASE SAVEPOINT active_record_1
611
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
612
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
613
-  (0.3ms) rollback transaction
614
-  (0.0ms) begin transaction
615
-  (0.0ms) rollback transaction
616
-  (0.0ms) begin transaction
617
-  (0.0ms) SAVEPOINT active_record_1
618
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
619
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]]
620
-  (0.0ms) RELEASE SAVEPOINT active_record_1
621
-  (0.0ms) SAVEPOINT active_record_1
622
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
623
- SQL (0.2ms) 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:01:24.901135"]]
624
-  (0.0ms) RELEASE SAVEPOINT active_record_1
625
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
626
-  (0.5ms) rollback transaction
627
-  (0.2ms) begin transaction
628
-  (0.0ms) SAVEPOINT active_record_1
629
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
630
- SQL (0.3ms) 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"]]
631
-  (0.0ms) RELEASE SAVEPOINT active_record_1
632
-  (0.5ms) rollback transaction
633
-  (0.2ms) begin transaction
634
-  (0.0ms) SAVEPOINT active_record_1
635
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
636
- SQL (0.3ms) 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"]]
637
-  (0.0ms) RELEASE SAVEPOINT active_record_1
638
-  (0.4ms) rollback transaction
639
-  (0.2ms) begin transaction
640
-  (0.0ms) SAVEPOINT active_record_1
641
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
642
- SQL (0.3ms) 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"]]
643
-  (0.0ms) RELEASE SAVEPOINT active_record_1
644
-  (0.4ms) rollback transaction
645
-  (0.0ms) begin transaction
646
18
   (0.0ms) rollback transaction
647
19
   (0.0ms) begin transaction
648
-  (0.0ms) SAVEPOINT active_record_1
649
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
650
- SQL (0.1ms) 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"]]
651
-  (0.0ms) RELEASE SAVEPOINT active_record_1
652
-  (0.3ms) rollback transaction
653
-  (0.2ms) begin transaction
654
-  (0.0ms) SAVEPOINT active_record_1
655
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
656
- SQL (0.3ms) 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"]]
657
-  (0.0ms) RELEASE SAVEPOINT active_record_1
658
-  (0.5ms) rollback transaction
659
-  (0.0ms) begin transaction
660
20
   (0.0ms) rollback transaction
661
-  (0.0ms) begin transaction
662
-  (0.0ms) SAVEPOINT active_record_1
663
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
664
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
666
-  (0.3ms) rollback transaction
667
-  (0.2ms) begin transaction
668
-  (0.0ms) SAVEPOINT active_record_1
669
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
670
- SQL (0.2ms) 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"]]
671
-  (0.0ms) RELEASE SAVEPOINT active_record_1
672
-  (0.5ms) rollback transaction
673
-  (0.0ms) begin transaction
674
-  (0.0ms) SAVEPOINT active_record_1
675
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
676
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
678
-  (0.3ms) rollback transaction
679
-  (0.0ms) begin transaction
680
-  (0.0ms) SAVEPOINT active_record_1
681
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
682
- SQL (0.1ms) 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"]]
683
-  (0.0ms) RELEASE SAVEPOINT active_record_1
684
-  (0.3ms) rollback transaction
685
-  (0.2ms) begin transaction
686
-  (0.0ms) SAVEPOINT active_record_1
687
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
688
- SQL (0.3ms) 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"]]
689
-  (0.0ms) RELEASE SAVEPOINT active_record_1
690
-  (0.4ms) rollback transaction
691
-  (0.0ms) begin transaction
692
-  (0.0ms) SAVEPOINT active_record_1
693
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
694
- SQL (0.2ms) 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"]]
695
-  (0.0ms) RELEASE SAVEPOINT active_record_1
696
-  (0.3ms) rollback transaction
697
-  (0.0ms) begin transaction
698
-  (0.0ms) SAVEPOINT active_record_1
699
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
700
- SQL (0.1ms) 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"]]
701
-  (0.0ms) RELEASE SAVEPOINT active_record_1
702
-  (0.3ms) rollback transaction
703
-  (0.2ms) begin transaction
704
-  (0.0ms) SAVEPOINT active_record_1
705
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
706
- SQL (0.3ms) 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"]]
707
-  (0.0ms) RELEASE SAVEPOINT active_record_1
708
-  (0.5ms) rollback transaction
709
-  (0.0ms) begin transaction
710
-  (0.0ms) SAVEPOINT active_record_1
711
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
712
- SQL (0.1ms) 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"]]
713
-  (0.0ms) RELEASE SAVEPOINT active_record_1
714
-  (0.0ms) SAVEPOINT active_record_1
715
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
716
- SQL (0.2ms) 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"]]
717
-  (0.0ms) RELEASE SAVEPOINT active_record_1
718
-  (0.5ms) rollback transaction
719
-  (0.0ms) begin transaction
720
-  (0.0ms) SAVEPOINT active_record_1
721
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
722
- SQL (0.1ms) 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"]]
723
-  (0.0ms) RELEASE SAVEPOINT active_record_1
724
-  (0.0ms) SAVEPOINT active_record_1
725
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
726
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
728
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
729
-  (0.6ms) rollback transaction
730
-  (0.2ms) begin transaction
731
-  (0.0ms) SAVEPOINT active_record_1
732
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
733
- SQL (0.3ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
735
-  (0.4ms) rollback transaction
736
-  (0.0ms) begin transaction
737
-  (0.0ms) SAVEPOINT active_record_1
738
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
739
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
741
-  (0.0ms) SAVEPOINT active_record_1
742
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
743
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
745
-  (0.5ms) rollback transaction
746
-  (0.0ms) begin transaction
747
-  (0.0ms) SAVEPOINT active_record_1
748
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
749
- SQL (0.1ms) 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"]]
750
-  (0.0ms) RELEASE SAVEPOINT active_record_1
751
-  (0.0ms) SAVEPOINT active_record_1
752
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
753
- SQL (0.2ms) 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"]]
754
-  (0.0ms) RELEASE SAVEPOINT active_record_1
755
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
756
-  (0.6ms) rollback transaction
757
-  (0.2ms) begin transaction
758
-  (0.0ms) SAVEPOINT active_record_1
759
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
760
- SQL (0.3ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
762
-  (0.5ms) rollback transaction
763
-  (0.0ms) begin transaction
764
-  (0.0ms) SAVEPOINT active_record_1
765
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
766
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
768
-  (0.0ms) SAVEPOINT active_record_1
769
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
770
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
772
-  (0.6ms) rollback transaction
773
-  (0.0ms) begin transaction
774
-  (0.0ms) SAVEPOINT active_record_1
775
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
776
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
778
-  (0.0ms) SAVEPOINT active_record_1
779
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
780
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
782
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
783
-  (0.4ms) rollback transaction
784
-  (0.2ms) begin transaction
785
-  (0.0ms) SAVEPOINT active_record_1
786
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
787
- SQL (0.3ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
789
-  (0.6ms) rollback transaction
790
-  (0.0ms) begin transaction
791
-  (0.0ms) SAVEPOINT active_record_1
792
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
793
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
795
-  (0.4ms) rollback transaction
796
-  (0.0ms) begin transaction
797
-  (0.0ms) SAVEPOINT active_record_1
798
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
799
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
801
-  (0.3ms) rollback transaction
802
-  (0.2ms) begin transaction
803
-  (0.0ms) SAVEPOINT active_record_1
804
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
805
- SQL (0.3ms) 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"]]
806
-  (0.0ms) RELEASE SAVEPOINT active_record_1
807
-  (0.0ms) SAVEPOINT active_record_1
808
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
809
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
811
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
812
-  (0.7ms) rollback transaction
813
-  (0.0ms) begin transaction
814
-  (0.0ms) SAVEPOINT active_record_1
815
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
816
- SQL (0.1ms) 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.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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
818
-  (0.0ms) SAVEPOINT active_record_1
819
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
820
- SQL (0.1ms) 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.775257"]]
821
-  (0.0ms) RELEASE SAVEPOINT active_record_1
822
-  (0.5ms) rollback transaction
823
-  (0.0ms) begin transaction
824
-  (0.0ms) SAVEPOINT active_record_1
825
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
826
- SQL (0.1ms) 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.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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
828
-  (0.3ms) rollback transaction
829
-  (0.2ms) begin transaction
830
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
831
-  (0.1ms) SAVEPOINT active_record_1
832
- SQL (0.3ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
834
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
835
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
836
-  (0.5ms) rollback transaction
837
-  (0.0ms) begin transaction
838
-  (0.1ms) SAVEPOINT active_record_1
839
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
840
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
842
-  (0.0ms) SAVEPOINT active_record_1
843
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
844
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
846
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
847
-  (0.0ms) SAVEPOINT active_record_1
848
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
849
- SQL (0.1ms) 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.443218"]]
850
-  (0.0ms) RELEASE SAVEPOINT active_record_1
851
-  (0.6ms) rollback transaction
852
-  (0.0ms) begin transaction
853
-  (0.0ms) SAVEPOINT active_record_1
854
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
855
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.446023"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.446023"]]
856
-  (0.0ms) RELEASE SAVEPOINT active_record_1
857
-  (0.0ms) SAVEPOINT active_record_1
858
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
859
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.446895"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.446895"]]
860
-  (0.0ms) RELEASE SAVEPOINT active_record_1
861
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
862
-  (0.0ms) SAVEPOINT active_record_1
863
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
864
- SQL (0.0ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
866
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
867
-  (0.5ms) rollback transaction
868
-  (0.0ms) begin transaction
869
-  (0.0ms) SAVEPOINT active_record_1
870
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
871
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.451130"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.451130"]]
872
-  (0.0ms) RELEASE SAVEPOINT active_record_1
873
-  (0.0ms) SAVEPOINT active_record_1
874
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
875
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.452140"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.452140"]]
876
-  (0.0ms) RELEASE SAVEPOINT active_record_1
877
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
878
-  (0.1ms) SAVEPOINT active_record_1
879
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
880
- SQL (0.0ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
882
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
883
-  (0.5ms) rollback transaction
884
-  (0.0ms) begin transaction
885
-  (0.1ms) SAVEPOINT active_record_1
886
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
887
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.455373"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.455373"]]
888
-  (0.0ms) RELEASE SAVEPOINT active_record_1
889
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
890
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
891
-  (0.0ms) SAVEPOINT active_record_1
892
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
893
- SQL (0.2ms) 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.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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
895
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
896
-  (0.5ms) rollback transaction
897
-  (0.0ms) begin transaction
898
-  (0.0ms) SAVEPOINT active_record_1
899
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
900
- SQL (0.1ms) 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"]]
901
-  (0.0ms) RELEASE SAVEPOINT active_record_1
902
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
903
-  (0.0ms) SAVEPOINT active_record_1
904
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
905
- SQL (0.2ms) 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.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"]]
906
-  (0.0ms) RELEASE SAVEPOINT active_record_1
907
-  (0.5ms) rollback transaction
908
-  (0.0ms) begin transaction
909
-  (0.0ms) SAVEPOINT active_record_1
910
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
911
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.463834"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.463834"]]
912
-  (0.0ms) RELEASE SAVEPOINT active_record_1
913
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
914
-  (0.0ms) SAVEPOINT active_record_1
915
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
916
- SQL (0.2ms) 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"]]
917
-  (0.0ms) RELEASE SAVEPOINT active_record_1
918
-  (0.5ms) rollback transaction
919
-  (0.0ms) begin transaction
920
-  (0.0ms) SAVEPOINT active_record_1
921
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
922
- SQL (0.2ms) 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"]]
923
-  (0.0ms) RELEASE SAVEPOINT active_record_1
924
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
925
-  (0.0ms) SAVEPOINT active_record_1
926
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
927
- SQL (0.2ms) 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.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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
929
-  (0.6ms) rollback transaction
930
-  (0.0ms) begin transaction
931
-  (0.0ms) SAVEPOINT active_record_1
932
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
933
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
935
-  (0.3ms) rollback transaction
936
-  (0.0ms) begin transaction
937
-  (0.1ms) SAVEPOINT active_record_1
938
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
939
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
941
-  (0.0ms) SAVEPOINT active_record_1
942
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
943
- SQL (0.2ms) 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", "1423945186"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:19:46.483744"]]
944
-  (0.0ms) RELEASE SAVEPOINT active_record_1
945
-  (0.4ms) rollback transaction
946
-  (0.1ms) begin transaction
947
-  (0.0ms) SAVEPOINT active_record_1
948
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
949
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]
950
-  (0.0ms) RELEASE SAVEPOINT active_record_1
951
-  (0.0ms) SAVEPOINT active_record_1
952
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
953
- SQL (0.2ms) 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", "1423945186"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:19:46.486830"]]
954
-  (0.0ms) RELEASE SAVEPOINT active_record_1
955
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
956
-  (0.5ms) rollback transaction
957
-  (0.0ms) begin transaction
958
-  (0.0ms) SAVEPOINT active_record_1
959
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
960
- SQL (0.1ms) 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"]]
961
-  (0.0ms) RELEASE SAVEPOINT active_record_1
962
-  (0.0ms) SAVEPOINT active_record_1
963
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
964
- SQL (0.1ms) 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"]]
965
-  (0.0ms) RELEASE SAVEPOINT active_record_1
966
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
967
-  (0.5ms) rollback transaction
968
-  (0.1ms) begin transaction
969
-  (0.0ms) rollback transaction
970
-  (0.2ms) begin transaction
971
-  (0.0ms) SAVEPOINT active_record_1
972
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
973
- SQL (0.3ms) 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"]]
974
-  (0.0ms) RELEASE SAVEPOINT active_record_1
975
-  (0.4ms) rollback transaction
976
-  (0.0ms) begin transaction
977
-  (0.0ms) SAVEPOINT active_record_1
978
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
979
- SQL (0.1ms) 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"]]
980
-  (0.0ms) RELEASE SAVEPOINT active_record_1
981
-  (0.0ms) SAVEPOINT active_record_1
982
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
983
- SQL (0.2ms) 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"]]
984
-  (0.0ms) RELEASE SAVEPOINT active_record_1
985
-  (0.5ms) rollback transaction
986
-  (0.0ms) begin transaction
987
-  (0.0ms) SAVEPOINT active_record_1
988
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
989
- SQL (0.2ms) 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"]]
990
-  (0.0ms) RELEASE SAVEPOINT active_record_1
991
-  (0.0ms) SAVEPOINT active_record_1
992
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
993
- SQL (0.2ms) 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"]]
994
-  (0.0ms) RELEASE SAVEPOINT active_record_1
995
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
996
-  (0.6ms) rollback transaction
997
-  (0.0ms) begin transaction
998
-  (0.1ms) rollback transaction
999
-  (0.0ms) begin transaction
1000
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
1001
-  (0.0ms) SAVEPOINT active_record_1
1002
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-12 20:20:04.438271"], ["uid", 0], ["updated_at", "2015-02-12 20:20:04.438271"]]
1003
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1004
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
1005
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
1006
-  (0.4ms) rollback transaction
1007
-  (0.0ms) begin transaction
1008
-  (0.0ms) SAVEPOINT active_record_1
1009
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1010
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.445127"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.445127"]]
1011
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1012
-  (0.0ms) SAVEPOINT active_record_1
1013
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1014
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.446040"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.446040"]]
1015
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1016
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1017
-  (0.0ms) SAVEPOINT active_record_1
1018
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1019
- SQL (0.1ms) 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"]]
1020
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1021
-  (0.6ms) rollback transaction
1022
-  (0.0ms) begin transaction
1023
-  (0.0ms) SAVEPOINT active_record_1
1024
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1025
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1027
-  (0.0ms) SAVEPOINT active_record_1
1028
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1029
- SQL (0.2ms) 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"]]
1030
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1031
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1032
-  (0.0ms) SAVEPOINT active_record_1
1033
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1034
- SQL (0.0ms) 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.453458"]]
1035
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1036
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
1037
-  (0.4ms) rollback transaction
1038
-  (0.0ms) begin transaction
1039
-  (0.0ms) SAVEPOINT active_record_1
1040
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1041
- SQL (0.1ms) 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"]]
1042
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1043
-  (0.0ms) SAVEPOINT active_record_1
1044
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1045
- SQL (0.2ms) 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"]]
1046
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1047
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1048
-  (0.0ms) SAVEPOINT active_record_1
1049
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1050
- SQL (0.0ms) 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.457138"]]
1051
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1052
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
1053
-  (0.5ms) rollback transaction
1054
-  (0.0ms) begin transaction
1055
-  (0.0ms) SAVEPOINT active_record_1
1056
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1057
- SQL (0.1ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1059
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
1060
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1061
-  (0.0ms) SAVEPOINT active_record_1
1062
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1063
- SQL (0.3ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1065
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
1066
-  (0.6ms) rollback transaction
1067
-  (0.0ms) begin transaction
1068
-  (0.0ms) SAVEPOINT active_record_1
1069
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1070
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.464529"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.464529"]]
1071
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1072
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1073
-  (0.0ms) SAVEPOINT active_record_1
1074
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1075
- SQL (0.2ms) 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"]]
1076
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1077
-  (0.4ms) rollback transaction
1078
-  (0.0ms) begin transaction
1079
-  (0.0ms) SAVEPOINT active_record_1
1080
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1081
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1083
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1084
-  (0.0ms) SAVEPOINT active_record_1
1085
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1086
- SQL (0.3ms) 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.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"]]
1087
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1088
-  (0.5ms) rollback transaction
1089
-  (0.0ms) begin transaction
1090
-  (0.0ms) SAVEPOINT active_record_1
1091
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1092
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.471189"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.471189"]]
1093
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1094
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1095
-  (0.0ms) SAVEPOINT active_record_1
1096
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1097
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1099
-  (0.5ms) rollback transaction
1100
-  (0.0ms) begin transaction
1101
-  (0.0ms) SAVEPOINT active_record_1
1102
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
1103
- SQL (0.1ms) 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
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1105
-  (0.0ms) SAVEPOINT active_record_1
1106
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
1107
- SQL (0.2ms) 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
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1109
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1110
-  (0.6ms) rollback transaction
1111
-  (0.2ms) begin transaction
1112
- Processing by SessionsController#destroy as HTML
1113
- Redirected to http://test.host/
1114
- Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
21
+  (0.1ms) begin transaction
1115
22
   (0.0ms) rollback transaction
23
+  (0.1ms) begin transaction
24
+  (0.1ms) rollback transaction
1116
25
   (0.0ms) begin transaction
1117
- Processing by SessionsController#destroy as HTML
1118
- Redirected to http://test.host/signed_out
1119
- Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1120
26
   (0.0ms) rollback transaction
1121
-  (0.0ms) begin transaction
1122
- Processing by SessionsController#create as HTML
1123
- Parameters: {"provider"=>"bookingsync"}
1124
- Account Load (0.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1125
-  (0.0ms) SAVEPOINT active_record_1
1126
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1127
- SQL (0.9ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.264039"], ["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-13 11:59:22.264039"]]
1128
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1129
- Redirected to http://test.host/
1130
- Completed 302 Found in 21ms (ActiveRecord: 2.4ms)
1131
-  (0.3ms) rollback transaction
1132
-  (0.0ms) begin transaction
1133
- Processing by SessionsController#create as HTML
1134
- Parameters: {"provider"=>"bookingsync"}
1135
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1136
-  (0.0ms) SAVEPOINT active_record_1
1137
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1138
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.268374"], ["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-13 11:59:22.268374"]]
1139
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1140
- Redirected to http://test.host/
1141
- Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
1142
-  (0.3ms) rollback transaction
1143
-  (0.0ms) begin transaction
1144
- Processing by SessionsController#create as HTML
1145
- Parameters: {"provider"=>"bookingsync"}
1146
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1147
-  (0.0ms) SAVEPOINT active_record_1
1148
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1149
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.270992"], ["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-13 11:59:22.270992"]]
1150
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1151
- Redirected to http://test.host/admin
1152
- Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
1153
-  (0.3ms) rollback transaction
1154
-  (0.0ms) begin transaction
1155
- Processing by SessionsController#failure as HTML
1156
- Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
1157
-  (0.0ms) rollback transaction
1158
-  (0.0ms) begin transaction
1159
- Processing by SessionsController#failure as HTML
1160
- Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
1161
-  (0.0ms) rollback transaction
1162
-  (0.0ms) begin transaction
27
+  (0.1ms) begin transaction
1163
28
  Processing by AuthenticatedController#index as HTML
29
+ Rendered text template (0.0ms)
1164
30
  Filter chain halted as :authenticate_account! rendered or redirected
1165
- Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
1166
-  (0.0ms) rollback transaction
1167
-  (0.0ms) begin transaction
31
+ Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
32
+  (0.1ms) rollback transaction
33
+  (0.1ms) begin transaction
1168
34
  Processing by AuthenticatedController#index as HTML
1169
35
  Redirected to http://test.host/auth/bookingsync/?account_id=
1170
36
  Filter chain halted as :authenticate_account! rendered or redirected
1171
37
  Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1172
-  (0.0ms) rollback transaction
1173
-  (0.0ms) begin transaction
1174
- Processing by AuthenticatedController#index as JS
1175
- Filter chain halted as :authenticate_account! rendered or redirected
1176
- Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1177
-  (0.0ms) rollback transaction
1178
-  (0.0ms) begin transaction
38
+  (0.1ms) rollback transaction
39
+  (0.0ms) begin transaction
1179
40
  Processing by AuthenticatedController#index as JS
1180
41
  Filter chain halted as :authenticate_account! rendered or redirected
1181
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1182
-  (0.0ms) rollback transaction
1183
-  (0.0ms) begin transaction
1184
-  (0.0ms) SAVEPOINT active_record_1
1185
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1186
- SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.292671"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.292671"]]
1187
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1188
-  (0.0ms) SAVEPOINT active_record_1
1189
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1190
- SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.293954"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.293954"]]
1191
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1192
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1193
-  (0.0ms) SAVEPOINT active_record_1
1194
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1195
- SQL (0.1ms) 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-13 11:59:22.295857"]]
1196
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1197
-  (0.7ms) rollback transaction
1198
-  (0.0ms) begin transaction
1199
-  (0.0ms) SAVEPOINT active_record_1
1200
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1201
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.298619"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.298619"]]
1202
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1203
-  (0.0ms) SAVEPOINT active_record_1
1204
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1205
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.299478"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.299478"]]
1206
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1207
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1208
-  (0.0ms) SAVEPOINT active_record_1
1209
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1210
- SQL (0.0ms) 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-13 11:59:22.300610"]]
1211
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1212
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
1213
-  (0.5ms) rollback transaction
1214
-  (0.0ms) begin transaction
1215
-  (0.0ms) SAVEPOINT active_record_1
1216
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1217
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.302465"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.302465"]]
1218
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1219
-  (0.0ms) SAVEPOINT active_record_1
1220
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1221
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.303256"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.303256"]]
1222
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1223
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1224
-  (0.0ms) SAVEPOINT active_record_1
1225
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1226
- SQL (0.0ms) 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-13 11:59:22.304308"]]
1227
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1228
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
1229
-  (0.5ms) rollback transaction
1230
-  (0.0ms) begin transaction
1231
-  (0.0ms) SAVEPOINT active_record_1
1232
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1233
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.306309"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.306309"]]
1234
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1235
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
1236
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1237
-  (0.0ms) SAVEPOINT active_record_1
1238
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1239
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.309457"], ["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-13 11:59:22.309457"]]
1240
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1241
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
1242
-  (0.5ms) rollback transaction
1243
-  (0.0ms) begin transaction
1244
-  (0.0ms) SAVEPOINT active_record_1
1245
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1246
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.311448"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.311448"]]
1247
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1248
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1249
-  (0.0ms) SAVEPOINT active_record_1
1250
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1251
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.312447"], ["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-13 11:59:22.312447"]]
1252
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1253
-  (0.6ms) rollback transaction
1254
-  (0.0ms) begin transaction
1255
-  (0.0ms) SAVEPOINT active_record_1
1256
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1257
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.314257"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.314257"]]
1258
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1259
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1260
-  (0.0ms) SAVEPOINT active_record_1
1261
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1262
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.315304"], ["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-13 11:59:22.315304"]]
1263
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1264
-  (0.6ms) rollback transaction
1265
-  (0.0ms) begin transaction
1266
-  (0.0ms) SAVEPOINT active_record_1
1267
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1268
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.317159"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.317159"]]
1269
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1270
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1271
-  (0.0ms) SAVEPOINT active_record_1
1272
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1273
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.318174"], ["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-13 11:59:22.318174"]]
1274
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1275
-  (0.5ms) rollback transaction
1276
-  (0.0ms) begin transaction
1277
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
1278
-  (0.0ms) SAVEPOINT active_record_1
1279
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-13 11:59:22.322566"], ["uid", 0], ["updated_at", "2015-02-13 11:59:22.322566"]]
1280
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1281
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
1282
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
1283
-  (0.3ms) rollback transaction
1284
-  (0.0ms) begin transaction
1285
-  (0.0ms) rollback transaction
1286
-  (0.0ms) begin transaction
1287
-  (0.0ms) SAVEPOINT active_record_1
1288
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1289
- SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.335773"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423915162], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.335773"]]
1290
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1291
-  (0.3ms) rollback transaction
1292
-  (0.0ms) begin transaction
1293
-  (0.0ms) SAVEPOINT active_record_1
1294
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1295
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.338284"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742362"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.338284"]]
1296
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1297
-  (0.0ms) SAVEPOINT active_record_1
1298
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
1299
- SQL (0.2ms) 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", "1424001562"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 11:59:22.339133"]]
1300
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1301
-  (0.5ms) rollback transaction
1302
-  (0.0ms) begin transaction
1303
-  (0.0ms) SAVEPOINT active_record_1
1304
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1305
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.341119"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742362"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.341119"]]
1306
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1307
-  (0.0ms) SAVEPOINT active_record_1
1308
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
1309
- SQL (0.2ms) 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", "1424001562"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 11:59:22.342036"]]
1310
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1311
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1312
-  (0.5ms) rollback transaction
1313
-  (0.0ms) begin transaction
1314
-  (0.0ms) SAVEPOINT active_record_1
1315
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
1316
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.344110"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-13 11:59:22.344110"]]
1317
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1318
-  (0.0ms) SAVEPOINT active_record_1
1319
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
1320
- SQL (0.2ms) 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-13 11:59:22.344871"]]
1321
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1322
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1323
-  (0.5ms) rollback transaction
1324
-  (0.0ms) begin transaction
1325
-  (0.0ms) rollback transaction
1326
-  (0.0ms) begin transaction
1327
-  (0.0ms) rollback transaction
1328
-  (0.0ms) begin transaction
1329
-  (0.0ms) rollback transaction
1330
-  (0.0ms) begin transaction
1331
-  (0.0ms) rollback transaction
1332
-  (0.2ms) begin transaction
1333
-  (0.0ms) rollback transaction
1334
-  (0.0ms) begin transaction
42
+ Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1335
43
   (0.1ms) rollback transaction
1336
44
   (0.1ms) begin transaction
1337
-  (0.0ms) rollback transaction
1338
-  (0.0ms) begin transaction
1339
-  (0.0ms) rollback transaction
1340
-  (0.0ms) begin transaction
1341
-  (0.1ms) rollback transaction
1342
-  (0.0ms) begin transaction
1343
- Processing by AuthenticatedController#index as HTML
1344
- Rendered text template (0.0ms)
1345
- Filter chain halted as :authenticate_account! rendered or redirected
1346
- Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
1347
-  (0.0ms) rollback transaction
1348
-  (0.0ms) begin transaction
1349
- Processing by AuthenticatedController#index as HTML
1350
- Redirected to http://test.host/auth/bookingsync/?account_id=
1351
- Filter chain halted as :authenticate_account! rendered or redirected
1352
- Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1353
-  (0.0ms) rollback transaction
1354
-  (0.0ms) begin transaction
1355
45
  Processing by AuthenticatedController#index as JS
1356
46
  Filter chain halted as :authenticate_account! rendered or redirected
1357
47
  Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1358
-  (0.0ms) rollback transaction
48
+  (0.1ms) rollback transaction
1359
49
   (0.0ms) begin transaction
1360
- Processing by AuthenticatedController#index as JS
1361
- Filter chain halted as :authenticate_account! rendered or redirected
1362
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1363
50
   (0.1ms) rollback transaction
1364
51
   (0.0ms) begin transaction
1365
52
   (0.0ms) rollback transaction
1366
53
   (0.0ms) begin transaction
1367
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
1368
-  (0.0ms) SAVEPOINT active_record_1
1369
- SQL (0.4ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-13 12:01:28.774397"], ["uid", 0], ["updated_at", "2015-02-13 12:01:28.774397"]]
1370
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1371
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
1372
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
1373
-  (0.4ms) rollback transaction
1374
-  (0.0ms) begin transaction
1375
-  (0.0ms) SAVEPOINT active_record_1
1376
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1377
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.786845"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423915288], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.786845"]]
1378
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1379
-  (0.3ms) rollback transaction
1380
-  (0.0ms) begin transaction
1381
-  (0.0ms) SAVEPOINT active_record_1
1382
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1383
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.789217"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742488"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.789217"]]
1384
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1385
-  (0.0ms) SAVEPOINT active_record_1
1386
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
1387
- SQL (0.2ms) 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", "1424001688"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:01:28.790583"]]
1388
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1389
-  (0.5ms) rollback transaction
1390
-  (0.0ms) begin transaction
1391
-  (0.0ms) SAVEPOINT active_record_1
1392
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1393
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.793031"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742488"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.793031"]]
1394
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1395
-  (0.0ms) SAVEPOINT active_record_1
1396
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
1397
- SQL (0.2ms) 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", "1424001688"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:01:28.794056"]]
1398
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1399
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1400
-  (0.5ms) rollback transaction
1401
-  (0.0ms) begin transaction
1402
-  (0.0ms) SAVEPOINT active_record_1
1403
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
1404
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.796286"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-13 12:01:28.796286"]]
1405
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1406
-  (0.0ms) SAVEPOINT active_record_1
1407
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
1408
- SQL (0.2ms) 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-13 12:01:28.797089"]]
1409
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1410
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1411
-  (0.5ms) rollback transaction
1412
-  (0.0ms) begin transaction
1413
-  (0.0ms) SAVEPOINT active_record_1
1414
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1415
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.799331"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.799331"]]
1416
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1417
-  (0.0ms) SAVEPOINT active_record_1
1418
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1419
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.800178"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.800178"]]
1420
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1421
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1422
-  (0.0ms) SAVEPOINT active_record_1
1423
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1424
- SQL (0.0ms) 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-13 12:01:28.802970"]]
1425
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1426
-  (0.5ms) rollback transaction
1427
-  (0.0ms) begin transaction
1428
-  (0.0ms) SAVEPOINT active_record_1
1429
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1430
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.805072"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.805072"]]
1431
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1432
-  (0.0ms) SAVEPOINT active_record_1
1433
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1434
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.805863"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.805863"]]
1435
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1436
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1437
-  (0.0ms) SAVEPOINT active_record_1
1438
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1439
- SQL (0.0ms) 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-13 12:01:28.807089"]]
1440
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1441
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
1442
-  (0.5ms) rollback transaction
1443
-  (0.0ms) begin transaction
1444
-  (0.0ms) SAVEPOINT active_record_1
1445
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1446
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.808819"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.808819"]]
1447
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1448
-  (0.0ms) SAVEPOINT active_record_1
1449
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1450
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.809568"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.809568"]]
1451
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1452
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1453
-  (0.0ms) SAVEPOINT active_record_1
1454
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1455
- SQL (0.0ms) 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-13 12:01:28.810660"]]
1456
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1457
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
1458
-  (0.5ms) rollback transaction
1459
-  (0.0ms) begin transaction
1460
-  (0.0ms) SAVEPOINT active_record_1
1461
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1462
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.812450"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.812450"]]
1463
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1464
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
1465
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1466
-  (0.0ms) SAVEPOINT active_record_1
1467
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1468
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.814921"], ["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-13 12:01:28.814921"]]
1469
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1470
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
1471
-  (0.5ms) rollback transaction
54
+  (0.0ms) rollback transaction
1472
55
   (0.0ms) begin transaction
1473
-  (0.0ms) SAVEPOINT active_record_1
1474
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1475
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.816968"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.816968"]]
1476
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1477
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1478
-  (0.0ms) SAVEPOINT active_record_1
1479
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1480
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.817994"], ["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-13 12:01:28.817994"]]
1481
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1482
-  (0.5ms) rollback transaction
1483
-  (0.0ms) begin transaction
1484
-  (0.0ms) SAVEPOINT active_record_1
1485
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1486
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.819868"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.819868"]]
1487
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1488
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1489
-  (0.0ms) SAVEPOINT active_record_1
1490
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1491
- SQL (0.4ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.820945"], ["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-13 12:01:28.820945"]]
1492
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1493
-  (0.6ms) rollback transaction
56
+  (0.1ms) rollback transaction
57
+  (0.1ms) begin transaction
58
+  (0.1ms) rollback transaction
1494
59
   (0.0ms) begin transaction
1495
-  (0.0ms) SAVEPOINT active_record_1
1496
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1497
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.823262"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.823262"]]
1498
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1499
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1500
-  (0.0ms) SAVEPOINT active_record_1
1501
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1502
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.824310"], ["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-13 12:01:28.824310"]]
1503
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1504
-  (0.4ms) rollback transaction
1505
-  (0.0ms) begin transaction
1506
60
  Processing by SessionsController#create as HTML
1507
61
  Parameters: {"provider"=>"bookingsync"}
1508
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1509
-  (0.0ms) SAVEPOINT active_record_1
1510
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1511
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.828089"], ["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-13 12:01:28.828089"]]
1512
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1513
- Redirected to http://test.host/
1514
- Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
1515
-  (0.3ms) rollback transaction
1516
-  (0.0ms) begin transaction
62
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
63
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
64
+ Completed 500 Internal Server Error in 5ms
65
+  (0.1ms) rollback transaction
66
+  (0.1ms) begin transaction
1517
67
  Processing by SessionsController#create as HTML
1518
68
  Parameters: {"provider"=>"bookingsync"}
1519
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1520
-  (0.0ms) SAVEPOINT active_record_1
1521
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1522
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.831108"], ["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-13 12:01:28.831108"]]
1523
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1524
- Redirected to http://test.host/admin
1525
- Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
1526
-  (0.3ms) rollback transaction
1527
-  (0.0ms) begin transaction
69
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
70
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
71
+ Completed 500 Internal Server Error in 1ms
72
+  (0.1ms) rollback transaction
73
+  (0.1ms) begin transaction
1528
74
  Processing by SessionsController#create as HTML
1529
75
  Parameters: {"provider"=>"bookingsync"}
1530
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1531
-  (0.0ms) SAVEPOINT active_record_1
1532
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1533
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.833999"], ["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-13 12:01:28.833999"]]
1534
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1535
- Redirected to http://test.host/
1536
- Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
1537
-  (0.3ms) rollback transaction
1538
-  (0.0ms) begin transaction
76
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
77
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
78
+ Completed 500 Internal Server Error in 1ms
79
+  (0.1ms) rollback transaction
80
+  (0.1ms) begin transaction
1539
81
  Processing by SessionsController#failure as HTML
1540
82
  Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
1541
-  (0.0ms) rollback transaction
1542
-  (0.0ms) begin transaction
83
+  (0.1ms) rollback transaction
84
+  (0.1ms) begin transaction
1543
85
  Processing by SessionsController#failure as HTML
1544
- Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)
1545
-  (0.0ms) rollback transaction
1546
-  (0.0ms) begin transaction
86
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
87
+  (0.1ms) rollback transaction
88
+  (0.0ms) begin transaction
1547
89
  Processing by SessionsController#destroy as HTML
1548
90
  Redirected to http://test.host/
1549
91
  Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1550
-  (0.0ms) rollback transaction
1551
-  (0.0ms) begin transaction
92
+  (0.1ms) rollback transaction
93
+  (0.1ms) begin transaction
1552
94
  Processing by SessionsController#destroy as HTML
1553
95
  Redirected to http://test.host/signed_out
1554
96
  Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
97
+  (0.1ms) rollback transaction
98
+  (0.3ms) begin transaction
99
+  (0.1ms) rollback transaction
100
+  (0.1ms) begin transaction
1555
101
   (0.0ms) rollback transaction
102
+  (0.1ms) begin transaction
103
+  (0.1ms) rollback transaction
1556
104
   (0.2ms) begin transaction
105
+  (0.1ms) rollback transaction
106
+  (0.0ms) begin transaction
107
+  (0.1ms) rollback transaction
108
+  (0.1ms) begin transaction
109
+  (0.1ms) rollback transaction
110
+  (0.0ms) begin transaction
1557
111
   (0.0ms) rollback transaction
112
+  (0.1ms) begin transaction
113
+  (0.1ms) rollback transaction
1558
114
   (0.0ms) begin transaction
1559
115
   (0.0ms) rollback transaction
1560
116
   (0.0ms) begin transaction
1561
117
   (0.0ms) rollback transaction
118
+  (0.1ms) begin transaction
119
+  (0.0ms) rollback transaction
120
+  (0.0ms) begin transaction
121
+  (0.1ms) rollback transaction
1562
122
   (0.0ms) begin transaction
1563
123
   (0.0ms) rollback transaction
1564
124
   (0.0ms) begin transaction
125
+  (0.1ms) rollback transaction
126
+  (0.1ms) begin transaction
127
+  (0.0ms) rollback transaction
128
+  (0.1ms) begin transaction
129
+  (0.0ms) rollback transaction
130
+  (0.1ms) begin transaction
1565
131
   (0.0ms) rollback transaction
132
+  (0.1ms) begin transaction
133
+  (0.1ms) rollback transaction
134
+  (0.0ms) begin transaction
135
+ Processing by SessionsController#failure as HTML
136
+ Rendered /Users/pr0d1r2/projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.4ms)
137
+ Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
138
+  (0.1ms) rollback transaction
139
+  (0.1ms) begin transaction
140
+ Processing by SessionsController#failure as HTML
141
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
142
+  (0.1ms) rollback transaction
1566
143
   (0.0ms) begin transaction
1567
144
  Processing by SessionsController#destroy as HTML
1568
145
  Redirected to http://test.host/signed_out
1569
- Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1570
-  (0.0ms) rollback transaction
1571
-  (0.0ms) begin transaction
146
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
147
+  (0.1ms) rollback transaction
148
+  (0.1ms) begin transaction
1572
149
  Processing by SessionsController#destroy as HTML
1573
150
  Redirected to http://test.host/
1574
151
  Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1575
152
   (0.1ms) rollback transaction
1576
-  (0.0ms) begin transaction
1577
- Processing by SessionsController#failure as HTML
1578
- Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
1579
-  (0.0ms) rollback transaction
1580
-  (0.0ms) begin transaction
1581
- Processing by SessionsController#failure as HTML
1582
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1583
-  (0.0ms) rollback transaction
1584
-  (0.0ms) begin transaction
153
+  (0.1ms) begin transaction
1585
154
  Processing by SessionsController#create as HTML
1586
155
  Parameters: {"provider"=>"bookingsync"}
1587
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1588
-  (0.0ms) SAVEPOINT active_record_1
1589
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1590
- SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.045860"], ["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-13 12:02:14.045860"]]
1591
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1592
- Redirected to http://test.host/
1593
- Completed 302 Found in 14ms (ActiveRecord: 1.1ms)
1594
-  (0.5ms) rollback transaction
1595
-  (0.0ms) begin transaction
156
+ Account Load (0.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
157
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
158
+ Completed 500 Internal Server Error in 6ms
159
+  (0.1ms) rollback transaction
160
+  (0.1ms) begin transaction
1596
161
  Processing by SessionsController#create as HTML
1597
162
  Parameters: {"provider"=>"bookingsync"}
1598
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1599
-  (0.0ms) SAVEPOINT active_record_1
1600
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1601
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.049656"], ["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-13 12:02:14.049656"]]
1602
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1603
- Redirected to http://test.host/admin
1604
- Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
1605
-  (0.3ms) rollback transaction
1606
-  (0.0ms) begin transaction
163
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
164
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
165
+ Completed 500 Internal Server Error in 1ms
166
+  (0.1ms) rollback transaction
167
+  (0.1ms) begin transaction
1607
168
  Processing by SessionsController#create as HTML
1608
169
  Parameters: {"provider"=>"bookingsync"}
1609
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1610
-  (0.0ms) SAVEPOINT active_record_1
1611
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1612
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.052702"], ["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-13 12:02:14.052702"]]
1613
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1614
- Redirected to http://test.host/
1615
- Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
1616
-  (0.3ms) rollback transaction
1617
-  (0.0ms) begin transaction
170
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
171
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
172
+ Completed 500 Internal Server Error in 1ms
1618
173
   (0.1ms) rollback transaction
1619
-  (0.0ms) begin transaction
1620
-  (0.0ms) SAVEPOINT active_record_1
1621
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
1622
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.058887"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-13 12:02:14.058887"]]
1623
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1624
-  (0.0ms) SAVEPOINT active_record_1
1625
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
1626
- SQL (0.3ms) 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-13 12:02:14.060317"]]
1627
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1628
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1629
-  (0.4ms) rollback transaction
1630
-  (0.0ms) begin transaction
1631
-  (0.0ms) SAVEPOINT active_record_1
1632
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1633
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.062778"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.062778"]]
1634
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1635
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
1636
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1637
-  (0.0ms) SAVEPOINT active_record_1
1638
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1639
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.065358"], ["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-13 12:02:14.065358"]]
1640
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1641
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
1642
-  (0.5ms) rollback transaction
1643
-  (0.0ms) begin transaction
1644
-  (0.0ms) SAVEPOINT active_record_1
1645
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1646
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.067402"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.067402"]]
1647
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1648
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1649
-  (0.0ms) SAVEPOINT active_record_1
1650
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1651
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.068405"], ["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-13 12:02:14.068405"]]
1652
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1653
-  (0.5ms) rollback transaction
1654
-  (0.0ms) begin transaction
1655
-  (0.0ms) SAVEPOINT active_record_1
1656
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1657
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.070233"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.070233"]]
1658
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1659
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1660
-  (0.0ms) SAVEPOINT active_record_1
1661
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1662
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.071246"], ["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-13 12:02:14.071246"]]
1663
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1664
-  (0.6ms) rollback transaction
1665
-  (0.0ms) begin transaction
1666
-  (0.0ms) SAVEPOINT active_record_1
1667
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1668
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.073056"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.073056"]]
1669
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1670
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1671
-  (0.0ms) SAVEPOINT active_record_1
1672
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1673
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.074071"], ["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-13 12:02:14.074071"]]
1674
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1675
-  (0.5ms) rollback transaction
1676
-  (0.0ms) begin transaction
1677
-  (0.0ms) SAVEPOINT active_record_1
1678
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1679
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.075880"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.075880"]]
1680
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1681
-  (0.0ms) SAVEPOINT active_record_1
1682
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1683
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.076650"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.076650"]]
1684
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1685
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1686
-  (0.0ms) SAVEPOINT active_record_1
1687
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1688
- SQL (0.1ms) 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-13 12:02:14.077739"]]
1689
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1690
-  (0.4ms) rollback transaction
1691
-  (0.0ms) begin transaction
1692
-  (0.0ms) SAVEPOINT active_record_1
1693
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1694
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.079500"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.079500"]]
1695
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1696
-  (0.0ms) SAVEPOINT active_record_1
1697
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1698
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.080291"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.080291"]]
1699
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1700
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1701
-  (0.0ms) SAVEPOINT active_record_1
1702
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1703
- SQL (0.0ms) 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-13 12:02:14.081434"]]
1704
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1705
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
1706
-  (0.6ms) rollback transaction
1707
-  (0.0ms) begin transaction
1708
-  (0.0ms) SAVEPOINT active_record_1
1709
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1710
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.083272"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.083272"]]
1711
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1712
-  (0.0ms) SAVEPOINT active_record_1
1713
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1714
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.084049"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.084049"]]
1715
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1716
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1717
-  (0.0ms) SAVEPOINT active_record_1
1718
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1719
- SQL (0.0ms) 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-13 12:02:14.085230"]]
1720
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1721
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
1722
-  (0.5ms) rollback transaction
1723
174
   (0.1ms) begin transaction
1724
-  (0.0ms) SAVEPOINT active_record_1
1725
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1726
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.087480"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742534"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.087480"]]
1727
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1728
-  (0.0ms) SAVEPOINT active_record_1
1729
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
1730
- SQL (0.2ms) 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", "1424001734"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:14.088451"]]
1731
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1732
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1733
-  (0.6ms) rollback transaction
1734
-  (0.0ms) begin transaction
1735
-  (0.0ms) SAVEPOINT active_record_1
1736
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1737
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.090795"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742534"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.090795"]]
1738
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1739
-  (0.0ms) SAVEPOINT active_record_1
1740
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
1741
- SQL (0.2ms) 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", "1424001734"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:14.091595"]]
1742
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1743
-  (0.4ms) rollback transaction
1744
-  (0.0ms) begin transaction
1745
-  (0.0ms) SAVEPOINT active_record_1
1746
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1747
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.093361"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423915334], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.093361"]]
1748
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1749
-  (0.3ms) rollback transaction
1750
-  (0.0ms) begin transaction
1751
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
1752
-  (0.0ms) SAVEPOINT active_record_1
1753
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-13 12:02:14.096394"], ["uid", 0], ["updated_at", "2015-02-13 12:02:14.096394"]]
1754
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1755
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
1756
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
1757
-  (0.4ms) rollback transaction
1758
-  (0.0ms) begin transaction
1759
175
  Processing by AuthenticatedController#index as JS
1760
176
  Filter chain halted as :authenticate_account! rendered or redirected
1761
- Completed 401 Unauthorized in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1762
-  (0.0ms) rollback transaction
1763
-  (0.0ms) begin transaction
177
+ Completed 401 Unauthorized in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
178
+  (0.1ms) rollback transaction
179
+  (0.1ms) begin transaction
1764
180
  Processing by AuthenticatedController#index as JS
1765
181
  Filter chain halted as :authenticate_account! rendered or redirected
1766
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1767
-  (0.0ms) rollback transaction
1768
-  (0.0ms) begin transaction
182
+ Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
183
+  (0.1ms) rollback transaction
184
+  (0.1ms) begin transaction
1769
185
  Processing by AuthenticatedController#index as HTML
1770
186
  Redirected to http://test.host/auth/bookingsync/?account_id=
1771
187
  Filter chain halted as :authenticate_account! rendered or redirected
1772
188
  Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1773
-  (0.0ms) rollback transaction
1774
-  (0.0ms) begin transaction
189
+  (0.1ms) rollback transaction
190
+  (0.1ms) begin transaction
1775
191
  Processing by AuthenticatedController#index as HTML
1776
192
  Filter chain halted as :authenticate_account! rendered or redirected
1777
- Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1778
-  (0.0ms) rollback transaction
1779
-  (0.2ms) begin transaction
1780
-  (0.0ms) SAVEPOINT active_record_1
1781
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1782
- SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.232195"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423915347], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.232195"]]
1783
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1784
-  (0.5ms) rollback transaction
1785
-  (0.0ms) begin transaction
1786
-  (0.0ms) SAVEPOINT active_record_1
1787
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1788
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.239404"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742547"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.239404"]]
1789
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1790
-  (0.0ms) SAVEPOINT active_record_1
1791
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
1792
- SQL (0.2ms) 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", "1424001747"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:27.240802"]]
1793
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1794
-  (0.5ms) rollback transaction
193
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
194
+  (0.1ms) rollback transaction
195
+  (0.3ms) begin transaction
196
+ Processing by AuthenticatedController#index as JS
197
+ Rendered text template (0.0ms)
198
+ Filter chain halted as :authenticate_account! rendered or redirected
199
+ Completed 401 Unauthorized in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
200
+  (0.1ms) rollback transaction
201
+  (0.1ms) begin transaction
202
+ Processing by AuthenticatedController#index as JS
203
+ Filter chain halted as :authenticate_account! rendered or redirected
204
+ Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
205
+  (0.1ms) rollback transaction
206
+  (0.1ms) begin transaction
207
+ Processing by AuthenticatedController#index as HTML
208
+ Redirected to http://test.host/auth/bookingsync/?account_id=
209
+ Filter chain halted as :authenticate_account! rendered or redirected
210
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
211
+  (0.1ms) rollback transaction
212
+  (0.1ms) begin transaction
213
+ Processing by AuthenticatedController#index as HTML
214
+ Filter chain halted as :authenticate_account! rendered or redirected
215
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
216
+  (0.1ms) rollback transaction
1795
217
   (0.0ms) begin transaction
1796
-  (0.0ms) SAVEPOINT active_record_1
1797
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1798
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.243029"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742547"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.243029"]]
1799
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1800
-  (0.0ms) SAVEPOINT active_record_1
1801
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
1802
- SQL (0.2ms) 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", "1424001747"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:27.244054"]]
1803
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1804
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1805
-  (0.6ms) rollback transaction
218
+ Processing by SessionsController#destroy as HTML
219
+ Redirected to http://test.host/signed_out
220
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
221
+  (0.1ms) rollback transaction
222
+  (0.1ms) begin transaction
223
+ Processing by SessionsController#destroy as HTML
224
+ Redirected to http://test.host/
225
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
226
+  (0.1ms) rollback transaction
227
+  (0.1ms) begin transaction
228
+ Processing by SessionsController#create as HTML
229
+ Parameters: {"provider"=>"bookingsync"}
230
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
231
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
232
+ Completed 500 Internal Server Error in 7ms
233
+  (0.1ms) rollback transaction
234
+  (0.1ms) begin transaction
235
+ Processing by SessionsController#create as HTML
236
+ Parameters: {"provider"=>"bookingsync"}
237
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
238
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
239
+ Completed 500 Internal Server Error in 1ms
240
+  (0.1ms) rollback transaction
241
+  (0.1ms) begin transaction
242
+ Processing by SessionsController#create as HTML
243
+ Parameters: {"provider"=>"bookingsync"}
244
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
245
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
246
+ Completed 500 Internal Server Error in 1ms
247
+  (0.1ms) rollback transaction
248
+  (0.1ms) begin transaction
249
+ Processing by SessionsController#failure as HTML
250
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
251
+  (0.1ms) rollback transaction
252
+  (0.1ms) begin transaction
253
+ Processing by SessionsController#failure as HTML
254
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
255
+  (0.1ms) rollback transaction
256
+  (0.1ms) begin transaction
257
+  (0.1ms) rollback transaction
258
+  (0.1ms) begin transaction
259
+  (0.0ms) rollback transaction
260
+  (0.1ms) begin transaction
261
+  (0.1ms) rollback transaction
262
+  (0.0ms) begin transaction
263
+  (0.1ms) rollback transaction
1806
264
   (0.0ms) begin transaction
1807
265
   (0.0ms) rollback transaction
1808
266
   (0.0ms) begin transaction
1809
-  (0.0ms) SAVEPOINT active_record_1
1810
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
1811
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.249614"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-13 12:02:27.249614"]]
1812
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1813
-  (0.0ms) SAVEPOINT active_record_1
1814
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
1815
- SQL (0.2ms) 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-13 12:02:27.250423"]]
1816
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1817
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1818
-  (0.5ms) rollback transaction
1819
-  (0.0ms) begin transaction
1820
-  (0.0ms) SAVEPOINT active_record_1
1821
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1822
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.252443"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.252443"]]
1823
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1824
-  (0.0ms) SAVEPOINT active_record_1
1825
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1826
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.253255"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.253255"]]
1827
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1828
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1829
-  (0.0ms) SAVEPOINT active_record_1
1830
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1831
- SQL (0.1ms) 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-13 12:02:27.255950"]]
1832
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1833
-  (0.6ms) rollback transaction
267
+  (0.0ms) rollback transaction
1834
268
   (0.0ms) begin transaction
1835
-  (0.0ms) SAVEPOINT active_record_1
1836
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1837
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.258039"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.258039"]]
1838
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1839
-  (0.0ms) SAVEPOINT active_record_1
1840
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1841
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.258805"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.258805"]]
1842
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1843
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1844
-  (0.0ms) SAVEPOINT active_record_1
1845
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1846
- SQL (0.0ms) 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-13 12:02:27.259907"]]
1847
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1848
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
1849
-  (0.6ms) rollback transaction
269
+  (0.0ms) rollback transaction
1850
270
   (0.0ms) begin transaction
1851
-  (0.0ms) SAVEPOINT active_record_1
1852
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1853
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.261710"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.261710"]]
1854
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1855
-  (0.0ms) SAVEPOINT active_record_1
1856
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1857
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.262482"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.262482"]]
1858
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1859
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1860
-  (0.0ms) SAVEPOINT active_record_1
1861
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
1862
- SQL (0.0ms) 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-13 12:02:27.263567"]]
1863
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1864
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
1865
-  (0.5ms) rollback transaction
271
+  (0.1ms) rollback transaction
1866
272
   (0.0ms) begin transaction
1867
-  (0.0ms) SAVEPOINT active_record_1
1868
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1869
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.265373"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.265373"]]
1870
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1871
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
1872
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1873
-  (0.0ms) SAVEPOINT active_record_1
1874
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1875
- SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.267722"], ["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-13 12:02:27.267722"]]
1876
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1877
-  (0.0ms) SELECT COUNT(*) FROM "accounts"
1878
-  (0.4ms) rollback transaction
1879
-  (0.0ms) begin transaction
1880
-  (0.0ms) SAVEPOINT active_record_1
1881
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1882
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.269947"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.269947"]]
1883
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1884
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1885
-  (0.0ms) SAVEPOINT active_record_1
1886
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1887
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.270974"], ["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-13 12:02:27.270974"]]
1888
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1889
-  (0.6ms) rollback transaction
273
+  (0.0ms) rollback transaction
1890
274
   (0.0ms) begin transaction
1891
-  (0.0ms) SAVEPOINT active_record_1
1892
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1893
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.272800"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.272800"]]
1894
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1895
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1896
-  (0.0ms) SAVEPOINT active_record_1
1897
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1898
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.273814"], ["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-13 12:02:27.273814"]]
1899
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1900
-  (0.5ms) rollback transaction
1901
-  (0.0ms) begin transaction
1902
-  (0.0ms) SAVEPOINT active_record_1
1903
- Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
1904
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.275580"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.275580"]]
1905
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1906
- Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1907
-  (0.0ms) SAVEPOINT active_record_1
1908
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1909
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.276599"], ["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-13 12:02:27.276599"]]
1910
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1911
-  (0.5ms) rollback transaction
275
+  (0.0ms) rollback transaction
1912
276
   (0.0ms) begin transaction
1913
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
1914
-  (0.0ms) SAVEPOINT active_record_1
1915
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-13 12:02:27.279909"], ["uid", 0], ["updated_at", "2015-02-13 12:02:27.279909"]]
1916
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1917
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
1918
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
1919
-  (0.4ms) rollback transaction
277
+  (0.0ms) rollback transaction
1920
278
   (0.0ms) begin transaction
1921
- Processing by SessionsController#failure as HTML
1922
- Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms)
1923
- Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
1924
279
   (0.1ms) rollback transaction
1925
-  (0.0ms) begin transaction
1926
- Processing by SessionsController#failure as HTML
1927
- Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)
280
+  (0.1ms) begin transaction
1928
281
   (0.0ms) rollback transaction
1929
282
   (0.0ms) begin transaction
1930
- Processing by SessionsController#destroy as HTML
1931
- Redirected to http://test.host/
1932
- Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
283
+  (0.0ms) rollback transaction
284
+  (0.1ms) begin transaction
285
+  (0.1ms) rollback transaction
286
+  (0.1ms) begin transaction
287
+  (0.1ms) rollback transaction
288
+  (0.1ms) begin transaction
1933
289
   (0.0ms) rollback transaction
1934
290
   (0.0ms) begin transaction
291
+  (0.0ms) rollback transaction
292
+  (0.3ms) begin transaction
293
+  (0.1ms) rollback transaction
294
+  (0.1ms) begin transaction
295
+  (0.0ms) rollback transaction
296
+  (0.1ms) begin transaction
297
+  (0.1ms) rollback transaction
298
+  (0.1ms) begin transaction
299
+  (0.0ms) rollback transaction
300
+  (0.0ms) begin transaction
301
+  (0.1ms) rollback transaction
302
+  (0.0ms) begin transaction
1935
303
  Processing by SessionsController#destroy as HTML
1936
304
  Redirected to http://test.host/signed_out
1937
- Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1938
-  (0.0ms) rollback transaction
1939
-  (0.0ms) begin transaction
305
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
306
+  (0.1ms) rollback transaction
307
+  (0.1ms) begin transaction
308
+ Processing by SessionsController#destroy as HTML
309
+ Redirected to http://test.host/
310
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
311
+  (0.1ms) rollback transaction
312
+  (0.0ms) begin transaction
313
+ Processing by SessionsController#failure as HTML
314
+ Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)
315
+  (0.1ms) rollback transaction
316
+  (0.1ms) begin transaction
317
+ Processing by SessionsController#failure as HTML
318
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
319
+  (0.1ms) rollback transaction
320
+  (0.1ms) begin transaction
1940
321
  Processing by SessionsController#create as HTML
1941
322
  Parameters: {"provider"=>"bookingsync"}
1942
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1943
-  (0.0ms) SAVEPOINT active_record_1
1944
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1945
- SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.300142"], ["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-13 12:02:27.300142"]]
1946
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1947
- Redirected to http://test.host/admin
1948
- Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
1949
-  (0.3ms) rollback transaction
1950
-  (0.0ms) begin transaction
323
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
324
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
325
+ Completed 500 Internal Server Error in 8ms
326
+  (0.1ms) rollback transaction
327
+  (0.1ms) begin transaction
1951
328
  Processing by SessionsController#create as HTML
1952
329
  Parameters: {"provider"=>"bookingsync"}
1953
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1954
-  (0.0ms) SAVEPOINT active_record_1
1955
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1956
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.302981"], ["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-13 12:02:27.302981"]]
1957
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1958
- Redirected to http://test.host/
1959
- Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
1960
-  (0.3ms) rollback transaction
1961
-  (0.0ms) begin transaction
330
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
331
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
332
+ Completed 500 Internal Server Error in 1ms
333
+  (0.1ms) rollback transaction
334
+  (0.1ms) begin transaction
1962
335
  Processing by SessionsController#create as HTML
1963
336
  Parameters: {"provider"=>"bookingsync"}
1964
- Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
1965
-  (0.0ms) SAVEPOINT active_record_1
1966
- Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
1967
- SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.305763"], ["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-13 12:02:27.305763"]]
1968
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1969
- Redirected to http://test.host/
1970
- Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
1971
-  (0.3ms) rollback transaction
1972
-  (0.0ms) begin transaction
1973
- Processing by AuthenticatedController#index as HTML
337
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
338
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
339
+ Completed 500 Internal Server Error in 1ms
340
+  (0.1ms) rollback transaction
341
+  (0.1ms) begin transaction
342
+  (0.0ms) rollback transaction
343
+  (0.0ms) begin transaction
344
+  (0.0ms) rollback transaction
345
+  (0.0ms) begin transaction
346
+  (0.0ms) rollback transaction
347
+  (0.0ms) begin transaction
348
+  (0.0ms) rollback transaction
349
+  (0.0ms) begin transaction
350
+  (0.0ms) rollback transaction
351
+  (0.0ms) begin transaction
352
+  (0.0ms) rollback transaction
353
+  (0.1ms) begin transaction
354
+  (0.0ms) rollback transaction
355
+  (0.0ms) begin transaction
356
+  (0.0ms) rollback transaction
357
+  (0.1ms) begin transaction
358
+  (0.0ms) rollback transaction
359
+  (0.0ms) begin transaction
360
+  (0.0ms) rollback transaction
361
+  (0.1ms) begin transaction
362
+  (0.0ms) rollback transaction
363
+  (0.1ms) begin transaction
364
+  (0.0ms) rollback transaction
365
+  (0.0ms) begin transaction
366
+  (0.0ms) rollback transaction
367
+  (0.1ms) begin transaction
368
+ Processing by AuthenticatedController#index as JS
1974
369
  Filter chain halted as :authenticate_account! rendered or redirected
1975
- Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1976
-  (0.0ms) rollback transaction
1977
-  (0.0ms) begin transaction
370
+ Completed 401 Unauthorized in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
371
+  (0.1ms) rollback transaction
372
+  (0.1ms) begin transaction
373
+ Processing by AuthenticatedController#index as JS
374
+ Filter chain halted as :authenticate_account! rendered or redirected
375
+ Completed 401 Unauthorized in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
376
+  (0.1ms) rollback transaction
377
+  (0.1ms) begin transaction
1978
378
  Processing by AuthenticatedController#index as HTML
1979
379
  Redirected to http://test.host/auth/bookingsync/?account_id=
1980
380
  Filter chain halted as :authenticate_account! rendered or redirected
1981
381
  Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1982
-  (0.0ms) rollback transaction
1983
-  (0.0ms) begin transaction
1984
- Processing by AuthenticatedController#index as JS
1985
- Filter chain halted as :authenticate_account! rendered or redirected
1986
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1987
-  (0.0ms) rollback transaction
1988
-  (0.0ms) begin transaction
1989
- Processing by AuthenticatedController#index as JS
382
+  (0.1ms) rollback transaction
383
+  (0.1ms) begin transaction
384
+ Processing by AuthenticatedController#index as HTML
1990
385
  Filter chain halted as :authenticate_account! rendered or redirected
1991
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1992
-  (0.0ms) rollback transaction
1993
-  (0.0ms) begin transaction
1994
-  (0.0ms) rollback transaction
1995
-  (0.0ms) begin transaction
1996
-  (0.0ms) rollback transaction
1997
-  (0.0ms) begin transaction
1998
-  (0.0ms) rollback transaction
1999
-  (0.0ms) begin transaction
2000
-  (0.0ms) rollback transaction
2001
-  (0.0ms) begin transaction
2002
-  (0.0ms) rollback transaction
386
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
387
+  (0.1ms) rollback transaction