spec/dummy/log/test.log in bookingsync-engine-0.4.5 vs spec/dummy/log/test.log in bookingsync-engine-0.4.6

- old
+ new

@@ -1,387 +1,3252 @@ -  (0.3ms) begin transaction +  (0.4ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-01-14 14:17:11.864440"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-01-14 14:17:11.864440"]] +  (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" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (1.8ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-01-14 14:17:11.867401"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 14:17:11.880511"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:17:11.880511"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.4ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-14 14:17:11.889074"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:17:11.889074"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 14:17:11.892760"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:17:11.892760"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-14 14:17:11.894925"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:17:11.894925"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 14:17:11.900050"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:17:11.900050"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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 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-01-14 14:17:11.903947"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:17:11.903947"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-01-14 14:17:11.907705"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:17:11.907705"]] +  (0.1ms) 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 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-01-14 14:17:11.909819"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:17:11.909819"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) 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-01-14 14:17:11.913581"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:17:11.913581"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 14:17:11.915243"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:17:11.915243"]] +  (0.1ms) 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-01-14 14:17:11.917442"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) 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-01-14 14:17:11.920923"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:17:11.920923"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 14:17:11.923683"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:17:11.923683"]] +  (0.1ms) 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-01-14 14:17:11.926740"]] +  (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.1ms) 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-01-14 14:17:11.930171"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:17:11.930171"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 14:17:11.931635"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:17:11.931635"]] +  (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-01-14 14:17:11.933578"]] +  (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.1ms) rollback transaction  (0.1ms) begin transaction + Account Load (0.2ms) 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-01-14 14:17:11.956404"], ["uid", 0], ["updated_at", "2015-01-14 14:17:11.956404"]] +  (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.6ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/manda/projects/bookingsync-engine-2/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) 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/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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) 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 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-01-14 14:17:12.008309"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:17:12.008309"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) 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-01-14 14:17:12.013999"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:17:12.013999"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.5ms) rollback transaction  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) 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-01-14 14:17:12.020165"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:17:12.020165"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) 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 +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 2ms (Views: 1.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.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.1ms) 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.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.3ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-01-14 14:26:20.924011"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-01-14 14:26:20.924011"]] +  (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" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (1.4ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-01-14 14:26:20.926673"]] +  (0.1ms) 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.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 14:26:20.950900"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:26:20.950900"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.4ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-14 14:26:20.959545"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:26:20.959545"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-01-14 14:26:20.963767"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:26:20.963767"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-14 14:26:20.965789"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:26:20.965789"]] +  (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" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 14:26:20.969228"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:26:20.969228"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-14 14:26:20.971151"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:26:20.971151"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 14:26:20.974857"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:26:20.974857"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-14 14:26:20.979172"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:26:20.979172"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 14:26:20.983646"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:26:20.983646"]] +  (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-01-14 14:26:20.985242"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:26:20.985242"]] +  (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-01-14 14:26:20.987410"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (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" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 14:26:20.990554"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:26:20.990554"]] +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 14:26:20.992285"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:26:20.992285"]] +  (0.1ms) 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-01-14 14:26:20.994549"]] +  (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-01-14 14:26:20.997556"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 14:26:20.997556"]] +  (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-01-14 14:26:20.999016"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:26:20.999016"]] +  (0.1ms) 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-01-14 14:26:21.001507"]] +  (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 + 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-01-14 14:26:21.007057"], ["uid", 0], ["updated_at", "2015-01-14 14:26:21.007057"]] +  (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.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/manda/projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) 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/signed_out +Completed 302 Found in 0ms (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.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) 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-01-14 14:26:21.063111"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:26:21.063111"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.3ms) 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-01-14 14:26:21.071132"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:26:21.071132"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) +  (0.6ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) 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 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-01-14 14:26:21.079009"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 14:26:21.079009"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.5ms) 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 2ms (Views: 1.4ms | 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.2ms | ActiveRecord: 0.0ms) +  (0.1ms) 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.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.3ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction  (0.0ms) 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 +Processing by AuthenticatedController#index as JS + Rendered text template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback 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 +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.2ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-01-14 15:22:02.854779"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:02.854779"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 33ms (ActiveRecord: 2.5ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) 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-01-14 15:22:02.862200"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:02.862200"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.4ms) rollback transaction  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) 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-01-14 15:22:02.869164"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:02.869164"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.4ms) 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.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.0ms) begin transaction +Processing by SessionsController#failure as HTML +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 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Account Load (0.2ms) 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-01-14 15:22:02.914883"], ["uid", 0], ["updated_at", "2015-01-14 15:22:02.914883"]] +  (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.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" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 15:22:02.927542"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:02.927542"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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 (1.4ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-14 15:22:02.933685"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:02.933685"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.1ms) 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-01-14 15:22:02.938609"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:02.938609"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-14 15:22:02.940729"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:02.940729"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) 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-01-14 15:22:02.944169"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:02.944169"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-14 15:22:02.946255"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:02.946255"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 15:22:02.950528"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:02.950528"]] +  (0.1ms) 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 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-01-14 15:22:02.954084"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:02.954084"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 15:22:02.958375"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:02.958375"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 15:22:02.960279"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:02.960279"]] +  (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.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-01-14 15:22:02.963047"]] +  (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-01-14 15:22:02.967111"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:02.967111"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (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", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 15:22:02.968628"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:02.968628"]] +  (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-01-14 15:22:02.970495"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 15:22:02.974951"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:02.974951"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 15:22:02.977734"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:02.977734"]] +  (0.1ms) 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.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-01-14 15:22:02.980809"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (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" IS NULL LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-01-14 15:22:02.984562"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-01-14 15:22:02.984562"]] +  (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" 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-01-14 15:22:02.986248"]] +  (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.3ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin 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.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-01-14 15:22:48.187674"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-01-14 15:22:48.187674"]] +  (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" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (1.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-01-14 15:22:48.190859"]] +  (0.1ms) 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.1ms) 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-01-14 15:22:48.200613"], ["uid", 0], ["updated_at", "2015-01-14 15:22:48.200613"]] +  (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.1ms) 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-01-14 15:22:48.214799"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:48.214799"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 15:22:48.216403"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:48.216403"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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.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-01-14 15:22:48.221444"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 15:22:48.227096"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:48.227096"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 15:22:48.230025"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:48.230025"]] +  (0.1ms) 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.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-01-14 15:22:48.233145"]] +  (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.1ms) 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-01-14 15:22:48.237054"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:48.237054"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 15:22:48.238704"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:48.238704"]] +  (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-01-14 15:22:48.240588"]] +  (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.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-01-14 15:22:48.245490"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:48.245490"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-14 15:22:48.252175"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:48.252175"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-01-14 15:22:48.266139"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:48.266139"]] +  (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 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-01-14 15:22:48.268643"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:48.268643"]] +  (0.1ms) 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-01-14 15:22:48.271864"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:48.271864"]] +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-14 15:22:48.274111"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:48.274111"]] +  (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-01-14 15:22:48.277197"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-01-14 15:22:48.277197"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-14 15:22:48.279188"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:48.279188"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) 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 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) +Completed 200 OK in 5ms (Views: 5.1ms | 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) +Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -  (0.0ms) begin 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) +Completed 401 Unauthorized in 1ms (Views: 0.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 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -  (0.0ms) begin transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (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.1ms) rollback transaction  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} 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.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-01-14 15:22:48.317817"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:48.317817"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.6ms) rollback transaction  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} 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) 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-01-14 15:22:48.324046"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:48.324046"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.5ms) rollback transaction  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} 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) 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-01-14 15:22:48.329955"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-01-14 15:22:48.329955"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.4ms) 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) rollback transaction  (0.1ms) begin transaction -Processing by SessionsController#failure as HTML -Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) -  (0.1ms) rollback 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.5ms) begin transaction +Processing by AuthenticatedController#index as HTML + Rendered text template (0.1ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.0ms) +  (0.2ms) 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 1ms (ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.2ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 1ms (Views: 0.6ms | 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.5ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.652332"], ["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-17 11:52:26.652332"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 51ms (ActiveRecord: 2.9ms) +  (0.9ms) 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#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.664726"], ["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-17 11:52:26.664726"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 7ms (ActiveRecord: 1.1ms) +  (0.6ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.3ms) 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 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.676363"], ["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-17 11:52:26.676363"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) +  (0.6ms) 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#destroy as HTML Redirected to http://test.host/signed_out Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -  (0.3ms) begin transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.709846"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:52:26.709846"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (1.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.713804"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-17 11:52:26.713804"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.2ms) 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-17 11:52:26.721121"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.728406"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:52:26.728406"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.732311"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-17 11:52:26.732311"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-17 11:52:26.737292"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.743490"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:52:26.743490"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.7ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.747240"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-17 11:52:26.747240"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.2ms) 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-17 11:52:26.753392"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-17 11:52:26.759537"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:52:26.759537"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + 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.2ms) 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-17 11:52:26.769026"], ["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-17 11:52:26.769026"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.775027"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:52:26.775027"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.779616"], ["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-17 11:52:26.779616"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.785771"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:52:26.785771"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.790236"], ["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-17 11:52:26.790236"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.798754"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:52:26.798754"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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 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-17 11:52:26.802004"], ["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-17 11:52:26.802004"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction -  (0.0ms) rollback transaction + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-17 11:52:26.823940"], ["uid", 0], ["updated_at", "2015-02-17 11:52:26.823940"]] +  (0.1ms) 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.6ms) rollback transaction  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.847475"], ["oauth_access_token", "token"], ["oauth_expires_at", 1424260346], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-17 11:52:26.847475"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-17 11:52:26.855020"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424087546"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-17 11:52:26.855020"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.4ms) 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", "1424346746"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-17 11:52:26.857682"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.862942"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424087546"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-17 11:52:26.862942"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 + SQL (0.5ms) 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", "1424346746"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-17 11:52:26.868269"]] +  (0.1ms) 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.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 + SQL (0.7ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:52:26.875550"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-17 11:52:26.875550"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (0.4ms) 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-17 11:52:26.879050"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) rollback transaction +  (0.1ms) begin transaction  (0.1ms) rollback transaction -  (0.2ms) begin transaction +  (0.1ms) begin transaction  (0.1ms) rollback transaction -  (0.0ms) begin transaction +  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction +  (0.2ms) rollback transaction +  (0.1ms) begin transaction  (0.1ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction +  (4.5ms) begin transaction +  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback transaction  (0.1ms) 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.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction -  (0.0ms) rollback transaction +  (0.1ms) rollback transaction  (0.1ms) begin transaction -  (0.0ms) rollback 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 -  (0.0ms) 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.0ms) begin transaction +  (0.1ms) begin 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) +Completed 200 OK in 11ms (Views: 10.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) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -  (0.0ms) begin transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.8ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.030066"], ["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-17 11:54:10.030066"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 63ms (ActiveRecord: 4.1ms) +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.043176"], ["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-17 11:54:10.043176"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.052677"], ["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-17 11:54:10.052677"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 6ms (ActiveRecord: 1.1ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-17 11:54:10.063340"], ["uid", 0], ["updated_at", "2015-02-17 11:54:10.063340"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.2ms) 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.1ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.085653"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-17 11:54:10.085653"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (1.6ms) 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-17 11:54:10.090317"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.099813"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:54:10.099813"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.109377"], ["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-17 11:54:10.109377"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.115534"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:54:10.115534"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.119698"], ["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-17 11:54:10.119698"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.126712"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:54:10.126712"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.131176"], ["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-17 11:54:10.131176"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.136707"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:54:10.136707"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.140913"], ["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-17 11:54:10.140913"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.147170"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:54:10.147170"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.150456"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-17 11:54:10.150456"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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.2ms) 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-17 11:54:10.154811"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.160303"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:54:10.160303"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.163513"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-17 11:54:10.163513"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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.2ms) 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-17 11:54:10.167885"]] +  (0.1ms) 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.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.173237"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:54:10.173237"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.176459"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-17 11:54:10.176459"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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.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-17 11:54:10.180831"]] +  (0.1ms) 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.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.187568"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424087650"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-17 11:54:10.187568"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.4ms) 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", "1424346850"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-17 11:54:10.191641"]] +  (0.1ms) 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.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.198258"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424087650"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-17 11:54:10.198258"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.3ms) 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", "1424346850"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-17 11:54:10.201621"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:54:10.206427"], ["oauth_access_token", "token"], ["oauth_expires_at", 1424260450], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-17 11:54:10.206427"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) 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 3ms (Views: 2.4ms | 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.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 1ms (ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.2ms) begin transaction +Processing by AuthenticatedController#index as HTML +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.4ms) 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.2ms) 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.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 -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 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.7ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.019788"], ["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-17 11:55:16.019788"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 48ms (ActiveRecord: 3.9ms) +  (0.6ms) rollback transaction  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - 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 + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.030759"], ["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-17 11:55:16.030759"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 6ms (ActiveRecord: 1.1ms) +  (0.5ms) rollback transaction  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} 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) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-17 11:55:16.042689"], ["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-17 11:55:16.042689"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.0ms) +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (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 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) +Completed 401 Unauthorized in 2ms (Views: 1.4ms | 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) +Completed 401 Unauthorized in 1ms (Views: 0.3ms | 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) +Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) 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.2ms | ActiveRecord: 0.0ms) +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -  (0.3ms) begin transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.111190"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424087716"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-17 11:55:16.111190"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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 (1.3ms) 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", "1424346916"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-17 11:55:16.115297"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.124459"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424087716"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-17 11:55:16.124459"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.3ms) 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", "1424346916"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-17 11:55:16.126926"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.131704"], ["oauth_access_token", "token"], ["oauth_expires_at", 1424260516], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-17 11:55:16.131704"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.138347"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-17 11:55:16.138347"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (0.4ms) 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-17 11:55:16.141104"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.146742"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:55:16.146742"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + 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 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-17 11:55:16.154571"], ["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-17 11:55:16.154571"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-17 11:55:16.159459"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:55:16.159459"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.162675"], ["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-17 11:55:16.162675"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.168856"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:55:16.168856"]] +  (0.1ms) 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 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.173068"], ["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-17 11:55:16.173068"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.178827"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:55:16.178827"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.182793"], ["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-17 11:55:16.182793"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.187921"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:55:16.187921"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.191482"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-17 11:55:16.191482"]] +  (0.1ms) 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.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.2ms) 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-17 11:55:16.195563"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.201362"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:55:16.201362"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.204651"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-17 11:55:16.204651"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-17 11:55:16.209963"]] +  (0.1ms) 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.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.214826"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:55:16.214826"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:55:16.217196"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-17 11:55:16.217196"]] +  (0.1ms) 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-17 11:55:16.220079"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-17 11:55:16.230650"], ["uid", 0], ["updated_at", "2015-02-17 11:55:16.230650"]] +  (0.1ms) 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.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.6ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) 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 6ms (Views: 5.8ms | ActiveRecord: 0.0ms) +Completed 401 Unauthorized in 11ms (Views: 10.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.2ms | ActiveRecord: 0.0ms) +Completed 401 Unauthorized in 1ms (Views: 0.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.1ms) 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.2ms | ActiveRecord: 0.0ms) +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) 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.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) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (1.0ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.546252"], ["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-17 11:57:14.546252"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 92ms (ActiveRecord: 3.1ms) +  (0.6ms) rollback transaction  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} 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) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.558554"], ["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-17 11:57:14.558554"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 6ms (ActiveRecord: 1.1ms) +  (0.6ms) rollback transaction  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} 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) 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-17 11:57:14.568675"], ["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-17 11:57:14.568675"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.5ms) rollback transaction +  (0.1ms) 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 1ms (ActiveRecord: 0.0ms) +  (0.2ms) rollback transaction +  (0.1ms) begin transaction Processing by SessionsController#failure as HTML -Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) +Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by SessionsController#failure as HTML -Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction -  (0.0ms) rollback transaction + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-17 11:57:14.619311"], ["uid", 0], ["updated_at", "2015-02-17 11:57:14.619311"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 +  (0.7ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.648354"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-17 11:57:14.648354"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (1.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-17 11:57:14.651802"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.661323"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424087834"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-17 11:57:14.661323"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 + SQL (0.5ms) 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", "1424347034"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-17 11:57:14.665979"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.674249"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424087834"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-17 11:57:14.674249"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 + SQL (0.6ms) 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", "1424347034"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-17 11:57:14.678329"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.685213"], ["oauth_access_token", "token"], ["oauth_expires_at", 1424260634], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-17 11:57:14.685213"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.691468"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:57:14.691468"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.705528"], ["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-17 11:57:14.705528"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.711862"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:57:14.711862"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.716541"], ["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-17 11:57:14.716541"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.722977"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:57:14.722977"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.727541"], ["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-17 11:57:14.727541"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.733191"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:57:14.733191"]] +  (0.1ms) 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 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-17 11:57:14.736266"], ["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-17 11:57:14.736266"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-17 11:57:14.740948"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:57:14.740948"]] +  (0.1ms) 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.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.743298"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-17 11:57:14.743298"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.2ms) 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-17 11:57:14.747052"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.752435"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:57:14.752435"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.756092"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-17 11:57:14.756092"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.2ms) 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-17 11:57:14.760876"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-17 11:57:14.767534"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-17 11:57:14.767534"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-17 11:57:14.769682"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-17 11:57:14.769682"]] +  (0.1ms) 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-17 11:57:14.772446"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.7ms) rollback transaction +  (1.2ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar(255), "uid" integer, "name" varchar(255), "oauth_access_token" varchar(255), "oauth_refresh_token" varchar(255), "oauth_expires_at" varchar(255))  +  (0.5ms) select sqlite_version(*) +  (1.4ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid") +  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454') +  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326') +  (0.3ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:36:20.976310"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424180180"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-18 13:36:20.976310"]] +  (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 (1.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", "1424439380"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-18 13:36:20.979913"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.9ms) 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.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:36:20.990531"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424180180"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-18 13:36:20.990531"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.3ms) 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", "1424439380"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-18 13:36:20.992406"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:36:20.995552"], ["oauth_access_token", "token"], ["oauth_expires_at", 1424352980], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-18 13:36:20.995552"]] +  (0.1ms) 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" = 456 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:36:21.000344"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:36:21.000344"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + 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 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-18 13:36:21.010535"], ["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-18 13:36:21.010535"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:36:21.014299"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:36:21.014299"]] +  (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.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-18 13:36:21.016337"], ["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-18 13:36:21.016337"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (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" = 456 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:36:21.019991"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:36:21.019991"]] +  (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.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-18 13:36:21.022231"], ["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-18 13:36:21.022231"]] +  (0.1ms) 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" = 456 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:36:21.026929"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:36:21.026929"]] +  (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.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-18 13:36:21.029062"], ["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-18 13:36:21.029062"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:36:21.032208"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:36:21.032208"]] +  (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.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:36:21.033811"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-18 13:36:21.033811"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-18 13:36:21.037237"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-18 13:36:21.041054"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:36:21.041054"]] +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:36:21.043058"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-18 13:36:21.043058"]] +  (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-18 13:36:21.045131"]] +  (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.1ms) 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-18 13:36:21.048577"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:36:21.048577"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:36:21.050159"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-18 13:36:21.050159"]] +  (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-18 13:36:21.052350"]] +  (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" IS NULL LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:36:21.055815"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-18 13:36:21.055815"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (0.4ms) 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-18 13:36:21.057459"]] +  (0.1ms) 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.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-18 13:36:21.071800"], ["uid", 0], ["updated_at", "2015-02-18 13:36:21.071800"]] +  (0.1ms) 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.1ms) 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.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 10ms (Views: 9.5ms | 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.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) 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-18 13:36:21.117481"], ["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-18 13:36:21.117481"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.3ms) 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 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-18 13:36:21.125719"], ["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-18 13:36:21.125719"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) 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-18 13:36:21.133129"], ["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-18 13:36:21.133129"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) 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 +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 2ms (Views: 1.7ms | 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.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.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.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.3ms) 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.0ms) 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.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 6ms (Views: 6.3ms | 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.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.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:41:26.229152"], ["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-18 13:41:26.229152"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 34ms (ActiveRecord: 2.2ms) +  (0.5ms) rollback transaction  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) 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-18 13:41:26.236533"], ["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-18 13:41:26.236533"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.3ms) 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 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-18 13:41:26.243458"], ["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-18 13:41:26.243458"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:41:26.249285"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:41:26.249285"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.2ms) 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 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-18 13:41:26.256794"], ["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-18 13:41:26.256794"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (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" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:41:26.261515"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:41:26.261515"]] +  (0.1ms) 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.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-18 13:41:26.263814"], ["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-18 13:41:26.263814"]] +  (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" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:41:26.268049"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:41:26.268049"]] +  (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.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-18 13:41:26.270734"], ["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-18 13:41:26.270734"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:41:26.273931"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:41:26.273931"]] +  (0.1ms) 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.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-18 13:41:26.276467"], ["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-18 13:41:26.276467"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:41:26.281168"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:41:26.281168"]] +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:41:26.283864"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-18 13:41:26.283864"]] +  (0.1ms) 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.3ms) 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-18 13:41:26.287557"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) 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-18 13:41:26.292997"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:41:26.292997"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:41:26.295073"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-18 13:41:26.295073"]] +  (0.1ms) 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-18 13:41:26.297332"]] +  (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.1ms) 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-18 13:41:26.300809"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:41:26.300809"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:41:26.302500"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-18 13:41:26.302500"]] +  (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-18 13:41:26.304600"]] +  (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" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:41:26.309159"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424180486"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-18 13:41:26.309159"]] +  (0.1ms) 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.4ms) 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", "1424439686"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-18 13:41:26.311667"]] +  (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) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-18 13:41:26.316333"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424180486"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-18 13:41:26.316333"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.3ms) 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", "1424439686"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-18 13:41:26.318900"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:41:26.322310"], ["oauth_access_token", "token"], ["oauth_expires_at", 1424353286], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-18 13:41:26.322310"]] +  (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" IS NULL LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:41:26.326527"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-18 13:41:26.326527"]] +  (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" 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-18 13:41:26.328658"]] +  (0.1ms) 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.1ms) begin transaction + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-18 13:41:26.338751"], ["uid", 0], ["updated_at", "2015-02-18 13:41:26.338751"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 +  (0.5ms) rollback transaction +  (0.1ms) 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.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (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 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback 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.0ms) rollback 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.1ms) 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.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.3ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:41:32.406951"], ["updated_at", "2015-02-18 13:41:32.406951"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.2ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (1.5ms) INSERT INTO "accounts" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:41:32.418454"], ["updated_at", "2015-02-18 13:41:32.418454"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:41:32.426136"], ["updated_at", "2015-02-18 13:41:32.426136"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:41:32.429446"], ["updated_at", "2015-02-18 13:41:32.429446"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:41:32.434967"], ["updated_at", "2015-02-18 13:41:32.434967"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:41:32.438125"], ["updated_at", "2015-02-18 13:41:32.438125"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:41:32.443042"], ["updated_at", "2015-02-18 13:41:32.443042"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) 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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:41:32.448385"], ["updated_at", "2015-02-18 13:41:32.448385"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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" = 456 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:41:32.452739"], ["updated_at", "2015-02-18 13:41:32.452739"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 123], ["created_at", "2015-02-18 13:41:32.456753"], ["updated_at", "2015-02-18 13:41:32.456753"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (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.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2015-02-18 13:41:32.462404"], ["id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) 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" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:41:32.466861"], ["updated_at", "2015-02-18 13:41:32.466861"]] +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 123], ["created_at", "2015-02-18 13:41:32.469037"], ["updated_at", "2015-02-18 13:41:32.469037"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (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_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2015-02-18 13:41:32.472155"], ["id", 2]] +  (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.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:41:32.478656"], ["updated_at", "2015-02-18 13:41:32.478656"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 123], ["created_at", "2015-02-18 13:41:32.482138"], ["updated_at", "2015-02-18 13:41:32.482138"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2015-02-18 13:41:32.485974"], ["id", 2]] +  (0.1ms) 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.1ms) 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.3ms) INSERT INTO "accounts" ("oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["created_at", "2015-02-18 13:41:32.490868"], ["updated_at", "2015-02-18 13:41:32.490868"]] +  (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" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2015-02-18 13:41:32.492961"], ["id", 1]] +  (0.1ms) 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) 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" ("uid", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["uid", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1424180492"], ["created_at", "2015-02-18 13:41:32.504106"], ["updated_at", "2015-02-18 13:41:32.504106"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1424439692"], ["updated_at", "2015-02-18 13:41:32.508423"], ["id", 1]] +  (0.1ms) 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.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("uid", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["uid", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1424180492"], ["created_at", "2015-02-18 13:41:32.515077"], ["updated_at", "2015-02-18 13:41:32.515077"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1 + SQL (0.4ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1424439692"], ["updated_at", "2015-02-18 13:41:32.519307"], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) 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.3ms) INSERT INTO "accounts" ("uid", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["uid", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1424353292"], ["created_at", "2015-02-18 13:41:32.524310"], ["updated_at", "2015-02-18 13:41:32.524310"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) 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.4ms) INSERT INTO "accounts" ("uid", "created_at", "updated_at") VALUES (?, ?, ?) [["uid", 0], ["created_at", "2015-02-18 13:41:32.531854"], ["updated_at", "2015-02-18 13:41:32.531854"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 +  (0.5ms) rollback transaction +  (0.1ms) 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 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.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/manda/projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/manda/projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) 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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:41:32.595844"], ["updated_at", "2015-02-18 13:41:32.595844"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 5ms (ActiveRecord: 0.7ms) +  (0.5ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) 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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:41:32.603730"], ["updated_at", "2015-02-18 13:41:32.603730"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 4ms (ActiveRecord: 0.6ms) +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) 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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:41:32.613581"], ["updated_at", "2015-02-18 13:41:32.613581"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 5ms (ActiveRecord: 0.7ms) +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) 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 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) 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 1ms (Views: 0.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 1ms (ActiveRecord: 0.0ms) +  (0.1ms) 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 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.3ms) 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.0ms) 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.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.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.7ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:46:16.836683"], ["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-18 13:46:16.836683"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 36ms (ActiveRecord: 2.6ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-18 13:46:16.848866"], ["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-18 13:46:16.848866"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 7ms (ActiveRecord: 1.1ms) +  (0.8ms) 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.1ms) 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-18 13:46:16.860920"], ["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-18 13:46:16.860920"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) +  (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.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (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 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.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction -  (0.0ms) rollback 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.1ms) 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 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.3ms) begin transaction -  (0.1ms) rollback transaction + Account Load (0.2ms) 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-18 13:46:16.918514"], ["uid", 0], ["updated_at", "2015-02-18 13:46:16.918514"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 +  (0.5ms) rollback transaction  (0.1ms) begin transaction -  (0.0ms) rollback 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.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:46:16.930161"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-18 13:46:16.930161"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (1.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-18 13:46:16.932961"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-18 13:46:16.940365"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:46:16.940365"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + 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 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-18 13:46:16.946129"], ["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-18 13:46:16.946129"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.5ms) rollback transaction  (0.1ms) begin transaction -  (0.1ms) rollback 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-18 13:46:16.950195"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:46:16.950195"]] +  (0.1ms) 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 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-18 13:46:16.952953"], ["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-18 13:46:16.952953"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:46:16.956480"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:46:16.956480"]] +  (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 LIMIT 1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:46:16.959172"], ["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-18 13:46:16.959172"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction  (0.1ms) begin transaction -  (0.0ms) rollback 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-18 13:46:16.962760"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:46:16.962760"]] +  (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.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-18 13:46:16.965211"], ["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-18 13:46:16.965211"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-18 13:46:16.968757"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:46:16.968757"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:46:16.971615"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-18 13:46:16.971615"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) 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.2ms) 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-18 13:46:16.975937"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (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" = 456 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:46:16.979729"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:46:16.979729"]] +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:46:16.981560"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-18 13:46:16.981560"]] +  (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-18 13:46:16.983777"]] +  (0.1ms) 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.1ms) 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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:46:16.988388"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 13:46:16.988388"]] +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 13:46:16.990204"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-18 13:46:16.990204"]] +  (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-18 13:46:16.992503"]] +  (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.1ms) 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", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:46:16.996784"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424180776"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-18 13:46:16.996784"]] +  (0.1ms) 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", "1424439976"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-18 13:46:16.999595"]] +  (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.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.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:46:17.004014"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424180777"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-18 13:46:17.004014"]] +  (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.3ms) 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", "1424439977"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-18 13:46:17.005816"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) 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.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-18 13:46:17.010279"], ["oauth_access_token", "token"], ["oauth_expires_at", 1424353577], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-18 13:46:17.010279"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.3ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["created_at", "2015-02-18 13:46:23.148261"], ["updated_at", "2015-02-18 13:46:23.148261"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (1.4ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2015-02-18 13:46:23.151927"], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:46:23.164885"], ["updated_at", "2015-02-18 13:46:23.164885"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.8ms) INSERT INTO "accounts" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:46:23.172278"], ["updated_at", "2015-02-18 13:46:23.172278"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.6ms) 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" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:46:23.178568"], ["updated_at", "2015-02-18 13:46:23.178568"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:46:23.181273"], ["updated_at", "2015-02-18 13:46:23.181273"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:46:23.186838"], ["updated_at", "2015-02-18 13:46:23.186838"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) 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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:46:23.190608"], ["updated_at", "2015-02-18 13:46:23.190608"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:46:23.196635"], ["updated_at", "2015-02-18 13:46:23.196635"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) 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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:46:23.200192"], ["updated_at", "2015-02-18 13:46:23.200192"]] +  (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" = 456 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:46:23.204129"], ["updated_at", "2015-02-18 13:46:23.204129"]] +  (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.3ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 123], ["created_at", "2015-02-18 13:46:23.206160"], ["updated_at", "2015-02-18 13:46:23.206160"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (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_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2015-02-18 13:46:23.209365"], ["id", 2]] +  (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.3ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:46:23.213367"], ["updated_at", "2015-02-18 13:46:23.213367"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 123], ["created_at", "2015-02-18 13:46:23.216652"], ["updated_at", "2015-02-18 13:46:23.216652"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (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.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2015-02-18 13:46:23.220560"], ["id", 2]] +  (0.1ms) 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.1ms) 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" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 13:46:23.224887"], ["updated_at", "2015-02-18 13:46:23.224887"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 123], ["created_at", "2015-02-18 13:46:23.227708"], ["updated_at", "2015-02-18 13:46:23.227708"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (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_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2015-02-18 13:46:23.231077"], ["id", 2]] +  (0.1ms) 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.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("uid", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["uid", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1424180783"], ["created_at", "2015-02-18 13:46:23.244175"], ["updated_at", "2015-02-18 13:46:23.244175"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1424439983"], ["updated_at", "2015-02-18 13:46:23.247467"], ["id", 1]] +  (0.1ms) 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.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("uid", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["uid", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1424180783"], ["created_at", "2015-02-18 13:46:23.254472"], ["updated_at", "2015-02-18 13:46:23.254472"]] +  (0.1ms) 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.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1424439983"], ["updated_at", "2015-02-18 13:46:23.258216"], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("uid", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["uid", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1424353583"], ["created_at", "2015-02-18 13:46:23.263933"], ["updated_at", "2015-02-18 13:46:23.263933"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) 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" ("uid", "created_at", "updated_at") VALUES (?, ?, ?) [["uid", 0], ["created_at", "2015-02-18 13:46:23.272472"], ["updated_at", "2015-02-18 13:46:23.272472"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction  (0.1ms) rollback transaction -  (0.0ms) begin transaction +  (0.1ms) 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 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -  (0.0ms) begin transaction +  (0.1ms) begin transaction Processing by SessionsController#failure as HTML -Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms) + Rendered /Users/manda/projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by SessionsController#failure as HTML + Rendered /Users/manda/projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) 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.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 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) 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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:46:23.342486"], ["updated_at", "2015-02-18 13:46:23.342486"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 6ms (ActiveRecord: 0.8ms) +  (0.5ms) rollback transaction  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - 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 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) 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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:46:23.351852"], ["updated_at", "2015-02-18 13:46:23.351852"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 4ms (ActiveRecord: 0.6ms) +  (0.6ms) rollback transaction  (0.1ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - 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 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) 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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 13:46:23.361951"], ["updated_at", "2015-02-18 13:46:23.361951"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 5ms (ActiveRecord: 0.7ms) +  (0.6ms) rollback transaction +  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction -  (0.0ms) rollback transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback transaction +  (0.1ms) rollback transaction +  (0.1ms) 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 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback 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 1ms (Views: 0.3ms | 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.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback 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 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.3ms) 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.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 15:19:40.166022"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 15:19:40.166022"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.2ms) 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 LIMIT 1 + SQL (1.0ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-18 15:19:40.180105"], ["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-18 15:19:40.180105"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.5ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback transaction -  (0.0ms) begin transaction -  (0.0ms) rollback 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-18 15:19:40.185023"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 15:19:40.185023"]] +  (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.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-18 15:19:40.187542"], ["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-18 15:19:40.187542"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-18 15:19:40.193705"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 15:19:40.193705"]] +  (0.1ms) 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.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-18 15:19:40.196421"], ["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-18 15:19:40.196421"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction  (0.1ms) begin transaction -  (0.0ms) rollback transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-18 15:19:40.201906"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 15:19:40.201906"]] +  (0.1ms) 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.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-18 15:19:40.204853"], ["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-18 15:19:40.204853"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) 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" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 15:19:40.208855"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 15:19:40.208855"]] +  (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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 15:19:40.210533"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-18 15:19:40.210533"]] +  (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.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-18 15:19:40.213454"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) 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-18 15:19:40.217853"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 15:19:40.217853"]] +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 15:19:40.220068"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-18 15:19:40.220068"]] +  (0.1ms) 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-18 15:19:40.223032"]] +  (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.1ms) begin transaction -  (0.0ms) rollback 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-18 15:19:40.227198"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-18 15:19:40.227198"]] +  (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.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-18 15:19:40.229305"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-18 15:19:40.229305"]] +  (0.1ms) 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-18 15:19:40.232364"]] +  (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" IS NULL LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-18 15:19:40.235889"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-18 15:19:40.235889"]] +  (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" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (0.4ms) 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-18 15:19:40.237781"]] +  (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.1ms) 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-18 15:19:40.254194"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424186380"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-18 15:19:40.254194"]] +  (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.3ms) 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", "1424445580"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-18 15:19:40.256485"]] +  (0.1ms) 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.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-18 15:19:40.260673"], ["oauth_access_token", "token"], ["oauth_expires_at", "1424186380"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-18 15:19:40.260673"]] +  (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.3ms) 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", "1424445580"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-18 15:19:40.262481"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-18 15:19:40.265863"], ["oauth_access_token", "token"], ["oauth_expires_at", 1424359180], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-18 15:19:40.265863"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback transaction +  (0.1ms) rollback transaction  (0.1ms) begin transaction -  (0.0ms) rollback transaction + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-18 15:19:40.281098"], ["uid", 0], ["updated_at", "2015-02-18 15:19:40.281098"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 +  (0.4ms) 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.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#failure as HTML +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.3ms) 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 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-18 15:19:40.325124"], ["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-18 15:19:40.325124"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 5ms (ActiveRecord: 0.9ms) +  (0.5ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.3ms) 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 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-18 15:19:40.335038"], ["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-18 15:19:40.335038"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) 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-18 15:19:40.343812"], ["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-18 15:19:40.343812"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.4ms) rollback transaction  (0.1ms) begin transaction -  (0.0ms) rollback transaction +  (0.1ms) rollback transaction  (0.0ms) begin transaction -  (0.0ms) rollback transaction +  (0.1ms) rollback transaction  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (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 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) +Completed 401 Unauthorized in 3ms (Views: 2.0ms | 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) +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction -  (0.1ms) begin 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.1ms) rollback transaction -  (0.1ms) begin 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.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.4ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (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 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.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/manda/projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 11ms (Views: 11.1ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/manda/projects/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 15:19:46.669423"], ["updated_at", "2015-02-18 15:19:46.669423"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 40ms (ActiveRecord: 2.6ms) +  (0.6ms) 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" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 15:19:46.680025"], ["updated_at", "2015-02-18 15:19:46.680025"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 6ms (ActiveRecord: 0.9ms) +  (0.6ms) 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" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) 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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 15:19:46.690245"], ["updated_at", "2015-02-18 15:19:46.690245"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 4ms (ActiveRecord: 0.6ms) +  (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" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 15:19:46.694898"], ["updated_at", "2015-02-18 15:19:46.694898"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (1.0ms) INSERT INTO "accounts" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 15:19:46.701105"], ["updated_at", "2015-02-18 15:19:46.701105"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (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" = 456 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 15:19:46.706278"], ["updated_at", "2015-02-18 15:19:46.706278"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) 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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 15:19:46.710502"], ["updated_at", "2015-02-18 15:19:46.710502"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 15:19:46.715500"], ["updated_at", "2015-02-18 15:19:46.715500"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) 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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 15:19:46.719064"], ["updated_at", "2015-02-18 15:19:46.719064"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 15:19:46.724680"], ["updated_at", "2015-02-18 15:19:46.724680"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) 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" ("uid", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["uid", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-02-18 15:19:46.728176"], ["updated_at", "2015-02-18 15:19:46.728176"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 15:19:46.733306"], ["updated_at", "2015-02-18 15:19:46.733306"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 123], ["created_at", "2015-02-18 15:19:46.736163"], ["updated_at", "2015-02-18 15:19:46.736163"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (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_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2015-02-18 15:19:46.740351"], ["id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 15:19:46.744612"], ["updated_at", "2015-02-18 15:19:46.744612"]] +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 123], ["created_at", "2015-02-18 15:19:46.746686"], ["updated_at", "2015-02-18 15:19:46.746686"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (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.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2015-02-18 15:19:46.750189"], ["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.5ms) rollback transaction +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 456], ["created_at", "2015-02-18 15:19:46.756028"], ["updated_at", "2015-02-18 15:19:46.756028"]] +  (0.1ms) 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.3ms) INSERT INTO "accounts" ("provider", "uid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["uid", 123], ["created_at", "2015-02-18 15:19:46.758254"], ["updated_at", "2015-02-18 15:19:46.758254"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (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.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2015-02-18 15:19:46.760981"], ["id", 2]] +  (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" IS NULL LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["created_at", "2015-02-18 15:19:46.764598"], ["updated_at", "2015-02-18 15:19:46.764598"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) 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_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2015-02-18 15:19:46.767351"], ["id", 1]] +  (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 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "accounts" ("uid", "created_at", "updated_at") VALUES (?, ?, ?) [["uid", 0], ["created_at", "2015-02-18 15:19:46.777881"], ["updated_at", "2015-02-18 15:19:46.777881"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("uid", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["uid", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1424186386"], ["created_at", "2015-02-18 15:19:46.793543"], ["updated_at", "2015-02-18 15:19:46.793543"]] +  (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.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1424445586"], ["updated_at", "2015-02-18 15:19:46.796234"], ["id", 1]] +  (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.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.5ms) INSERT INTO "accounts" ("uid", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["uid", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1424186386"], ["created_at", "2015-02-18 15:19:46.800853"], ["updated_at", "2015-02-18 15:19:46.800853"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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.4ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = ? [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1424445586"], ["updated_at", "2015-02-18 15:19:46.804649"], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("uid", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["uid", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1424359186"], ["created_at", "2015-02-18 15:19:46.810239"], ["updated_at", "2015-02-18 15:19:46.810239"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) 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 4ms (Views: 3.9ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) 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.3ms | ActiveRecord: 0.0ms) +  (0.1ms) 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.1ms) rollback transaction +  (0.0ms) 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 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction