spec/dummy/log/test.log in bookingsync-engine-0.4.4 vs spec/dummy/log/test.log in bookingsync-engine-0.4.5
- old
+ new
@@ -1,2002 +1,387 @@
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as JS
- Rendered text template (0.0ms)
-Filter chain halted as :authenticate_account! rendered or redirected
-Completed 401 Unauthorized in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as JS
-Filter chain halted as :authenticate_account! rendered or redirected
-Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as HTML
-Redirected to http://test.host/auth/bookingsync/?account_id=
-Filter chain halted as :authenticate_account! rendered or redirected
-Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as HTML
-Filter chain halted as :authenticate_account! rendered or redirected
-Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by SessionsController#create as HTML
- Parameters: {"provider"=>"bookingsync"}
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.450447"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.450447"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/
-Completed 302 Found in 15ms (ActiveRecord: 1.2ms)
- [1m[36m (0.7ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#create as HTML
- Parameters: {"provider"=>"bookingsync"}
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.454804"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.454804"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/
-Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
- [1m[35m (0.3ms)[0m rollback transaction
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by SessionsController#create as HTML
- Parameters: {"provider"=>"bookingsync"}
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.457947"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.457947"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/admin
-Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
- [1m[36m (0.4ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/signed_out
-Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#failure as HTML
-Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#failure as HTML
-Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.475554"], ["uid", 0], ["updated_at", "2015-02-11 15:46:47.475554"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.483734"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.483734"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.486462"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.486462"]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
- [1m[35m (0.6ms)[0m rollback transaction
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.488922"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.488922"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.490168"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.490168"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.492300"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.492300"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.493446"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.493446"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.495332"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.495332"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.496435"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.496435"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.498489"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.498489"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:46:47.499392"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.499392"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:46:47.500921"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.6ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.503144"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.503144"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.503952"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.503952"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:46:47.505075"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
- [1m[35m (0.6ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.506981"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.506981"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.507829"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.507829"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:46:47.508930"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
- [1m[35m (0.6ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.514663"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-11 15:46:47.514663"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (1.1ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-11 15:46:47.515717"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
- [1m[36m (4.8ms)[0m [1mrollback transaction[0m
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by AuthenticatedController#index as HTML
Rendered text template (0.0ms)
Filter chain halted as :authenticate_account! rendered or redirected
-Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by AuthenticatedController#index as HTML
Redirected to http://test.host/auth/bookingsync/?account_id=
Filter chain halted as :authenticate_account! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by AuthenticatedController#index as JS
Filter chain halted as :authenticate_account! rendered or redirected
-Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by AuthenticatedController#index as JS
Filter chain halted as :authenticate_account! rendered or redirected
-Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
+Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-11 15:49:40.531833"], ["uid", 0], ["updated_at", "2015-02-11 15:49:40.531833"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
- [1m[35m (0.5ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.544303"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-11 15:49:40.544303"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-11 15:49:40.545706"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.555312"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.555312"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.556260"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.556260"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:49:40.559001"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.561107"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.561107"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.561907"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.561907"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:49:40.563009"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.564753"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.564753"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.565494"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.565494"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:49:40.566666"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.568805"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.568805"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.571337"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.571337"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.573462"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.573462"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.574490"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.574490"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.576222"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.576222"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.577248"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.577248"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.4ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.579157"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.579157"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.580226"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.580226"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by SessionsController#create as HTML
Parameters: {"provider"=>"bookingsync"}
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.588056"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.588056"]]
- [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/
-Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
- [1m[36m (0.4ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+Completed 500 Internal Server Error in 5ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
Processing by SessionsController#create as HTML
Parameters: {"provider"=>"bookingsync"}
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.591910"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.591910"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/admin
-Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
+SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+Completed 500 Internal Server Error in 1ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by SessionsController#create as HTML
Parameters: {"provider"=>"bookingsync"}
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-11 15:49:40.594608"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.594608"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/
-Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+Completed 500 Internal Server Error in 1ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
Processing by SessionsController#failure as HTML
-Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#failure as HTML
-Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
+Processing by SessionsController#failure as HTML
+Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
Processing by SessionsController#destroy as HTML
Redirected to http://test.host/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
Processing by SessionsController#destroy as HTML
Redirected to http://test.host/signed_out
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-12 20:01:06.371988"], ["uid", 0], ["updated_at", "2015-02-12 20:01:06.371988"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.389273"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.389273"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.390208"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.390208"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:06.394590"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.397910"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.397910"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.398765"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.398765"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:06.399960"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.401788"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.401788"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.402598"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.402598"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:06.403630"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.405479"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.405479"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.408899"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.408899"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.411202"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.411202"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.412254"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.412254"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.414042"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.414042"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.415033"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.415033"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.416719"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.416719"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.417803"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.417803"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:06.420932"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-12 20:01:06.420932"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-12 20:01:06.422276"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
- [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.852149"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.852149"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.853500"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.853500"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:24.857196"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.860005"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.860005"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.860892"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.860892"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:24.862066"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.864769"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.864769"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.865648"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.865648"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:24.866777"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.869347"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.869347"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.871921"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.871921"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
- [1m[35m (0.6ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.874052"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.874052"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.875093"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.875093"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.876954"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.876954"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.877964"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.877964"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.879669"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.879669"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.880708"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.880708"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.882712"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423857684], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.882712"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.887200"], ["uid", 0], ["updated_at", "2015-02-12 20:01:24.887200"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:01:24.900178"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-12 20:01:24.900178"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-12 20:01:24.901135"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:31.125780"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423857691], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:01:31.125780"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:55.797523"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423857715], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:01:55.797523"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:06:16.319287"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685176], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:06:16.319287"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m rollback transaction
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:06:16.322197"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423857976], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:06:16.322197"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:09.770187"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858029], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:09.770187"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:09.777507"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685229], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:09.777507"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:19.000194"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685238], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:19.000194"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:19.002839"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685239], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:19.002839"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m rollback transaction
+ [1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:19.004445"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858039], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:19.004445"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:45.038363"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858065], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:45.038363"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:45.045485"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685265], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:45.045485"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m rollback transaction
+Processing by SessionsController#failure as HTML
+ Rendered /Users/pr0d1r2/projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.4ms)
+Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by SessionsController#failure as HTML
+Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:45.047345"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685265], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:45.047345"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:51.526990"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858071], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:51.526990"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:51.533708"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685271], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:51.533708"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", 1423944471], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:07:51.534846"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:51.537102"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685271], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:51.537102"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", 1423944471], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:07:51.538004"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:59.469958"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858079], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:59.469958"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:59.476828"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685279], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:59.476828"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", 1423944479], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:07:59.478062"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:59.480168"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685279], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:59.480168"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", 1423944479], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:07:59.481277"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:17.361778"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858097], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:17.361778"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:17.369132"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685297"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:17.369132"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423944497"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:08:17.370555"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.6ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:17.373351"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685297"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:17.373351"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423944497"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:08:17.374422"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
- [1m[36m (0.4ms)[0m [1mrollback transaction[0m
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:27.663084"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685307"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:27.663084"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.6ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:27.765821"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685307"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:27.765821"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:27.850237"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858107], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:27.850237"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:39.768969"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685319"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:39.768969"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423944519"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:08:39.770439"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
- [1m[36m (0.7ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:08:39.774408"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685319"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:39.774408"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423944519"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:08:39.775257"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:08:39.777040"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858119], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:39.777040"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-12 20:19:46.419520"], ["uid", 0], ["updated_at", "2015-02-12 20:19:46.419520"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.437620"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.437620"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.438633"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.438633"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:19:46.443218"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.446023"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.446023"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.446895"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.446895"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:19:46.448155"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.451130"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.451130"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.452140"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.452140"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:19:46.453340"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.455373"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.455373"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.458622"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.458622"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.460682"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.460682"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.461899"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.461899"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.463834"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.463834"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.464970"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.464970"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.467109"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.467109"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.468395"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.468395"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.471060"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858786], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.471060"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.482655"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685986"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.482655"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423945186"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:19:46.483744"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.4ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:19:46.485858"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685986"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.485858"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423945186"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:19:46.486830"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.489197"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-12 20:19:46.489197"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-12 20:19:46.489992"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.417751"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858804], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.417751"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.424927"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423686004"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.424927"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423945204"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:20:04.426163"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.428553"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423686004"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.428553"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423945204"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:20:04.429829"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-02-12 20:20:04.438271"], ["uid", 0], ["updated_at", "2015-02-12 20:20:04.438271"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
- [1m[36m (0.4ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:20:04.445127"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.445127"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:20:04.446040"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.446040"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:20:04.449112"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.6ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.451438"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.451438"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.452311"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.452311"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:20:04.453458"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.455241"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.455241"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.456063"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.456063"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:20:04.457138"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.459060"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.459060"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.461841"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.461841"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:20:04.464529"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.464529"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.465642"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.465642"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.467827"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.467827"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:20:04.469054"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.469054"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-12 20:20:04.471189"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.471189"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.472297"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.472297"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.474344"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-12 20:20:04.474344"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-12 20:20:04.475155"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
Processing by SessionsController#destroy as HTML
+Redirected to http://test.host/signed_out
+Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by SessionsController#destroy as HTML
Redirected to http://test.host/
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/signed_out
-Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by SessionsController#create as HTML
Parameters: {"provider"=>"bookingsync"}
[1m[35mAccount Load (0.4ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/
-Completed 302 Found in 21ms (ActiveRecord: 2.4ms)
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+Completed 500 Internal Server Error in 6ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
Processing by SessionsController#create as HTML
Parameters: {"provider"=>"bookingsync"}
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/
-Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36mAccount Load (0.3ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
+SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+Completed 500 Internal Server Error in 1ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by SessionsController#create as HTML
Parameters: {"provider"=>"bookingsync"}
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/admin
-Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#failure as HTML
-Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#failure as HTML
-Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-Processing by AuthenticatedController#index as HTML
+ [1m[35mAccount Load (0.3ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+Completed 500 Internal Server Error in 1ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by AuthenticatedController#index as JS
Filter chain halted as :authenticate_account! rendered or redirected
-Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+Completed 401 Unauthorized in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by AuthenticatedController#index as JS
+Filter chain halted as :authenticate_account! rendered or redirected
+Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
Processing by AuthenticatedController#index as HTML
Redirected to http://test.host/auth/bookingsync/?account_id=
Filter chain halted as :authenticate_account! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-Processing by AuthenticatedController#index as JS
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by AuthenticatedController#index as HTML
Filter chain halted as :authenticate_account! rendered or redirected
-Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
Processing by AuthenticatedController#index as JS
+ Rendered text template (0.0ms)
Filter chain halted as :authenticate_account! rendered or redirected
-Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
- [1m[36m (0.0ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 11:59:22.292671"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.292671"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 11:59:22.293954"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.293954"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 11:59:22.295857"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.7ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 11:59:22.300610"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 11:59:22.304308"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 11:59:22.311448"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.311448"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.6ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 11:59:22.317159"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.317159"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001562"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 11:59:22.339133"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001562"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 11:59:22.342036"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-13 11:59:22.344871"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Completed 401 Unauthorized in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Processing by AuthenticatedController#index as JS
+Filter chain halted as :authenticate_account! rendered or redirected
+Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by AuthenticatedController#index as HTML
- Rendered text template (0.0ms)
-Filter chain halted as :authenticate_account! rendered or redirected
-Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as HTML
Redirected to http://test.host/auth/bookingsync/?account_id=
Filter chain halted as :authenticate_account! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as JS
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by AuthenticatedController#index as HTML
Filter chain halted as :authenticate_account! rendered or redirected
-Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as JS
-Filter chain halted as :authenticate_account! rendered or redirected
-Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
+Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.4ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001688"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:01:28.790583"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001688"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:01:28.794056"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-13 12:01:28.797089"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:01:28.802970"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:01:28.805072"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.805072"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:01:28.805863"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.805863"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:01:28.807089"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:01:28.808819"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.808819"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:01:28.809568"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.809568"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:01:28.810660"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:01:28.812450"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.812450"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:01:28.819868"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.819868"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.4ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.6ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.4ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+Processing by SessionsController#destroy as HTML
+Redirected to http://test.host/signed_out
+Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Processing by SessionsController#destroy as HTML
+Redirected to http://test.host/
+Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by SessionsController#create as HTML
Parameters: {"provider"=>"bookingsync"}
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/
-Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+Completed 500 Internal Server Error in 7ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
Processing by SessionsController#create as HTML
Parameters: {"provider"=>"bookingsync"}
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/admin
-Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mAccount Load (0.3ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
+SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+Completed 500 Internal Server Error in 1ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by SessionsController#create as HTML
Parameters: {"provider"=>"bookingsync"}
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/
-Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mAccount Load (0.3ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+Completed 500 Internal Server Error in 1ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
Processing by SessionsController#failure as HTML
-Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
Processing by SessionsController#failure as HTML
-Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.0ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/signed_out
-Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by SessionsController#destroy as HTML
Redirected to http://test.host/signed_out
-Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by SessionsController#destroy as HTML
Redirected to http://test.host/
-Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
+Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
Processing by SessionsController#failure as HTML
-Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by SessionsController#failure as HTML
-Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by SessionsController#create as HTML
Parameters: {"provider"=>"bookingsync"}
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/
-Completed 302 Found in 14ms (ActiveRecord: 1.1ms)
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35mAccount Load (0.3ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+Completed 500 Internal Server Error in 8ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
Processing by SessionsController#create as HTML
Parameters: {"provider"=>"bookingsync"}
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/admin
-Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
+SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+Completed 500 Internal Server Error in 1ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
Processing by SessionsController#create as HTML
Parameters: {"provider"=>"bookingsync"}
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/
-Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
+Completed 500 Internal Server Error in 1ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-13 12:02:14.060317"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.067402"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.067402"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.073056"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.073056"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:02:14.077739"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.4ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.079500"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.079500"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.080291"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.080291"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:02:14.081434"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.083272"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.083272"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.084049"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.084049"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:02:14.085230"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001734"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:14.088451"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
- [1m[35m (0.6ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001734"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:14.091595"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.2ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as JS
-Filter chain halted as :authenticate_account! rendered or redirected
-Completed 401 Unauthorized in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as JS
-Filter chain halted as :authenticate_account! rendered or redirected
-Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as HTML
-Redirected to http://test.host/auth/bookingsync/?account_id=
-Filter chain halted as :authenticate_account! rendered or redirected
-Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as HTML
-Filter chain halted as :authenticate_account! rendered or redirected
-Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001747"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:27.240802"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001747"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:27.244054"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-13 12:02:27.250423"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:02:27.255950"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.258039"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.258039"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.258805"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.258805"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:02:27.259907"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.261710"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.261710"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.262482"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.262482"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
- [1m[35mSQL (0.0ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:02:27.263567"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.265373"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.265373"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
- [1m[35m (0.4ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.272800"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.272800"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m 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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.279909"], ["uid", 0], ["updated_at", "2015-02-13 12:02:27.279909"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
- [1m[36m (0.4ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#failure as HTML
- Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms)
-Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#failure as HTML
-Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/signed_out
-Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#create as HTML
- Parameters: {"provider"=>"bookingsync"}
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/admin
-Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by SessionsController#create as HTML
- Parameters: {"provider"=>"bookingsync"}
- [1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
- [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-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"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
-Redirected to http://test.host/
-Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
- [1m[36m (0.3ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-Processing by SessionsController#create as HTML
- Parameters: {"provider"=>"bookingsync"}
- [1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
- [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
- [1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
- [1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-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"]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Redirected to http://test.host/
-Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as HTML
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by AuthenticatedController#index as JS
Filter chain halted as :authenticate_account! rendered or redirected
-Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+Completed 401 Unauthorized in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by AuthenticatedController#index as JS
+Filter chain halted as :authenticate_account! rendered or redirected
+Completed 401 Unauthorized in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
Processing by AuthenticatedController#index as HTML
Redirected to http://test.host/auth/bookingsync/?account_id=
Filter chain halted as :authenticate_account! rendered or redirected
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as JS
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+Processing by AuthenticatedController#index as HTML
Filter chain halted as :authenticate_account! rendered or redirected
-Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-Processing by AuthenticatedController#index as JS
-Filter chain halted as :authenticate_account! rendered or redirected
-Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
- [1m[35m (0.0ms)[0m rollback transaction
+Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m