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 @@ -  (0.2ms) begin transaction -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) +  (0.3ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction  (0.0ms) rollback transaction -  (0.0ms) begin transaction -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) +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) 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)  (0.0ms) rollback transaction  (0.1ms) begin transaction -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)  (0.0ms) rollback transaction  (0.0ms) begin transaction -Processing by SessionsController#create as HTML - Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.450447"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.450447"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/ -Completed 302 Found in 15ms (ActiveRecord: 1.2ms) -  (0.7ms) rollback transaction -  (0.0ms) begin transaction -Processing by SessionsController#create as HTML - Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.454804"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.454804"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/ -Completed 302 Found in 2ms (ActiveRecord: 0.3ms) -  (0.3ms) rollback transaction +  (0.0ms) rollback transaction  (0.0ms) begin transaction -Processing by SessionsController#create as HTML - Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.457947"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.457947"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/admin -Completed 302 Found in 2ms (ActiveRecord: 0.3ms) -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -Processing by SessionsController#destroy as HTML -Redirected to http://test.host/signed_out -Completed 302 Found in 0ms (ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -Processing by SessionsController#destroy as HTML -Redirected to http://test.host/ -Completed 302 Found in 0ms (ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -Processing by SessionsController#failure as HTML -Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -Processing by SessionsController#failure as HTML -Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-11 15:46:47.475554"], ["uid", 0], ["updated_at", "2015-02-11 15:46:47.475554"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 -  (0.3ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.483734"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.483734"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.486462"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.486462"]] -  (0.1ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" -  (0.6ms) rollback transaction +  (0.0ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.488922"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.488922"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.490168"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.490168"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.492300"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.492300"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.493446"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.493446"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.495332"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.495332"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.496435"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.496435"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.498489"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.498489"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.499392"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.499392"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:46:47.500921"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.503144"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.503144"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.503952"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.503952"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:46:47.505075"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.506981"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:46:47.506981"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.507829"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:46:47.507829"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:46:47.508930"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.6ms) rollback transaction -  (0.0ms) begin transaction  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:46:47.514663"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-11 15:46:47.514663"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 - SQL (1.1ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-11 15:46:47.515717"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (4.8ms) rollback transaction -  (0.2ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction 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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction +Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) 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) -  (0.0ms) rollback transaction +  (0.1ms) rollback transaction  (0.0ms) begin transaction 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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction +Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction 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) -  (0.0ms) rollback transaction +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction  (0.0ms) begin transaction - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-11 15:49:40.531833"], ["uid", 0], ["updated_at", "2015-02-11 15:49:40.531833"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 -  (0.5ms) rollback transaction +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.544303"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-11 15:49:40.544303"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 - SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-11 15:49:40.545706"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.555312"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.555312"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.556260"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.556260"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:49:40.559001"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.561107"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.561107"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.561907"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.561907"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:49:40.563009"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.564753"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.564753"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.565494"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.565494"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-11 15:49:40.566666"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.568805"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.568805"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.571337"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.571337"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.573462"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.573462"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.574490"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.574490"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.576222"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.576222"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.577248"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.577248"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.579157"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-11 15:49:40.579157"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.580226"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.580226"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.588056"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.588056"]] -  (0.4ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/ -Completed 302 Found in 2ms (ActiveRecord: 0.7ms) -  (0.4ms) rollback transaction -  (0.0ms) begin transaction + Account Load (0.2ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.591910"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.591910"]] -  (0.1ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/admin -Completed 302 Found in 2ms (ActiveRecord: 0.3ms) -  (0.3ms) rollback transaction -  (0.0ms) begin transaction + Account Load (0.2ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-11 15:49:40.594608"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-11 15:49:40.594608"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/ -Completed 302 Found in 1ms (ActiveRecord: 0.3ms) -  (0.3ms) rollback transaction -  (0.0ms) begin transaction + Account Load (0.2ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#failure as HTML -Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -Processing by SessionsController#failure as HTML -Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction +Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction Processing by SessionsController#destroy as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#destroy as HTML Redirected to http://test.host/signed_out Completed 302 Found in 0ms (ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.2ms) begin transaction +  (0.1ms) rollback transaction +  (0.3ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-12 20:01:06.371988"], ["uid", 0], ["updated_at", "2015-02-12 20:01:06.371988"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.389273"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.389273"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.390208"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.390208"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:06.394590"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.397910"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.397910"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.398765"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.398765"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:06.399960"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.401788"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.401788"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.402598"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.402598"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:06.403630"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.405479"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.405479"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.408899"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.408899"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.411202"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.411202"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.412254"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.412254"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.414042"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.414042"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.415033"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.415033"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.416719"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:06.416719"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.4ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.417803"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:06.417803"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:06.420932"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-12 20:01:06.420932"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 - SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-12 20:01:06.422276"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.852149"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.852149"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.853500"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.853500"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:24.857196"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.860005"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.860005"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.860892"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.860892"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:24.862066"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.864769"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.864769"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.865648"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.865648"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:01:24.866777"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.869347"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.869347"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.871921"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.871921"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" -  (0.6ms) rollback transaction +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.874052"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.874052"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.875093"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.875093"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.876954"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.876954"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.877964"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.877964"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.879669"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:01:24.879669"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.880708"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.880708"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.882712"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423857684], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:01:24.882712"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) rollback transaction -  (0.0ms) begin transaction - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-12 20:01:24.887200"], ["uid", 0], ["updated_at", "2015-02-12 20:01:24.887200"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 -  (0.3ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:24.900178"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-12 20:01:24.900178"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-12 20:01:24.901135"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.5ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:31.125780"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423857691], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:01:31.125780"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:01:55.797523"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423857715], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:01:55.797523"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:06:16.319287"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685176], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:06:16.319287"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) rollback transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:06:16.322197"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423857976], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:06:16.322197"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:09.770187"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858029], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:09.770187"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:09.777507"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685229], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:09.777507"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:19.000194"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685238], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:19.000194"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:19.002839"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685239], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:19.002839"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) rollback transaction +  (0.0ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:19.004445"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858039], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:19.004445"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:45.038363"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858065], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:45.038363"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) rollback transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:45.045485"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685265], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:45.045485"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:45.047345"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685265], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:45.047345"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:51.526990"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858071], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:51.526990"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:51.533708"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685271], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:51.533708"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", 1423944471], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:07:51.534846"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:51.537102"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685271], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:51.537102"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", 1423944471], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:07:51.538004"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.6ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:59.469958"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858079], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:59.469958"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:59.476828"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685279], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:59.476828"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", 1423944479], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:07:59.478062"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:07:59.480168"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423685279], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:07:59.480168"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", 1423944479], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:07:59.481277"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.6ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:17.361778"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858097], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:17.361778"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:17.369132"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685297"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:17.369132"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423944497"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:08:17.370555"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:17.373351"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685297"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:17.373351"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423944497"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:08:17.374422"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.4ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:27.663084"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685307"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:27.663084"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:27.765821"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685307"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:27.765821"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:27.850237"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858107], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:27.850237"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:39.768969"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685319"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:39.768969"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423944519"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:08:39.770439"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.7ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:39.774408"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685319"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:39.774408"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423944519"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:08:39.775257"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:08:39.777040"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858119], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:08:39.777040"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) rollback transaction -  (0.2ms) begin transaction - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 -  (0.1ms) SAVEPOINT active_record_1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-12 20:19:46.419520"], ["uid", 0], ["updated_at", "2015-02-12 20:19:46.419520"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.1ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.437620"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.437620"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.438633"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.438633"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:19:46.443218"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.446023"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.446023"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.446895"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.446895"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:19:46.448155"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.451130"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.451130"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.452140"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.452140"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.1ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:19:46.453340"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.1ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.455373"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.455373"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.458622"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.458622"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.460682"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.460682"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.461899"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.461899"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.463834"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.463834"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.464970"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.464970"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.467109"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:19:46.467109"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.468395"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.468395"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.471060"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858786], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.471060"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) rollback transaction -  (0.0ms) begin transaction -  (0.1ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.482655"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685986"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.482655"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423945186"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:19:46.483744"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) rollback transaction -  (0.1ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.485858"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423685986"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:19:46.485858"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423945186"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:19:46.486830"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:19:46.489197"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-12 20:19:46.489197"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-12 20:19:46.489992"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.5ms) rollback transaction -  (0.1ms) begin transaction -  (0.0ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.417751"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423858804], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.417751"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.424927"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423686004"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.424927"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423945204"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:20:04.426163"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.428553"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423686004"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.428553"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1423945204"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-12 20:20:04.429829"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.1ms) rollback transaction -  (0.0ms) begin transaction - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-12 20:20:04.438271"], ["uid", 0], ["updated_at", "2015-02-12 20:20:04.438271"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.445127"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.445127"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.446040"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.446040"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:20:04.449112"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.451438"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.451438"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.452311"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.452311"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:20:04.453458"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.455241"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.455241"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.456063"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.456063"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-12 20:20:04.457138"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.459060"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.459060"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.461841"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.461841"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.464529"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.464529"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.465642"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.465642"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.467827"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.467827"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.469054"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.469054"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.471189"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-12 20:20:04.471189"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.472297"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-12 20:20:04.472297"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-12 20:20:04.474344"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-12 20:20:04.474344"]] -  (0.1ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-12 20:20:04.475155"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.6ms) rollback transaction -  (0.2ms) begin transaction Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#destroy as HTML Redirected to http://test.host/ Completed 302 Found in 0ms (ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -Processing by SessionsController#destroy as HTML -Redirected to http://test.host/signed_out -Completed 302 Found in 0ms (ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} Account Load (0.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.9ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.264039"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.264039"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/ -Completed 302 Found in 21ms (ActiveRecord: 2.4ms) -  (0.3ms) rollback transaction -  (0.0ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.268374"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.268374"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/ -Completed 302 Found in 1ms (ActiveRecord: 0.3ms) -  (0.3ms) rollback transaction -  (0.0ms) begin transaction + Account Load (0.3ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.270992"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.270992"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/admin -Completed 302 Found in 1ms (ActiveRecord: 0.3ms) -  (0.3ms) rollback transaction -  (0.0ms) begin transaction -Processing by SessionsController#failure as HTML -Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -Processing by SessionsController#failure as HTML -Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -Processing by AuthenticatedController#index as HTML + Account Load (0.3ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) 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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction +Completed 401 Unauthorized in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) 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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -Processing by AuthenticatedController#index as JS +  (0.1ms) rollback transaction +  (0.1ms) 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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.3ms) begin transaction 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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.292671"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.292671"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.293954"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.293954"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 11:59:22.295857"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.7ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.298619"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.298619"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.299478"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.299478"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 11:59:22.300610"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.302465"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.302465"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.303256"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.303256"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 11:59:22.304308"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.306309"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.306309"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.309457"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.309457"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.311448"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.311448"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.312447"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.312447"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.314257"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.314257"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.315304"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.315304"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.317159"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.317159"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.318174"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.318174"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-13 11:59:22.322566"], ["uid", 0], ["updated_at", "2015-02-13 11:59:22.322566"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 -  (0.3ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.335773"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423915162], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.335773"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.338284"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742362"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.338284"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001562"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 11:59:22.339133"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.341119"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742362"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.341119"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001562"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 11:59:22.342036"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.344110"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-13 11:59:22.344110"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-13 11:59:22.344871"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction +Completed 401 Unauthorized in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction +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)  (0.1ms) rollback transaction -  (0.0ms) begin transaction +  (0.1ms) begin transaction 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) -  (0.0ms) rollback transaction -  (0.0ms) 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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -Processing by AuthenticatedController#index as JS +  (0.1ms) rollback transaction +  (0.1ms) 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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -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)  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - SQL (0.4ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-13 12:01:28.774397"], ["uid", 0], ["updated_at", "2015-02-13 12:01:28.774397"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.786845"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423915288], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.786845"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.789217"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742488"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.789217"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001688"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:01:28.790583"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.793031"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742488"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.793031"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001688"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:01:28.794056"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.796286"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-13 12:01:28.796286"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-13 12:01:28.797089"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.799331"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.799331"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.800178"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.800178"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:01:28.802970"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.805072"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.805072"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.805863"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.805863"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:01:28.807089"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.808819"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.808819"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.809568"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.809568"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:01:28.810660"]] -  (0.1ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.812450"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.812450"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.814921"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.814921"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.816968"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.816968"]] -  (0.1ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.817994"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.817994"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.819868"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.819868"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.4ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.820945"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.820945"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.823262"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.823262"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.824310"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.824310"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) rollback transaction -  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.828089"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.828089"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/ -Completed 302 Found in 1ms (ActiveRecord: 0.3ms) -  (0.3ms) rollback transaction -  (0.0ms) begin transaction + Account Load (0.2ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.831108"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.831108"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/admin -Completed 302 Found in 1ms (ActiveRecord: 0.3ms) -  (0.3ms) rollback transaction -  (0.0ms) begin transaction + Account Load (0.3ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.833999"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.833999"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/ -Completed 302 Found in 1ms (ActiveRecord: 0.3ms) -  (0.3ms) rollback transaction -  (0.0ms) begin transaction + Account Load (0.3ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#failure as HTML -Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.3ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction  (0.0ms) rollback transaction -  (0.0ms) begin transaction -Processing by SessionsController#destroy as HTML -Redirected to http://test.host/ -Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction -Processing by SessionsController#destroy as HTML -Redirected to http://test.host/signed_out -Completed 302 Found in 0ms (ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) rollback transaction +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction Processing by SessionsController#destroy as HTML Redirected to http://test.host/signed_out -Completed 302 Found in 0ms (ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by SessionsController#failure as HTML -Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction +Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#failure as HTML -Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.045860"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.045860"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/ -Completed 302 Found in 14ms (ActiveRecord: 1.1ms) -  (0.5ms) rollback transaction -  (0.0ms) begin transaction + Account Load (0.3ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.049656"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.049656"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/admin -Completed 302 Found in 1ms (ActiveRecord: 0.3ms) -  (0.3ms) rollback transaction -  (0.0ms) begin transaction + Account Load (0.2ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.052702"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.052702"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/ -Completed 302 Found in 2ms (ActiveRecord: 0.4ms) -  (0.3ms) rollback transaction -  (0.0ms) begin transaction + Account Load (0.2ms) 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  (0.1ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.058887"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-13 12:02:14.058887"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 - SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-13 12:02:14.060317"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.062778"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.062778"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.065358"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.065358"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.067402"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.067402"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.068405"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.068405"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.070233"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.070233"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.071246"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.071246"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.073056"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.073056"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.074071"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.074071"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.075880"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.075880"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.076650"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.076650"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:02:14.077739"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.079500"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.079500"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.080291"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.080291"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:02:14.081434"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.083272"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.083272"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.084049"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.084049"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:02:14.085230"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.5ms) rollback transaction  (0.1ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.087480"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742534"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.087480"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001734"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:14.088451"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.090795"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742534"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.090795"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001734"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:14.091595"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.093361"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423915334], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.093361"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) rollback transaction -  (0.0ms) begin transaction - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-13 12:02:14.096394"], ["uid", 0], ["updated_at", "2015-02-13 12:02:14.096394"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -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) -  (0.0ms) rollback transaction -  (0.0ms) 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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -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) -  (0.0ms) rollback transaction -  (0.2ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.232195"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423915347], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.232195"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.239404"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742547"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.239404"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001747"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:27.240802"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.243029"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742547"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.243029"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001747"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:27.244054"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.6ms) rollback transaction +  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.249614"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-13 12:02:27.249614"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-13 12:02:27.250423"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.252443"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.252443"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.253255"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.253255"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:02:27.255950"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction +  (0.0ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.258039"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.258039"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.258805"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.258805"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:02:27.259907"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.6ms) rollback transaction +  (0.0ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.261710"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.261710"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.262482"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.262482"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 - SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-02-13 12:02:27.263567"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] -  (0.5ms) rollback transaction +  (0.0ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.265373"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.265373"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.267722"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.267722"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SELECT COUNT(*) FROM "accounts" -  (0.4ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.269947"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.269947"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.270974"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.270974"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.272800"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.272800"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.273814"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.273814"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.275580"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.275580"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.276599"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.276599"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.5ms) rollback transaction -  (0.0ms) begin transaction - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-13 12:02:27.279909"], ["uid", 0], ["updated_at", "2015-02-13 12:02:27.279909"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 -  (0.4ms) rollback transaction -  (0.0ms) 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) -  (0.1ms) rollback transaction -  (0.0ms) begin transaction -Processing by SessionsController#failure as HTML -Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction  (0.0ms) begin transaction -Processing by SessionsController#destroy as HTML -Redirected to http://test.host/ -Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction  (0.0ms) begin transaction -Processing by SessionsController#destroy as HTML -Redirected to http://test.host/signed_out -Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction  (0.0ms) begin transaction -Processing by SessionsController#create as HTML - Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.300142"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.300142"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/admin -Completed 302 Found in 2ms (ActiveRecord: 0.3ms) -  (0.3ms) rollback transaction -  (0.0ms) begin transaction -Processing by SessionsController#create as HTML - Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.302981"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.302981"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/ -Completed 302 Found in 1ms (ActiveRecord: 0.3ms) -  (0.3ms) rollback transaction -  (0.0ms) begin transaction -Processing by SessionsController#create as HTML - Parameters: {"provider"=>"bookingsync"} - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.305763"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.305763"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/ -Completed 302 Found in 1ms (ActiveRecord: 0.3ms) -  (0.3ms) rollback transaction -  (0.0ms) begin transaction -Processing by AuthenticatedController#index as HTML +  (0.0ms) rollback transaction +  (0.1ms) 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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction +Completed 401 Unauthorized in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) 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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -Processing by AuthenticatedController#index as JS +  (0.1ms) rollback transaction +  (0.1ms) 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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -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) -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction