spec/dummy/log/test.log in bookingsync-engine-2.0.1 vs spec/dummy/log/test.log in bookingsync-engine-2.0.2

- old
+ new

@@ -1,472 +1,10076 @@ -  (0.4ms) BEGIN -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN -  (0.0ms) ROLLBACK -  (0.0ms) BEGIN -  (0.0ms) ROLLBACK -  (0.1ms) BEGIN -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN -  (0.0ms) ROLLBACK -  (0.0ms) BEGIN +  (1.1ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar(255), "uid" integer, "name" varchar(255), "oauth_access_token" varchar(255), "oauth_refresh_token" varchar(255), "oauth_expires_at" varchar(255))  +  (0.8ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid") +  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436') +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.0ms) INSERT INTO "accounts" ("name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid") VALUES (?, ?, ?, ?, ?, ?) [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 16ms (ActiveRecord: 3.2ms) +  (0.4ms) 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"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid") VALUES (?, ?, ?, ?, ?, ?) [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) 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"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid") VALUES (?, ?, ?, ?, ?, ?) [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("oauth_access_token", "oauth_expires_at", "oauth_refresh_token") VALUES (?, ?, ?) [["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil]] +  (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 +  (2.0ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar(255), "uid" integer, "name" varchar(255), "oauth_access_token" varchar(255), "oauth_refresh_token" varchar(255), "oauth_expires_at" varchar(255))  +  (1.0ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid") +  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436') +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (1.4ms) INSERT INTO "accounts" ("name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid") VALUES (?, ?, ?, ?, ?, ?) [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 11ms (ActiveRecord: 2.2ms) +  (1.2ms) 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"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid") VALUES (?, ?, ?, ?, ?, ?) [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123]] +  (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.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid") VALUES (?, ?, ?, ?, ?, ?) [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +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#failure as HTML +Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("oauth_access_token", "oauth_expires_at", "oauth_refresh_token") VALUES (?, ?, ?) [["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil]] +  (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.4ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ Completed 302 Found in 1ms (ActiveRecord: 0.0ms) -  (0.2ms) ROLLBACK -  (0.0ms) BEGIN +  (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.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.6ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.9ms) INSERT INTO "accounts" ("name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid") VALUES (?, ?, ?, ?, ?, ?) [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ +Completed 302 Found in 21ms (ActiveRecord: 6.4ms) +  (0.4ms) 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"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid") VALUES (?, ?, ?, ?, ?, ?) [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) 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"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid") VALUES (?, ?, ?, ?, ?, ?) [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.1ms) 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.6ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]] +  (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 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("oauth_access_token", "oauth_expires_at", "oauth_refresh_token") VALUES (?, ?, ?) [["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (3.9ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 16ms (ActiveRecord: 4.8ms) +  (0.7ms) 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"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", Fri, 13 Jun 2014 11:40:10 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.5ms) 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"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", Fri, 13 Jun 2014 11:40:10 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (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 -  (0.0ms) BEGIN +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Fri, 13 Jun 2014 11:40:10 UTC +00:00]] +  (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.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (4.5ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:22:23 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Wed, 17 Sep 2014 09:22:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.6ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Wed, 17 Sep 2014 09:22:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:22:23 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:22:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:22:23 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:22:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:22:23 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:22:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.8ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:27:40 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:27:40 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:27:40 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:27:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:27:40 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:27:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:27:40 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Wed, 17 Sep 2014 09:27:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Wed, 17 Sep 2014 09:27:40 UTC +00:00]] +  (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.2ms) begin transaction Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.5ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +Completed 500 Internal Server Error in 10ms +  (0.1ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +Completed 500 Internal Server Error in 8ms +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +Completed 500 Internal Server Error in 8ms +  (0.0ms) rollback transaction +  (0.3ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} +Completed 500 Internal Server Error in 0ms +  (0.1ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (4.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:33:43 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:33:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 12696ms (ActiveRecord: 5.3ms) +  (0.4ms) rollback transaction +  (0.3ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 - Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.4ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.097391"], ["updated_at", "2017-04-26 15:39:34.097391"]] + SQL (2.8ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:34:16 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:34:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 50027ms (ActiveRecord: 4.0ms) +  (0.3ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:34:38 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:34:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Completed 500 Internal Server Error in 7292ms +  (0.2ms) rollback transaction +  (0.3ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.7ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:34:48 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:34:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 18ms (ActiveRecord: 4.0ms) +  (0.8ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:34:53 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:34:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 13ms (ActiveRecord: 3.2ms) +  (1.2ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 09:34:56 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:34:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 13ms (ActiveRecord: 3.1ms) +  (1.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"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", Wed, 17 Sep 2014 09:34:56 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:34:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.4ms) 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"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", Wed, 17 Sep 2014 09:34:56 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 09:34:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 5.3ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.4ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 9ms (Views: 8.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.5ms | ActiveRecord: 0.0ms) +  (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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} +Completed 500 Internal Server Error in 2ms +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} +Completed 500 Internal Server Error in 0ms +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} +Completed 500 Internal Server Error in 0ms +  (0.0ms) rollback transaction +  (0.3ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} +Completed 500 Internal Server Error in 1ms +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (1.5ms) SELECT "accounts".* FROM "accounts" +Completed 500 Internal Server Error in 82418ms +  (0.1ms) rollback transaction +  (0.4ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + 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", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 09:42:37.843203"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 09:42:37.843203"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 12ms (ActiveRecord: 1.4ms) +  (1.1ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 09:42:47.613579"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 09:42:47.613579"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 32ms (ActiveRecord: 1.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 09:42:47.640114"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 09:42:47.640114"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 09:42:47.644195"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 09:42:47.644195"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 5.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 09:42:47.660284"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 09:42:47.660284"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 09:42:47.661683"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 09:42:47.664809"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 09:42:47.664809"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 09:42:47.666062"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 09:42:47.668227"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 09:42:47.668227"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 09:42:47.669264"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-17 09:42:47.677095"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-17 09:42:47.677095"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-17 09:42:47.678154"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (4.9ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:01:22 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Wed, 17 Sep 2014 10:01:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (1.0ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Wed, 17 Sep 2014 10:01:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:01:22 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:01:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:01:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:01:22 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:01:22 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:01:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:01:22 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:01:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:01:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:02:18 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:02:18 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:02:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:02:18 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:02:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:02:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:02:18 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:02:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:02:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:02:18 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Wed, 17 Sep 2014 10:02:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Wed, 17 Sep 2014 10:02:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.3ms) 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#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-17 10:03:15.329802"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:03:15.329802"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 14ms (ActiveRecord: 1.8ms) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:03:15.338626"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:03:15.338626"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin -Completed 302 Found in 31ms (ActiveRecord: 4.8ms) -  (0.2ms) ROLLBACK -  (0.0ms) BEGIN +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (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"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:03:15.345470"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:03:15.345470"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:03:15.348097"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-17 10:03:15.348097"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-17 10:03:15.348867"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:03:15.357450"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:03:15.357450"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:03:15.358913"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:03:15.361368"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:03:15.361368"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:03:15.362621"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:03:15.364730"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:03:15.364730"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:03:15.365810"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:03:29.152384"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:03:29.152384"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 11ms (ActiveRecord: 1.4ms) +  (1.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:03:29.159222"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:03:29.159222"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:03:29.162989"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:03:29.162989"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.5ms) rollback transaction +  (0.5ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.104015"], ["updated_at", "2017-04-26 15:39:34.104015"]] + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:03:29.172109"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-17 10:03:29.172109"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-09-17 10:03:29.173281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:03:29.177310"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:03:29.177310"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:03:29.178903"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:03:29.181403"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:03:29.181403"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:03:29.182454"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:03:29.184319"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:03:29.184319"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:03:29.185333"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:03:42 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Wed, 17 Sep 2014 10:03:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Wed, 17 Sep 2014 10:03:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:03:42 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:03:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:03:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:03:42 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:03:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:03:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:03:42 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:03:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:03:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.2ms) 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.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:05:01 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:05:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:05:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:05:01 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:05:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:05:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:05:01 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:05:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:05:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:05:01 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Wed, 17 Sep 2014 10:05:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Wed, 17 Sep 2014 10:05:01 UTC +00:00]] +  (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.2ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:06:52 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:06:52 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:06:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:06:52 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:06:52 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:06:52 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:06:52 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:06:52 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:06:52 UTC +00:00]] +  (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) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:06:52 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Wed, 17 Sep 2014 10:06:52 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Wed, 17 Sep 2014 10:06:52 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:07:23.816910"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-17 10:07:23.816910"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-09-17 10:07:23.819417"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:07:23.825943"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:07:23.825943"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:07:23.827449"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:07:23.829781"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:07:23.829781"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:07:23.830923"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:07:23.832545"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:07:23.832545"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:07:23.833555"]] +  (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) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:08:31.901359"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-17 10:08:31.901359"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-09-17 10:08:31.903871"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:08:31.910407"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:08:31.910407"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:08:31.912423"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:08:31.915236"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:08:31.915236"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:08:31.916590"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:08:31.918396"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:08:31.918396"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:08:31.919490"]] +  (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) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:10:04.997280"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:10:04.997280"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ +Completed 302 Found in 11ms (ActiveRecord: 1.5ms) +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:10:05.004429"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:10:05.004429"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:10:05.008187"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:10:05.008187"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:10:05.023647"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:10:05.023647"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.6ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:10:05.024983"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:10:05.027823"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:10:05.027823"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:10:05.028977"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:10:05.030849"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:10:05.030849"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:10:05.031842"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:10:05.033863"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-17 10:10:05.033863"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-17 10:10:05.034600"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:11:17.645429"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:11:17.645429"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:11:17.650342"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:11:17.655102"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:11:17.655102"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:11:17.656784"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) 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 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:11:17.658859"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:11:17.658859"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:11:17.659923"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:11:17.662037"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-17 10:11:17.662037"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-17 10:11:17.662751"]] +  (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) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:11:23.478295"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-17 10:11:23.478295"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-17 10:11:23.480731"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:11:23.486562"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:11:23.486562"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:11:23.488129"]] +  (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.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:11:23.490607"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:11:23.490607"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:11:23.491666"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:11:23.493377"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:11:23.493377"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:11:23.494357"]] +  (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) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.4ms | 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" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-17 10:15:21.629533"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:21.629533"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 11ms (ActiveRecord: 1.3ms) +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:15:21.637440"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:21.637440"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:15:21.641343"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:21.641343"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:15:21.643528"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-17 10:15:21.643528"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-17 10:15:21.644279"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:15:21.651695"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:21.651695"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:15:21.652981"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:15:21.655383"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:21.655383"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.3ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:15:21.658409"]] +  (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.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:15:21.660785"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:21.660785"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:15:21.661909"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) 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 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00]] +  (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) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", Wed, 17 Sep 2014 10:15:50 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 17 Sep 2014 10:15:50 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 7ms (Views: 7.3ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:15:54.822376"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-17 10:15:54.822376"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-09-17 10:15:54.824744"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:15:54.830668"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:54.830668"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:15:54.832261"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:15:54.834721"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:54.834721"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:15:54.836159"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:15:54.837896"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:54.837896"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:15:54.838904"]] +  (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) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:15:54.857324"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:54.857324"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:15:54.860875"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:54.860875"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:15:54.864211"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:54.864211"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:15:59.235070"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-17 10:15:59.235070"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-17 10:15:59.238071"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:15:59.260162"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:59.260162"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:15:59.263351"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:15:59.266049"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:59.266049"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:15:59.267657"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-17 10:15:59.269781"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:59.269781"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-17 10:15:59.271277"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) 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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +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 + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-17 10:15:59.292861"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:59.292861"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:15:59.297668"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:59.297668"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-17 10:15:59.303349"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-17 10:15:59.303349"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.3ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 11:55:53.832904"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:55:53.832904"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 11ms (ActiveRecord: 1.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 11:55:53.838639"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:55:53.838639"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 11:55:53.841831"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:55:53.841831"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 11:55:53.854903"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 11:55:53.854903"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-09-18 11:55:53.855835"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 11:55:53.859372"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:55:53.859372"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 11:55:53.860496"]] +  (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.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 11:55:53.862443"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:55:53.862443"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 11:55:53.863438"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 11:55:53.864979"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:55:53.864979"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 11:55:53.866254"]] +  (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) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} +Completed 500 Internal Server Error in 0ms +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} +Completed 500 Internal Server Error in 0ms +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} +Completed 500 Internal Server Error in 0ms +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 11:56:05.018595"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 11:56:05.018595"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-09-18 11:56:05.021116"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 11:56:05.027187"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:56:05.027187"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 11:56:05.029027"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:56:05.029027"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 11:56:05.030563"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:56:05.030563"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 11:56:26.630996"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 11:56:26.630996"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 11:56:26.633468"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 11:56:26.674931"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:56:26.674931"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 11:57:00.819953"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 11:57:00.822634"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:57:00.822634"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 11:57:09.267982"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 11:57:09.270292"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:57:09.270292"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 11:57:11.217546"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | 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" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_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", "2014-09-18 11:57:12.827769"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:57:12.827769"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 1593ms (ActiveRecord: 0.5ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 11:57:17.522978"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:57:17.522978"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 4692ms (ActiveRecord: 0.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" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 11:57:19.404379"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:57:19.404379"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 1879ms (ActiveRecord: 0.5ms) +  (0.3ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 11:59:29.972459"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 11:59:29.972459"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 45477ms (ActiveRecord: 1.6ms) +  (0.5ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:00:18.171982"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:00:18.171982"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 12:00:18.174859"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:00:18.213989"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:00:18.213989"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Unpermitted parameters: uid, info, credentials +Unpermitted parameters: uid, info, credentials + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:05:00.509568"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:05:00.512073"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:05:00.512073"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:05:01.974893"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:05:01.978322"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:05:01.978322"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:05:02.775592"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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.0ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 5.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | 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" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:05:03.766732"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:05:03.766732"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 970ms (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" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:05:04.487964"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:05:04.487964"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 718ms (ActiveRecord: 0.5ms) +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.3ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:05:05.304601"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:05:05.304601"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 813ms (ActiveRecord: 0.6ms) +  (1.2ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:06:00.646206"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:06:00.646206"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:06:05.704296"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:09:53.609810"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:09:53.609810"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:09:53.611090"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:09:53.613129"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:09:53.613129"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:09:53.614195"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:09:53.616273"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:09:53.616273"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 12:09:53.617001"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (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" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:09:53.633516"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:09:53.633516"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:09:53.637633"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:09:53.637633"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:09:53.641580"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:09:53.641580"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:10:05.789433"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:10:05.789433"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 12:10:05.811470"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:10:05.816529"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:10:05.816529"]] +  (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 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:10:05.819781"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:10:05.822617"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:10:05.822617"]] +  (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 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:10:05.824255"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:10:05.826842"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:10:05.826842"]] +  (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 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:10:05.828365"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +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.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:10:05.847994"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:10:05.847994"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 12:10:05.851639"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:10:05.851639"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:10:05.855387"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:10:05.855387"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.3ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 12:10:38.496864"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:10:38.496864"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 34ms (ActiveRecord: 1.4ms) +  (1.2ms) 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 + 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", "2014-09-18 12:10:38.504932"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:10:38.504932"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 12:10:38.510316"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:10:38.510316"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:10:38.513105"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:10:38.513105"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (1.0ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 12:10:38.514087"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:10:38.523183"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:10:38.523183"]] +  (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 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:10:38.524612"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:10:38.526613"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:10:38.526613"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.5ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:10:38.528521"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:10:38.530933"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:10:38.530933"]] +  (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 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:10:38.532097"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.3ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (4.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00]] +  (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 + SQL (0.9ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00]] +  (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 + SQL (0.5ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00]] +  (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 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00]] +  (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.1ms) begin transaction +  (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.0ms) SAVEPOINT active_record_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", Thu, 18 Sep 2014 12:10:58 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.6ms) -  (0.2ms) ROLLBACK -  (0.0ms) BEGIN +  (0.3ms) 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"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] -  (0.5ms) SAVEPOINT active_record_1 - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.110597"], ["updated_at", "2017-04-26 15:39:34.110597"]] + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", Thu, 18 Sep 2014 12:10:58 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", Thu, 18 Sep 2014 12:10:58 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 12:10:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.3ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 12:11:03.150164"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:11:03.150164"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 13ms (ActiveRecord: 1.3ms) +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 12:11:03.157414"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:11:03.157414"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 12:11:03.160819"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:11:03.160819"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:11:03.175599"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:11:03.175599"]] +  (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 + SQL (0.8ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:11:03.176931"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:11:03.179907"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:11:03.179907"]] +  (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 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:11:03.180999"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:11:03.182987"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:11:03.182987"]] +  (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 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:11:03.183982"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:11:03.190300"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:11:03.190300"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:11:03.191209"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:11:08.030330"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:11:08.030330"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 12:11:08.034188"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:11:08.044177"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:11:08.044177"]] +  (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 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:11:08.047735"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:11:08.050620"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:11:08.050620"]] +  (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 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:11:08.052288"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:11:08.054380"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:11:08.054380"]] +  (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 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:11:08.056099"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms) +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +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.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:11:08.083230"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:11:08.083230"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.4ms) 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" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:11:08.087687"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:11:08.087687"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) 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" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:11:08.091898"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:11:08.091898"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:18:25.770047"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:18:25.770047"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 12:18:25.772416"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:18:25.786219"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:18:25.786219"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:18:25.787222"], ["provider", "other_provider"], ["uid", 123], ["updated_at", "2014-09-18 12:18:25.787222"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:18:25.787954"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:18:25.787954"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:18:25.789029"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 3]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:18:25.791311"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:18:25.791311"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:18:25.792035"], ["provider", "other_provider"], ["uid", 123], ["updated_at", "2014-09-18 12:18:25.792035"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:18:25.792797"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:18:25.792797"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:18:25.793714"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 3]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:18:25.795497"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:18:25.795497"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:18:25.796213"], ["provider", "other_provider"], ["uid", 123], ["updated_at", "2014-09-18 12:18:25.796213"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:18:25.796986"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:18:25.796986"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:18:25.797970"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:18:25.817357"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:18:25.817357"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:18:25.821211"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:18:25.821211"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:18:25.824991"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:18:25.824991"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:19:00.593695"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:19:00.593695"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 15ms (ActiveRecord: 1.8ms) +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:19:00.601306"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:19:00.601306"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:19:00.605434"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:19:00.605434"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:19:00.617955"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:19:00.617955"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:19:00.618920"], ["provider", "other_provider"], ["uid", 123], ["updated_at", "2014-09-18 12:19:00.618920"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:19:00.620212"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:19:00.620212"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:19:00.621225"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 3]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:19:00.624236"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:19:00.624236"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:19:00.625044"], ["provider", "other_provider"], ["uid", 123], ["updated_at", "2014-09-18 12:19:00.625044"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:19:00.625859"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:19:00.625859"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:19:00.626762"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:19:00.628931"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:19:00.628931"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:19:00.629654"], ["provider", "other_provider"], ["uid", 123], ["updated_at", "2014-09-18 12:19:00.629654"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:19:00.630456"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:19:00.630456"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:19:00.631380"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 3]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:19:00.633221"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:19:00.633221"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:19:00.633911"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:22:44.962774"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:22:44.962774"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-09-18 12:22:44.965207"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:22:44.979724"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:22:44.979724"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:22:44.981179"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:22:44.983825"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:22:44.983825"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:22:44.985183"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:22:44.987310"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:22:44.987310"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:22:45.006531"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:22:45.006531"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:22:45.010073"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:22:45.010073"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:22:45.013453"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:22:45.013453"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:23:16.357295"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:23:16.357295"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 12:23:16.360092"]] +  (0.0ms) 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.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:23:16.365853"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:23:16.365853"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:23:16.367430"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:23:16.370142"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:23:16.370142"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:23:16.372209"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:23:16.372209"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:23:16.373439"]] +  (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.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 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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:23:16.397631"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:23:16.397631"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (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" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:23:16.402095"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:23:16.402095"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:23:16.406722"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:23:16.406722"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 6ms (Views: 5.6ms | 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.2ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:23:44.539049"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:23:44.539049"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 11ms (ActiveRecord: 1.3ms) +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:23:44.545876"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:23:44.545876"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:23:44.549402"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:23:44.549402"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:23:44.551816"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:23:44.551816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-09-18 12:23:44.552844"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:23:44.560899"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:23:44.560899"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:23:44.562283"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:23:44.564583"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:23:44.564583"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:23:44.565848"]] +  (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.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:23:44.567975"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:23:44.567975"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:24:09.312325"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:24:09.312325"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 12:24:09.314780"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:24:09.330470"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:24:09.330470"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:24:09.332039"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:24:09.334660"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:24:09.334660"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:24:09.335745"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:24:09.337638"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:24:09.337638"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.3ms) 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 4ms (ActiveRecord: 1.1ms) -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction Processing by SessionsController#failure as HTML - Rendered /var/www/bookingsync/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:24:09.356499"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:24:09.356499"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:24:09.360317"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:24:09.360317"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:24:09.363876"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:24:09.363876"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.3ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:24:42.322665"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:24:42.322665"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-09-18 12:24:42.325146"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:24:42.331071"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:24:42.331071"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:24:42.332689"]] +  (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.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:24:42.335241"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:24:42.335241"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:24:42.337830"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:24:42.337830"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:24:42.338816"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:24:42.357897"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:24:42.357897"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:24:42.361274"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:24:42.361274"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:24:42.364696"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:24:42.364696"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:25:06.320132"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:25:06.320132"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-09-18 12:25:06.322533"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:25:06.337731"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:25:06.337731"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:25:06.339821"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:25:06.342831"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:25:06.342831"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:25:06.344105"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:25:06.346168"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:25:06.346168"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "ok"], ["oauth_access_token", "as"], ["updated_at", "2014-09-18 12:25:06.348098"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:25:06.368070"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:25:06.368070"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:25:06.371451"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:25:06.371451"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:25:06.374644"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:25:06.374644"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:25:12.441427"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:25:12.441427"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 12:25:12.444142"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:25:12.450248"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:25:12.450248"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:25:12.451887"]] +  (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.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:25:12.455060"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:25:12.455060"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:25:12.456475"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:25:12.458724"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:25:12.458724"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "ok"], ["oauth_access_token", "as"], ["updated_at", "2014-09-18 12:25:12.459909"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +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.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:25:12.479072"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:25:12.479072"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:25:12.483040"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:25:12.483040"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:25:12.486938"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:25:12.486938"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 12:26:02.622407"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:26:02.622407"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 13ms (ActiveRecord: 1.3ms) +  (1.2ms) 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 + 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", "2014-09-18 12:26:02.630495"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:26:02.630495"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 12:26:02.635152"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:26:02.635152"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:26:02.650140"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:26:02.650140"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 456 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "ok"], ["oauth_access_token", "as"], ["updated_at", "2014-09-18 12:26:02.651607"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:26:02.654384"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:26:02.654384"]] +  (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 + 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", "2014-09-18 12:26:02.655550"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:26:02.655550"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:26:02.657737"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:26:02.657737"]] +  (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 + 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", "2014-09-18 12:26:02.658986"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:26:02.658986"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:26:02.665588"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:26:02.665588"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:26:02.666449"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:26:34.790021"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:26:34.790021"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 13ms (ActiveRecord: 1.4ms) +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:26:34.798783"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:26:34.798783"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:26:34.803174"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:26:34.803174"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#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 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:26:34.818774"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:26:34.818774"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "ok"], ["oauth_access_token", "as"], ["updated_at", "2014-09-18 12:26:34.820161"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:26:34.822928"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:26:34.822928"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:26:34.824007"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:26:34.825979"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:26:34.825979"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:26:34.826942"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:26:34.833539"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:26:34.833539"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 12:26:34.834434"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:28:00.562904"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:28:00.562904"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 11ms (ActiveRecord: 1.3ms) +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_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", "2014-09-18 12:28:00.570605"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:28:00.570605"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:28:00.574688"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:28:00.574688"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:00.586354"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:28:00.586354"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:00.587344"], ["provider", "other_provider"], ["uid", 123], ["updated_at", "2014-09-18 12:28:00.587344"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:00.588655"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:28:00.588655"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:28:00.589613"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 3]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:00.592396"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:28:00.592396"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:00.593196"], ["provider", "other_provider"], ["uid", 123], ["updated_at", "2014-09-18 12:28:00.593196"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:00.594016"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:28:00.594016"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:28:00.594954"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:00.597132"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:28:00.597132"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:00.597838"], ["provider", "other_provider"], ["uid", 123], ["updated_at", "2014-09-18 12:28:00.597838"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:00.598618"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:28:00.598618"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "uid" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["uid", 123], ["updated_at", "2014-09-18 12:28:00.599517"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 3]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:28:00.601312"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:28:00.601312"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:28:00.602068"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 12:28:10.505394"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 12:28:10.505394"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-09-18 12:28:10.507741"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:10.513641"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:28:10.513641"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:10.514646"], ["provider", "other_provider"], ["uid", 123], ["updated_at", "2014-09-18 12:28:10.514646"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:10.515383"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:28:10.515383"]] +  (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 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 3 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:28:10.518425"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 3]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:10.520656"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:28:10.520656"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:10.521391"], ["provider", "other_provider"], ["uid", 123], ["updated_at", "2014-09-18 12:28:10.521391"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:10.522168"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:28:10.522168"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 3 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:28:10.523009"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 3]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:10.524560"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 12:28:10.524560"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:10.525207"], ["provider", "other_provider"], ["uid", 123], ["updated_at", "2014-09-18 12:28:10.525207"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 12:28:10.525999"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:28:10.525999"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 3 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 12:28:10.526790"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +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.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 12:28:10.545145"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:28:10.545145"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (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.1ms) SAVEPOINT active_record_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", "2014-09-18 12:28:10.550322"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:28:10.550322"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 12:28:10.554908"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 12:28:10.554908"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 13:09:35.208737"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 13:09:35.208737"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 13:09:35.214072"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:09:35.222163"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:09:35.222163"]] +  (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 + 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", "2014-09-18 13:09:35.236224"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:09:35.236224"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:09:35.238966"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:09:35.238966"]] +  (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 + 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", "2014-09-18 13:09:35.240810"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:09:35.240810"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:09:35.244793"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:09:35.244793"]] +  (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 + 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", "2014-09-18 13:09:35.246442"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:09:35.246442"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:09:35.248539"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:09:35.248539"]] +  (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 + 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", "2014-09-18 13:09:35.250133"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:09:35.250133"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:09:35.254827"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:09:35.254827"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:09:35.255948"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:09:35.255948"]] +  (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 + 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", "2014-09-18 13:09:35.257142"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:09:35.258811"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:09:35.258811"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:09:35.259548"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:09:35.259548"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:09:35.260645"]] +  (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.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:09:35.262656"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:09:35.262656"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:09:35.263456"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:09:35.263456"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:09:35.264618"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:09:35.266404"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:09:35.266404"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:09:35.267144"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:09:35.267144"]] +  (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 + 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", "2014-09-18 13:09:35.268426"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:09:35.308832"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:09:35.308832"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:09:35.313961"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:09:35.313961"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:09:35.318047"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:09:35.318047"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 14ms (Views: 14.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_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", "2014-09-18 13:10:07.442969"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:07.442969"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 20ms (ActiveRecord: 1.6ms) +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:10:07.451033"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:07.451033"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:10:07.454681"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:07.454681"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:07.466179"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:07.466179"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:07.467653"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:07.467653"]] +  (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 + 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", "2014-09-18 13:10:07.469727"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:07.472410"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:07.472410"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:07.473180"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:07.473180"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:10:07.474289"]] +  (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.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:07.476394"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:07.476394"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:07.477458"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:07.477458"]] +  (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 + 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", "2014-09-18 13:10:07.479016"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:07.481284"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:07.481284"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:07.482464"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:07.482464"]] +  (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 + 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", "2014-09-18 13:10:07.484056"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:07.486165"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:07.486165"]] +  (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 + 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", "2014-09-18 13:10:07.489193"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:07.489193"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:07.491658"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:07.491658"]] +  (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 + 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", "2014-09-18 13:10:07.492988"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:07.492988"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:07.494679"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:07.494679"]] +  (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 + 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", "2014-09-18 13:10:07.495816"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:07.495816"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:07.497604"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:07.497604"]] +  (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 + 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", "2014-09-18 13:10:07.499248"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:07.499248"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 13:10:07.501944"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 13:10:07.501944"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 13:10:07.502817"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.234948"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 13:10:46.234948"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 13:10:46.237845"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.242884"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:46.242884"]] +  (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 + 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", "2014-09-18 13:10:46.248287"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:46.248287"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.250848"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:46.250848"]] +  (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 + 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", "2014-09-18 13:10:46.252311"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:46.252311"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.254725"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:46.254725"]] +  (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 + 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", "2014-09-18 13:10:46.255958"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:46.255958"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.257617"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:46.257617"]] +  (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 + 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", "2014-09-18 13:10:46.258779"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:46.258779"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.260888"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:46.260888"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.261677"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:46.261677"]] +  (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 + 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", "2014-09-18 13:10:46.262763"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.264306"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:46.264306"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.265026"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:46.265026"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:10:46.266119"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.268045"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:46.268045"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.269422"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:46.269422"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:10:46.270966"]] +  (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.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.273624"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:10:46.273624"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.274513"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:46.274513"]] +  (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 + 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", "2014-09-18 13:10:46.275733"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:10:46.295191"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:46.295191"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 13:10:46.299136"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:46.299136"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:10:46.302567"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:10:46.302567"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.3ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 13:15:40.087881"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 13:15:40.087881"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-09-18 13:15:40.090859"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:40.105583"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:40.105583"]] +  (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 + 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", "2014-09-18 13:15:40.111088"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:40.111088"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:40.113537"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:40.113537"]] +  (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 + 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", "2014-09-18 13:15:40.114717"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:40.114717"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:40.116320"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:40.116320"]] +  (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 + 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", "2014-09-18 13:15:40.117475"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:40.117475"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:40.119483"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:40.119483"]] +  (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 + 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", "2014-09-18 13:15:40.120718"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:40.120718"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:40.122607"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:40.122607"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:40.123453"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:40.123453"]] +  (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 + 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", "2014-09-18 13:15:40.124734"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:40.126582"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:40.126582"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:40.127525"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:40.127525"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:15:40.128848"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:40.131047"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:40.131047"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:40.131922"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:40.131922"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:15:40.133079"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) 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#failure as HTML Completed 200 OK in 5ms (Views: 5.3ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN +  (0.0ms) rollback transaction +  (0.0ms) begin transaction Processing by SessionsController#failure as HTML - Rendered /var/www/bookingsync/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.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 + 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", "2014-09-18 13:15:40.155309"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:40.155309"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:15:40.159694"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:40.159694"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 13:15:40.163525"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:40.163525"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.4ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:15:48.607446"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:48.607446"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 14ms (ActiveRecord: 1.4ms) +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:15:48.614924"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:48.614924"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-18 13:15:48.618581"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:48.618581"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (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.0ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.2ms) BEGIN +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:48.633923"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:48.633923"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.6ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1493307574"], ["created_at", "2017-04-26 15:39:34.126702"], ["updated_at", "2017-04-26 15:39:34.126702"]] + SQL (0.7ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:48.634933"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:48.634933"]] +  (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 + 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", "2014-09-18 13:15:48.636640"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:48.639015"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:48.639015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1493134774"], ["created_at", "2017-04-26 15:39:34.131460"], ["updated_at", "2017-04-26 15:39:34.131460"]] -  (0.3ms) COMMIT -  (0.0ms) BEGIN -  (0.0ms) BEGIN - Account Exists (0.5ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 5) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1493393974"], ["updated_at", "2017-04-26 15:39:34.149332"], ["id", 5]] -  (1.3ms) COMMIT -  (0.1ms) ROLLBACK - Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 5]] - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" -  (0.0ms) BEGIN - SQL (0.1ms) DELETE FROM "accounts" WHERE "accounts"."id" = $1 [["id", 5]] -  (0.3ms) COMMIT -  (0.0ms) BEGIN - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1493134774"], ["created_at", "2017-04-26 15:39:34.157104"], ["updated_at", "2017-04-26 15:39:34.157104"]] -  (0.3ms) COMMIT -  (0.1ms) BEGIN - Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 6) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1493393974"], ["updated_at", "2017-04-26 15:39:34.161035"], ["id", 6]] -  (0.3ms) COMMIT - Account Load (0.2ms) SELECT "accounts".* FROM "accounts" -  (0.0ms) BEGIN - SQL (0.1ms) DELETE FROM "accounts" WHERE "accounts"."id" = $1 [["id", 6]] -  (0.2ms) COMMIT -  (0.0ms) BEGIN -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:48.639724"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:48.639724"]] +  (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 + 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", "2014-09-18 13:15:48.640795"]] +  (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.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:48.643407"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:48.643407"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["created_at", "2017-04-26 15:39:34.196953"], ["updated_at", "2017-04-26 15:39:34.196953"]] + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:48.644204"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:48.644204"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:15:48.645640"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:48.647784"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:48.647784"]] +  (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 + 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", "2014-09-18 13:15:48.650893"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:48.650893"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:48.653089"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:48.653089"]] +  (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 + 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", "2014-09-18 13:15:48.654339"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:48.654339"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:48.656267"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:48.656267"]] +  (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 + 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", "2014-09-18 13:15:48.657566"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:48.657566"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:15:48.659761"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:15:48.659761"]] +  (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 + 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", "2014-09-18 13:15:48.660999"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:15:48.660999"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 13:15:48.662921"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 13:15:48.662921"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 13:15:48.663771"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) 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.1ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:40:36.795185"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:40:36.795185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 21ms (ActiveRecord: 1.9ms) +  (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 + 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", "2014-09-18 13:40:36.803678"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:40:36.803678"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:40:36.807631"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:40:36.807631"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" IS NULL AND "accounts"."id" != 7) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2017-04-26 15:39:34.199160"], ["id", 7]] + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 13:40:36.824957"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 13:40:36.824957"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-09-18 13:40:36.826084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 7]] -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN - Account Load (0.4ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:40:36.829651"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:40:36.829651"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:40:36.830460"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:40:36.830460"]] +  (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 + 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", "2014-09-18 13:40:36.831616"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:40:36.833430"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:40:36.833430"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:40:36.834561"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:40:36.834561"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:40:36.835752"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:40:36.838799"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:40:36.838799"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:40:36.839716"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:40:36.839716"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:40:36.840970"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:40:36.843233"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:40:36.843233"]] +  (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 + 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", "2014-09-18 13:40:36.847769"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:40:36.847769"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:40:36.850712"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:40:36.850712"]] +  (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 + 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", "2014-09-18 13:40:36.852112"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:40:36.852112"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:40:36.854234"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:40:36.854234"]] +  (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 + 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", "2014-09-18 13:40:36.855460"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:40:36.855460"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:40:36.857258"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:40:36.857258"]] +  (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 + 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", "2014-09-18 13:40:36.858558"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:40:36.858558"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.3ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:00.326289"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:00.326289"]] +  (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 + 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", "2014-09-18 13:41:00.336087"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:00.336087"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:00.340053"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:00.340053"]] +  (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 + 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", "2014-09-18 13:41:00.341924"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:00.341924"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:00.345129"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:00.345129"]] +  (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 + 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", "2014-09-18 13:41:00.346445"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:00.346445"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:00.348797"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:00.348797"]] +  (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 + 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", "2014-09-18 13:41:00.349938"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:00.349938"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:00.351780"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:00.351780"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:00.352585"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:00.352585"]] +  (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 + 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", "2014-09-18 13:41:00.353831"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:00.356388"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:00.356388"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:00.357287"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:00.357287"]] +  (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 + 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", "2014-09-18 13:41:00.358492"]] +  (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.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:00.360534"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:00.360534"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:00.361329"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:00.361329"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:41:00.362512"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 13:41:00.364342"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 13:41:00.364342"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 13:41:00.365108"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (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.0ms) SAVEPOINT active_record_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", "2014-09-18 13:41:00.384104"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:00.384104"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:41:00.388192"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:00.388192"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:41:00.392514"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:00.392514"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 6ms (Views: 5.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.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2017-04-26 15:39:34.207528"], ["updated_at", "2017-04-26 15:39:34.207528"]] + SQL (5.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 - SQL (0.2ms) UPDATE "accounts" SET "synced_id" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3 [["synced_id", 0], ["updated_at", "2017-04-26 15:39:34.209310"], ["id", 8]] + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (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 + 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", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (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 + 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", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (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 + 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", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1 -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (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 + 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", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.219445"], ["updated_at", "2017-04-26 15:39:34.219445"]] + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.2ms) SELECT COUNT(*) FROM "accounts" - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["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 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.224876"], ["updated_at", "2017-04-26 15:39:34.224876"]] + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.2ms) SELECT COUNT(*) FROM "accounts" -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN + 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 (1.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.235230"], ["updated_at", "2017-04-26 15:39:34.235230"]] + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (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 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", Thu, 18 Sep 2014 13:41:12 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 18 Sep 2014 13:41:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:41:14.900733"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:14.900733"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 15ms (ActiveRecord: 1.6ms) +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:41:14.908878"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:14.908878"]] +  (0.2ms) 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#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-09-18 13:41:14.914370"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:14.914370"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:14.925297"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:14.925297"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:14.926508"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:14.926508"]] +  (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 + 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", "2014-09-18 13:41:14.928551"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:14.931055"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:14.931055"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:14.931852"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:14.931852"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:41:14.932981"]] +  (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.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:14.935179"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:14.935179"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:14.936502"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:14.936502"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:41:14.937709"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:14.939680"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:14.939680"]] +  (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 + 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", "2014-09-18 13:41:14.943454"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:14.943454"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:14.946119"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:14.946119"]] +  (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 + 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", "2014-09-18 13:41:14.947476"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:14.947476"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:14.949678"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:14.949678"]] +  (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 + 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", "2014-09-18 13:41:14.950855"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:14.950855"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:14.952578"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:14.952578"]] +  (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 + 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", "2014-09-18 13:41:14.953752"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:14.953752"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 13:41:14.955772"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 13:41:14.955772"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 13:41:14.956635"]] +  (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.3ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-18 13:41:18.038450"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-09-18 13:41:18.038450"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-09-18 13:41:18.042387"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:18.065567"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:18.065567"]] +  (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.0ms) SAVEPOINT active_record_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", "2014-09-18 13:41:18.071622"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:18.071622"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:18.074591"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:18.074591"]] +  (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 + 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", "2014-09-18 13:41:18.076393"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:18.076393"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:18.079072"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:18.079072"]] +  (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 + 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", "2014-09-18 13:41:18.080821"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:18.080821"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:18.083452"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:18.083452"]] +  (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 + 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", "2014-09-18 13:41:18.085182"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:18.085182"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:18.088021"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:18.088021"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:18.089370"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:18.089370"]] +  (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 + 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", "2014-09-18 13:41:18.091456"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:18.093893"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:18.093893"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:18.096158"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:18.096158"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:41:18.099011"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:18.101350"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-09-18 13:41:18.101350"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-18 13:41:18.102580"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:18.102580"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-09-18 13:41:18.104210"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) 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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 1ms (Views: 1.1ms | 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" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_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", "2014-09-18 13:41:18.136194"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:18.136194"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.4ms) 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" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 13:41:18.141528"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:18.141528"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.4ms) 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" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_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", "2014-09-18 13:41:18.146794"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-09-18 13:41:18.146794"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.2ms) 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 7ms (Views: 6.6ms | 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 JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:10:43.553587"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:10:43.553587"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:10:43.556977"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:10:43.556977"]] +  (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 + 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", "2014-11-13 12:10:43.564840"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:10:43.568381"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:10:43.568381"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:10:43.569238"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:10:43.569238"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:10:43.570385"]] +  (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.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:10:43.572306"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:10:43.572306"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:10:43.573033"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:10:43.573033"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:10:43.574456"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:10:43.576499"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:10:43.576499"]] +  (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 + 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", "2014-11-13 12:10:43.580522"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:10:43.580522"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:10:43.582972"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:10:43.582972"]] +  (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 + 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", "2014-11-13 12:10:43.584984"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:10:43.584984"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:10:43.586873"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:10:43.586873"]] +  (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 + 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", "2014-11-13 12:10:43.588004"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:10:43.588004"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:10:43.589860"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:10:43.589860"]] +  (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 + 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", "2014-11-13 12:10:43.591245"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:10:43.591245"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-13 12:10:43.611943"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-11-13 12:10:43.611943"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_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", "2014-11-13 12:10:43.613223"]] +  (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 +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:10:43.619569"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:10:43.619569"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:10:43.623654"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:10:43.623654"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-13 12:10:43.626906"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:10:43.626906"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (4.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:10:56 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:10:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:10:56 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:10:56 UTC +00:00]] +  (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 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 13 Nov 2014 12:10:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:10:56 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:10:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:10:56 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:10:56 UTC +00:00]] +  (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 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (3.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (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 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) 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 6ms (Views: 6.1ms | 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 JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (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.1ms) SAVEPOINT active_record_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", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (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.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", Thu, 13 Nov 2014 12:10:57 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:10:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:11:16.068860"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:16.068860"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 13ms (ActiveRecord: 1.3ms) +  (1.0ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:11:16.076348"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:16.076348"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:11:16.080792"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:16.080792"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 10ms (Views: 9.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.7ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-13 12:11:16.108796"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-11-13 12:11:16.108796"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-11-13 12:11:16.109794"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:16.113083"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:16.113083"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:11:16.115959"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:16.115959"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:16.117970"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:16.117970"]] +  (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 + 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", "2014-11-13 12:11:16.118984"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:16.118984"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:16.121209"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:16.121209"]] +  (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 + 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", "2014-11-13 12:11:16.122743"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:16.122743"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:16.124777"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:16.124777"]] +  (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 + 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", "2014-11-13 12:11:16.125770"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:16.125770"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:16.127470"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:16.127470"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:16.128140"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:16.128140"]] +  (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 + 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", "2014-11-13 12:11:16.129162"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:16.130977"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:16.130977"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:16.131720"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:16.131720"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:11:16.132804"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:16.134496"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:16.134496"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:16.135280"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:16.135280"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:11:16.136418"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) 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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:11:37.331813"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:37.331813"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 13ms (ActiveRecord: 1.3ms) +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:11:37.338863"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:37.338863"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:11:37.343491"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:37.343491"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.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.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-13 12:11:37.369133"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-11-13 12:11:37.369133"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-11-13 12:11:37.370220"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:37.373776"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:37.373776"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:11:37.376725"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:37.376725"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:37.378794"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:37.378794"]] +  (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 + 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", "2014-11-13 12:11:37.379842"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:37.379842"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:37.381493"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:37.381493"]] +  (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 + 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", "2014-11-13 12:11:37.382612"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:37.382612"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:37.384409"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:37.384409"]] +  (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 + 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", "2014-11-13 12:11:37.385618"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:37.385618"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:37.387530"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:37.387530"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:37.388288"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:37.388288"]] +  (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 + 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", "2014-11-13 12:11:37.389466"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:37.391124"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:37.391124"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:37.391892"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:37.391892"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:11:37.392950"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:37.394627"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:11:37.394627"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:11:37.395385"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:11:37.395385"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:11:37.396425"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:12:13.356415"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:12:13.356415"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:12:13.358935"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:12:13.358935"]] +  (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 + 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", "2014-11-13 12:12:13.364818"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:12:13.368339"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:12:13.368339"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:12:13.369300"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:12:13.369300"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:12:13.370569"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:12:13.372462"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:12:13.372462"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:12:13.373483"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:12:13.373483"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:12:13.374562"]] +  (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 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:12:13.376434"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:12:13.376434"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:12:13.379235"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:12:13.379235"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:12:13.381427"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:12:13.381427"]] +  (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 + 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", "2014-11-13 12:12:13.382504"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:12:13.382504"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:12:13.384312"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:12:13.384312"]] +  (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 + 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", "2014-11-13 12:12:13.385481"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:12:13.385481"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:12:13.387168"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:12:13.387168"]] +  (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 + 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", "2014-11-13 12:12:13.388146"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:12:13.388146"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-13 12:12:13.389878"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-11-13 12:12:13.389878"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-11-13 12:12:13.390642"]] +  (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 +Processing by AuthenticatedController#index as HTML + Rendered text template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 4ms (Views: 4.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 JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:12:13.419910"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:12:13.419910"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:12:13.423932"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:12:13.423932"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:12:13.427908"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:12:13.427908"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.3ms) begin transaction +Processing by AuthenticatedController#index as HTML + Rendered text template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 4ms (Views: 4.0ms | 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 JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (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 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (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 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (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.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (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 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (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.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", Thu, 13 Nov 2014 12:13:16 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +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.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:13:21.423392"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:21.423392"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 17ms (ActiveRecord: 1.5ms) +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:13:21.431216"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:21.431216"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:13:21.435212"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:21.435212"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-13 12:13:21.459885"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-11-13 12:13:21.459885"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.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", "2014-11-13 12:13:21.461224"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:21.466210"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:21.466210"]] +  (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 + 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", "2014-11-13 12:13:21.470562"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:21.470562"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:21.472730"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:21.472730"]] +  (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 + 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", "2014-11-13 12:13:21.473967"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:21.473967"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:21.475649"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:21.475649"]] +  (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 + 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", "2014-11-13 12:13:21.476818"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:21.476818"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:21.479334"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:21.479334"]] +  (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 + 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", "2014-11-13 12:13:21.480443"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:21.480443"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:21.482382"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:21.482382"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:21.483601"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:21.483601"]] +  (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 + 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", "2014-11-13 12:13:21.485327"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:21.487455"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:21.487455"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:21.488288"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:21.488288"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:13:21.489481"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:21.491149"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:21.491149"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:21.491913"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:21.491913"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:13:21.492962"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.2ms) 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" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_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", "2014-11-13 12:13:26.704325"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:26.704325"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 22ms (ActiveRecord: 1.6ms) +  (0.4ms) 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" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-13 12:13:26.710802"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:26.710802"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) +  (0.4ms) 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" = ? AND "accounts"."provider" = ? LIMIT 1 [["uid", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_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", "2014-11-13 12:13:26.715367"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:26.715367"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/Gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/Gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS + Rendered text template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) +  (0.0ms) 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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML + 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.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-13 12:13:26.746147"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-11-13 12:13:26.746147"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-11-13 12:13:26.747864"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:26.753018"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:26.753018"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) 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 + 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", "2014-11-13 12:13:26.756289"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:26.756289"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:26.758868"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:26.758868"]] +  (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.1ms) SAVEPOINT active_record_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", "2014-11-13 12:13:26.761453"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:26.761453"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:26.764758"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:26.764758"]] +  (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 + 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", "2014-11-13 12:13:26.766303"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:26.766303"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:26.768423"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:26.768423"]] +  (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 + 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", "2014-11-13 12:13:26.770086"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:26.770086"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:26.772317"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:26.772317"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:26.773514"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:26.773514"]] +  (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 + 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", "2014-11-13 12:13:26.775195"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:26.777391"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:26.777391"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:26.778895"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:26.778895"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:13:26.781124"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:26.783373"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:26.783373"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:26.784525"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:26.784525"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:13:26.786281"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.2ms) begin transaction +Processing by AuthenticatedController#index as JS + Rendered text template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.6ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 13ms (ActiveRecord: 3.5ms) +  (1.2ms) 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 + 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", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (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 +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (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 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (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 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (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 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Thu, 13 Nov 2014 12:13:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:50.199989"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:50.199989"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:50.202578"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:50.202578"]] +  (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 + 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", "2014-11-13 12:13:50.207900"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:50.211444"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:50.211444"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:50.212464"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:50.212464"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:13:50.213670"]] +  (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.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:50.215474"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:50.215474"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:50.216382"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:50.216382"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:13:50.217469"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:50.219250"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:50.219250"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:13:50.221922"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:50.221922"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:50.223971"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:50.223971"]] +  (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 + 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", "2014-11-13 12:13:50.224972"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:50.224972"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:50.226687"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:50.226687"]] +  (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 + 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", "2014-11-13 12:13:50.227879"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:50.227879"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:13:50.229592"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:13:50.229592"]] +  (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 + 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", "2014-11-13 12:13:50.230634"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:50.230634"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-13 12:13:50.232564"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-11-13 12:13:50.232564"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-11-13 12:13:50.233392"]] +  (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 +Processing by AuthenticatedController#index as HTML + Rendered text template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 4ms (Views: 3.7ms | 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 JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:13:50.258035"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:50.258035"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-13 12:13:50.261472"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:50.261472"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-13 12:13:50.264729"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:13:50.264729"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +Processing by AuthenticatedController#index as HTML + Rendered text template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (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 + SQL (0.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (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 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (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 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["provider", "bookingsync"], ["uid", 456], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (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 + 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", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_refresh_token" = ?, "oauth_expires_at" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (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 +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", Thu, 13 Nov 2014 12:14:13 UTC +00:00], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 13 Nov 2014 12:14:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.3ms) begin transaction +Processing by AuthenticatedController#index as JS + Rendered text template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.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 + 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", "2014-11-13 12:14:42.683602"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:14:42.683602"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 17ms (ActiveRecord: 1.5ms) +  (1.2ms) 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 + 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", "2014-11-13 12:14:42.692241"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:14:42.692241"]] +  (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.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:14:42.697040"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:14:42.697040"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:14:42.709212"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:14:42.709212"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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 + 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", "2014-11-13 12:14:42.713824"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:14:42.713824"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:14:42.716799"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:14:42.716799"]] +  (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 + 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", "2014-11-13 12:14:42.718047"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:14:42.718047"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:14:42.719923"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:14:42.719923"]] +  (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 + 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", "2014-11-13 12:14:42.720983"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:14:42.720983"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:14:42.722655"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:14:42.722655"]] +  (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 + 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", "2014-11-13 12:14:42.723713"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:14:42.723713"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:14:42.725353"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:14:42.725353"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:14:42.726051"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:14:42.726051"]] +  (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 + 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", "2014-11-13 12:14:42.727160"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:14:42.729990"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:14:42.729990"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:14:42.730894"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:14:42.730894"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:14:42.731998"]] +  (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.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:14:42.733942"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:14:42.733942"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:14:42.734723"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:14:42.734723"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:14:42.735822"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-13 12:14:42.737786"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-11-13 12:14:42.737786"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-11-13 12:14:42.738565"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (1.5ms) 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.1ms) select sqlite_version(*) +  (0.9ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid") +  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) +  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326') +  (0.2ms) begin transaction +Processing by AuthenticatedController#index as HTML + Rendered text template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:16:38.342182"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:16:38.342182"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 16ms (ActiveRecord: 1.3ms) +  (1.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 + 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", "2014-11-13 12:16:38.350643"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:16:38.350643"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.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.1ms) SAVEPOINT active_record_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", "2014-11-13 12:16:38.355533"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:16:38.355533"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:16:38.367965"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:16:38.367965"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:16:38.368956"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:16:38.368956"]] +  (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 + 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", "2014-11-13 12:16:38.370547"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:16:38.372750"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:16:38.372750"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:16:38.373557"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:16:38.373557"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:16:38.374705"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:16:38.376789"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:16:38.376789"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:16:38.377651"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:16:38.377651"]] +  (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 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-13 12:16:38.378804"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:16:38.380663"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:16:38.380663"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2014-11-13 12:16:38.383488"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:16:38.383488"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:16:38.385677"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:16:38.385677"]] +  (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 + 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", "2014-11-13 12:16:38.386747"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:16:38.386747"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:16:38.388646"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:16:38.388646"]] +  (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 + 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", "2014-11-13 12:16:38.389955"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:16:38.389955"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-13 12:16:38.392841"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-13 12:16:38.392841"]] +  (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 + 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", "2014-11-13 12:16:38.394152"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-13 12:16:38.394152"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-13 12:16:38.396043"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-11-13 12:16:38.396043"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-11-13 12:16:38.396738"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +Processing by AuthenticatedController#index as JS + Rendered text template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 6ms (Views: 6.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.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", "2014-11-21 22:27:09.307624"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.307624"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 25ms (ActiveRecord: 1.5ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.313166"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.313166"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.316699"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.316699"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 2ms (Views: 2.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.7ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-21 22:27:09.336665"], ["uid", 0], ["updated_at", "2014-11-21 22:27:09.336665"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1 +  (0.4ms) rollback transaction +  (0.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", "2014-11-21 22:27:09.346455"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.346455"]] +  (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.0ms) 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", "2014-11-21 22:27:09.350630"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.350630"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.354448"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.354448"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.355947"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.355947"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.358004"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.358004"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.359284"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.359284"]] +  (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", "2014-11-21 22:27:09.361258"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.361258"]] +  (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", "2014-11-21 22:27:09.362894"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.362894"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.365187"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.365187"]] +  (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", "2014-11-21 22:27:09.366286"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.366286"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-21 22:27:09.368479"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.370973"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.370973"]] +  (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", "2014-11-21 22:27:09.372306"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.372306"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-21 22:27:09.373815"]] +  (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.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.376125"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.376125"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.377146"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.377146"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-21 22:27:09.378512"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.380596"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-11-21 22:27:09.380596"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-11-21 22:27:09.381541"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438455335"], ["created_at", "2015-07-31 18:55:35.328787"], ["updated_at", "2015-07-31 18:55:35.328787"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.238252"], ["updated_at", "2017-04-26 15:39:34.238252"]] + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438282535"], ["created_at", "2015-07-31 18:55:35.334460"], ["updated_at", "2015-07-31 18:55:35.334460"]] +  (0.6ms) commit transaction +  (0.3ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 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", "1438541735"], ["updated_at", "2015-07-31 18:55:35.350623"], ["id", 1]] +  (0.6ms) commit transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.1ms) begin transaction + SQL (0.3ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 1]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438282535"], ["created_at", "2015-07-31 18:55:35.362905"], ["updated_at", "2015-07-31 18:55:35.362905"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.2ms) 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", "1438541735"], ["updated_at", "2015-07-31 18:55:35.365598"], ["id", 2]] +  (0.6ms) commit transaction +  (0.0ms) rollback transaction + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 2]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "created_at", "updated_at") VALUES (?, ?, ?) [["synced_id", 0], ["created_at", "2015-07-31 18:55:35.373246"], ["updated_at", "2015-07-31 18:55:35.373246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.2ms) ROLLBACK -  (0.0ms) BEGIN + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:55:35.382389"], ["updated_at", "2015-07-31 18:55:35.382389"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 18:55:35.383778"], ["updated_at", "2015-07-31 18:55:35.383778"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.241211"], ["updated_at", "2017-04-26 15:39:34.241211"]] + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) 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-07-31 18:55:35.385555"], ["id", 4]]  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:55:35.389153"], ["updated_at", "2015-07-31 18:55:35.389153"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 18:55:35.390422"], ["updated_at", "2015-07-31 18:55:35.390422"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) 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-07-31 18:55:35.392520"], ["id", 4]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 4]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:55:35.395803"], ["updated_at", "2015-07-31 18:55:35.395803"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 18:55:35.397063"], ["updated_at", "2015-07-31 18:55:35.397063"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) LIMIT 1 + SQL (0.0ms) 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-07-31 18:55:35.398686"], ["id", 4]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 4]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:55:35.401232"], ["updated_at", "2015-07-31 18:55:35.401232"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:55:35.405572"], ["updated_at", "2015-07-31 18:55:35.405572"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:55:35.408455"], ["updated_at", "2015-07-31 18:55:35.408455"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:55:35.410310"], ["updated_at", "2015-07-31 18:55:35.410310"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:55:35.413291"], ["updated_at", "2015-07-31 18:55:35.413291"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.243552"], ["updated_at", "2017-04-26 15:39:34.243552"]] + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:55:35.415024"], ["updated_at", "2015-07-31 18:55:35.415024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) ROLLBACK -  (0.6ms) BEGIN +  (0.5ms) rollback transaction +  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.247047"], ["updated_at", "2017-04-26 15:39:34.247047"]] + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:55:35.418043"], ["updated_at", "2015-07-31 18:55:35.418043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.249351"], ["updated_at", "2017-04-26 15:39:34.249351"]] + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:55:35.419880"], ["updated_at", "2015-07-31 18:55:35.419880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) ROLLBACK -  (0.0ms) BEGIN +  (0.4ms) rollback transaction +  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.252257"], ["updated_at", "2017-04-26 15:39:34.252257"]] + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1 + SQL (0.2ms) 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-07-31 18:55:35.422828"], ["updated_at", "2015-07-31 18:55:35.422828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" IS NULL AND "accounts"."id" != 3) LIMIT 1 + SQL (0.2ms) 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-07-31 18:55:35.424202"], ["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 3]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) 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.7ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) 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.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML + 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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-04-26 15:39:34.253789"], ["updated_at", "2017-04-26 15:39:34.253789"]] + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:55:35.449744"], ["updated_at", "2015-07-31 18:55:35.449744"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.4ms) 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"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:55:35.455293"], ["updated_at", "2015-07-31 18:55:35.455293"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) 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"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:55:35.461756"], ["updated_at", "2015-07-31 18:55:35.461756"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms) +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.794870"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 18:57:06.794870"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 24ms (ActiveRecord: 1.6ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.800448"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 18:57:06.800448"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.804416"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 18:57:06.804416"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.1ms) 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 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "synced_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-07-31 18:57:06.852098"], ["synced_id", 0], ["updated_at", "2015-07-31 18:57:06.852098"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.863333"], ["oauth_access_token", "token"], ["oauth_expires_at", 1438455426], ["oauth_refresh_token", "refresh_token"], ["synced_id", 123], ["updated_at", "2015-07-31 18:57:06.863333"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.866602"], ["oauth_access_token", "token"], ["oauth_expires_at", "1438282626"], ["oauth_refresh_token", "refresh_token"], ["synced_id", 123], ["updated_at", "2015-07-31 18:57:06.866602"]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction +  (0.2ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 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", "1438541826"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-07-31 18:57:06.870763"]] +  (0.6ms) commit transaction +  (0.0ms) rollback transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 1]] +  (0.7ms) commit transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.876673"], ["oauth_access_token", "token"], ["oauth_expires_at", "1438282626"], ["oauth_refresh_token", "refresh_token"], ["synced_id", 123], ["updated_at", "2015-07-31 18:57:06.876673"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.1ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1438541826"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-07-31 18:57:06.879226"]] +  (0.5ms) commit transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 2]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.883072"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 18:57:06.883072"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.886587"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 18:57:06.886587"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.889843"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 18:57:06.889843"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.891703"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 18:57:06.891703"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.894307"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 18:57:06.894307"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.895833"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 18:57:06.895833"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.898224"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 18:57:06.898224"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.899660"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 18:57:06.899660"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.902401"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 18:57:06.902401"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.903685"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 18:57:06.903685"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 AND "accounts"."id" != 4) LIMIT 1 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 4 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-07-31 18:57:06.905419"]] +  (0.0ms) RELEASE SAVEPOINT active_record_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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.907847"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 18:57:06.907847"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.908919"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 18:57:06.908919"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 AND "accounts"."id" != 4) LIMIT 1 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 4 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-07-31 18:57:06.910714"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 4]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.913355"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 18:57:06.913355"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.914554"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 18:57:06.914554"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 AND "accounts"."id" != 4) LIMIT 1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 4 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-07-31 18:57:06.916095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 4]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 18) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-04-26 15:39:34.255910"], ["id", 18]] + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-07-31 18:57:06.922334"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-07-31 18:57:06.922334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) ROLLBACK -  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.258865"], ["updated_at", "2017-04-26 15:39:34.258865"]] + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" IS NULL AND "accounts"."id" != 3) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 3 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-07-31 18:57:06.923533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 3]] +  (0.5ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) 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 8ms (Views: 7.4ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) 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.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML + Rendered text template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1 + SQL (0.4ms) 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-07-31 18:57:11.409240"], ["updated_at", "2015-07-31 18:57:11.409240"]] +  (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"."synced_id" IS NULL 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", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2015-07-31 18:57:11.411537"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "created_at", "updated_at") VALUES (?, ?, ?) [["synced_id", 0], ["created_at", "2015-07-31 18:57:11.421886"], ["updated_at", "2015-07-31 18:57:11.421886"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-04-26 15:39:34.260527"], ["updated_at", "2017-04-26 15:39:34.260527"]] + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438455431"], ["created_at", "2015-07-31 18:57:11.443650"], ["updated_at", "2015-07-31 18:57:11.443650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438282631"], ["created_at", "2015-07-31 18:57:11.446538"], ["updated_at", "2015-07-31 18:57:11.446538"]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction +  (0.2ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 1) LIMIT 1 + SQL (0.2ms) 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", "1438541831"], ["updated_at", "2015-07-31 18:57:11.450827"], ["id", 1]] +  (0.5ms) commit transaction +  (0.0ms) rollback transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.1ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 1]] +  (0.5ms) commit transaction +  (0.1ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438282631"], ["created_at", "2015-07-31 18:57:11.456238"], ["updated_at", "2015-07-31 18:57:11.456238"]] +  (0.7ms) commit transaction +  (0.1ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 2) 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", "1438541831"], ["updated_at", "2015-07-31 18:57:11.460315"], ["id", 2]] +  (0.6ms) commit transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 2]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:57:11.465417"], ["updated_at", "2015-07-31 18:57:11.465417"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 18:57:11.466972"], ["updated_at", "2015-07-31 18:57:11.466972"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) 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-07-31 18:57:11.469311"], ["id", 4]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:57:11.472185"], ["updated_at", "2015-07-31 18:57:11.472185"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 18:57:11.473505"], ["updated_at", "2015-07-31 18:57:11.473505"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) 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-07-31 18:57:11.475326"], ["id", 4]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 4]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:57:11.477684"], ["updated_at", "2015-07-31 18:57:11.477684"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 18:57:11.479081"], ["updated_at", "2015-07-31 18:57:11.479081"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) LIMIT 1 + SQL (0.0ms) 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-07-31 18:57:11.480859"], ["id", 4]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 4]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:57:11.483634"], ["updated_at", "2015-07-31 18:57:11.483634"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:57:11.487182"], ["updated_at", "2015-07-31 18:57:11.487182"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:57:11.490151"], ["updated_at", "2015-07-31 18:57:11.490151"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:57:11.491892"], ["updated_at", "2015-07-31 18:57:11.491892"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:57:11.495307"], ["updated_at", "2015-07-31 18:57:11.495307"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:57:11.497134"], ["updated_at", "2015-07-31 18:57:11.497134"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 18:57:11.499534"], ["updated_at", "2015-07-31 18:57:11.499534"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:57:11.501198"], ["updated_at", "2015-07-31 18:57:11.501198"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) 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"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:57:11.507079"], ["updated_at", "2015-07-31 18:57:11.507079"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:57:11.512875"], ["updated_at", "2015-07-31 18:57:11.512875"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 18:57:11.519192"], ["updated_at", "2015-07-31 18:57:11.519192"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms) +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.3ms) 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.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 AND "accounts"."id" != 20) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-04-26 15:39:34.262841"], ["id", 20]] + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.711269"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:18:24.711269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 20]] -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN +Redirected to http://test.host/ +Completed 302 Found in 30ms (ActiveRecord: 1.9ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.266246"], ["updated_at", "2017-04-26 15:39:34.266246"]] + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.716186"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:18:24.716186"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) 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"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.720280"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:18:24.720280"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 9ms (Views: 8.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.6ms | 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.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "synced_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-07-31 19:18:24.744800"], ["synced_id", 0], ["updated_at", "2015-07-31 19:18:24.744800"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.753880"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:18:24.753880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.758276"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:18:24.758276"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.761657"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:18:24.761657"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.763320"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:18:24.763320"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.767067"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:18:24.767067"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.768582"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:18:24.768582"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.771372"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:18:24.771372"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.773040"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:18:24.773040"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.776369"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:18:24.776369"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.777698"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:18:24.777698"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 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-07-31 19:18:24.779983"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.782617"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:18:24.782617"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.783764"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:18:24.783764"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-07-31 19:18:24.785364"]] +  (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) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.788174"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:18:24.788174"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.789414"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:18:24.789414"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-07-31 19:18:24.791048"]] +  (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 Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.794178"], ["oauth_access_token", "token"], ["oauth_expires_at", "1438283904"], ["oauth_refresh_token", "refresh_token"], ["synced_id", 123], ["updated_at", "2015-07-31 19:18:24.794178"]] +  (0.5ms) commit transaction +  (0.2ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 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", "1438543104"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-07-31 19:18:24.796887"]] +  (0.5ms) commit transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 1]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.801082"], ["oauth_access_token", "token"], ["oauth_expires_at", "1438283904"], ["oauth_refresh_token", "refresh_token"], ["synced_id", 123], ["updated_at", "2015-07-31 19:18:24.801082"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1438543104"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-07-31 19:18:24.804229"]] +  (0.6ms) commit transaction +  (0.1ms) rollback transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 2]] +  (0.3ms) commit transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.809311"], ["oauth_access_token", "token"], ["oauth_expires_at", 1438456704], ["oauth_refresh_token", "refresh_token"], ["synced_id", 123], ["updated_at", "2015-07-31 19:18:24.809311"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:18:24.812498"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-07-31 19:18:24.812498"]] +  (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"."synced_id" IS NULL AND "accounts"."id" != 3) LIMIT 1 + SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 3 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-07-31 19:18:24.813815"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 3]] +  (0.4ms) 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.3ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.4ms) 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.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"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:18:29.669739"], ["updated_at", "2015-07-31 19:18:29.669739"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 29ms (ActiveRecord: 1.8ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-04-26 15:39:34.267796"], ["updated_at", "2017-04-26 15:39:34.267796"]] + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:18:29.677032"], ["updated_at", "2015-07-31 19:18:29.677032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 22) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-04-26 15:39:34.270013"], ["id", 22]] + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:18:29.682924"], ["updated_at", "2015-07-31 19:18:29.682924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 22]] -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms) +Completed 200 OK in 1ms (Views: 0.5ms | 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 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) +  (0.0ms) 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 -  (0.1ms) BEGIN +  (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 -  (0.0ms) BEGIN +  (0.1ms) rollback transaction +  (0.0ms) 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.2ms | ActiveRecord: 0.0ms) -  (0.0ms) ROLLBACK +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" 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-07-31 19:18:29.722694"], ["updated_at", "2015-07-31 19:18:29.722694"]] +  (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"."synced_id" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (0.5ms) 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-07-31 19:18:29.725465"], ["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.3ms) rollback transaction +  (0.0ms) begin transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "created_at", "updated_at") VALUES (?, ?, ?) [["synced_id", 0], ["created_at", "2015-07-31 19:18:29.732112"], ["updated_at", "2015-07-31 19:18:29.732112"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438283909"], ["created_at", "2015-07-31 19:18:29.742740"], ["updated_at", "2015-07-31 19:18:29.742740"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction +  (0.2ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 1) LIMIT 1 + SQL (0.2ms) 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", "1438543109"], ["updated_at", "2015-07-31 19:18:29.746811"], ["id", 1]] +  (0.5ms) commit transaction +  (0.1ms) rollback transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 1]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438283909"], ["created_at", "2015-07-31 19:18:29.752350"], ["updated_at", "2015-07-31 19:18:29.752350"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.1ms) 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", "1438543109"], ["updated_at", "2015-07-31 19:18:29.755040"], ["id", 2]] +  (0.4ms) commit transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 2]] +  (0.3ms) commit transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438456709"], ["created_at", "2015-07-31 19:18:29.758977"], ["updated_at", "2015-07-31 19:18:29.758977"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:18:29.765813"], ["updated_at", "2015-07-31 19:18:29.765813"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 19:18:29.767291"], ["updated_at", "2015-07-31 19:18:29.767291"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) 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-07-31 19:18:29.769225"], ["id", 4]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:18:29.772434"], ["updated_at", "2015-07-31 19:18:29.772434"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 19:18:29.774432"], ["updated_at", "2015-07-31 19:18:29.774432"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) 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-07-31 19:18:29.776645"], ["id", 4]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 4]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:18:29.780284"], ["updated_at", "2015-07-31 19:18:29.780284"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 19:18:29.782052"], ["updated_at", "2015-07-31 19:18:29.782052"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) 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-07-31 19:18:29.784698"], ["id", 4]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 4]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:18:29.788105"], ["updated_at", "2015-07-31 19:18:29.788105"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:18:29.792645"], ["updated_at", "2015-07-31 19:18:29.792645"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:18:29.795784"], ["updated_at", "2015-07-31 19:18:29.795784"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:18:29.797646"], ["updated_at", "2015-07-31 19:18:29.797646"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:18:29.800735"], ["updated_at", "2015-07-31 19:18:29.800735"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:18:29.803016"], ["updated_at", "2015-07-31 19:18:29.803016"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:18:29.805867"], ["updated_at", "2015-07-31 19:18:29.805867"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:18:29.808331"], ["updated_at", "2015-07-31 19:18:29.808331"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.3ms) begin transaction +Processing by AuthenticatedController#index as HTML + Rendered text template (0.0ms) +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as JS +Filter chain halted as :authenticate_account! rendered or redirected +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.238631"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:23:00.238631"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.245910"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:23:00.245910"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 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-07-31 19:23:00.251225"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (2.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.257257"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:23:00.257257"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.258568"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:23:00.258568"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-07-31 19:23:00.260331"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.262872"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:23:00.262872"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.263951"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:23:00.263951"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-07-31 19:23:00.265365"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.267953"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:23:00.267953"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.271265"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:23:00.271265"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.273965"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:23:00.273965"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.275348"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:23:00.275348"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.278060"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:23:00.278060"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.279452"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:23:00.279452"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.281586"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:23:00.281586"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.283000"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:23:00.283000"]] +  (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"."synced_id" IS NULL LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.285295"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-07-31 19:23:00.285295"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" IS NULL AND "accounts"."id" != 1) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-07-31 19:23:00.286320"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.289494"], ["oauth_access_token", "token"], ["oauth_expires_at", "1438284180"], ["oauth_refresh_token", "refresh_token"], ["synced_id", 123], ["updated_at", "2015-07-31 19:23:00.289494"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction +  (0.2ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 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", "1438543380"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-07-31 19:23:00.298189"]] +  (0.5ms) commit transaction +  (0.0ms) rollback transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 1]] +  (0.5ms) commit transaction +  (0.1ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.303740"], ["oauth_access_token", "token"], ["oauth_expires_at", "1438284180"], ["oauth_refresh_token", "refresh_token"], ["synced_id", 123], ["updated_at", "2015-07-31 19:23:00.303740"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1438543380"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-07-31 19:23:00.306396"]] +  (0.4ms) commit transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 2]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.310253"], ["oauth_access_token", "token"], ["oauth_expires_at", 1438456980], ["oauth_refresh_token", "refresh_token"], ["synced_id", 123], ["updated_at", "2015-07-31 19:23:00.310253"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "synced_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-07-31 19:23:00.315102"], ["synced_id", 0], ["updated_at", "2015-07-31 19:23:00.315102"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (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"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.332513"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:23:00.332513"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.336595"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:23:00.336595"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:23:00.340215"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:23:00.340215"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1 + SQL (0.4ms) 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-07-31 19:23:04.473710"], ["updated_at", "2015-07-31 19:23:04.473710"]] +  (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"."synced_id" 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-07-31 19:23:04.476007"], ["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.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:23:04.482695"], ["updated_at", "2015-07-31 19:23:04.482695"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 19:23:04.484129"], ["updated_at", "2015-07-31 19:23:04.484129"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 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-07-31 19:23:04.487471"], ["id", 2]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:23:04.491277"], ["updated_at", "2015-07-31 19:23:04.491277"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 19:23:04.492634"], ["updated_at", "2015-07-31 19:23:04.492634"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.0ms) 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-07-31 19:23:04.494395"], ["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.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"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:23:04.497133"], ["updated_at", "2015-07-31 19:23:04.497133"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 19:23:04.498406"], ["updated_at", "2015-07-31 19:23:04.498406"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.0ms) 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-07-31 19:23:04.500250"], ["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.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"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:23:04.502800"], ["updated_at", "2015-07-31 19:23:04.502800"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:23:04.506247"], ["updated_at", "2015-07-31 19:23:04.506247"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:23:04.508973"], ["updated_at", "2015-07-31 19:23:04.508973"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:23:04.510626"], ["updated_at", "2015-07-31 19:23:04.510626"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:23:04.513385"], ["updated_at", "2015-07-31 19:23:04.513385"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:23:04.515729"], ["updated_at", "2015-07-31 19:23:04.515729"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:23:04.518746"], ["updated_at", "2015-07-31 19:23:04.518746"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:23:04.520825"], ["updated_at", "2015-07-31 19:23:04.520825"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438284184"], ["created_at", "2015-07-31 19:23:04.523727"], ["updated_at", "2015-07-31 19:23:04.523727"]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction +  (0.2ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 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", "1438543384"], ["updated_at", "2015-07-31 19:23:04.532409"], ["id", 1]] +  (0.7ms) commit transaction +  (0.0ms) rollback transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 1]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438284184"], ["created_at", "2015-07-31 19:23:04.538399"], ["updated_at", "2015-07-31 19:23:04.538399"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.1ms) 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", "1438543384"], ["updated_at", "2015-07-31 19:23:04.541374"], ["id", 2]] +  (0.5ms) commit transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 2]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438456984"], ["created_at", "2015-07-31 19:23:04.545388"], ["updated_at", "2015-07-31 19:23:04.545388"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "created_at", "updated_at") VALUES (?, ?, ?) [["synced_id", 0], ["created_at", "2015-07-31 19:23:04.553766"], ["updated_at", "2015-07-31 19:23:04.553766"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1 +  (0.4ms) 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.0ms) begin transaction +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms) +Completed 200 OK in 1ms (Views: 1.2ms | 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"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:23:04.597009"], ["updated_at", "2015-07-31 19:23:04.597009"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:23:04.602339"], ["updated_at", "2015-07-31 19:23:04.602339"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) 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"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:23:04.607598"], ["updated_at", "2015-07-31 19:23:04.607598"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (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 0ms (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 2ms (Views: 2.3ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) 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.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) 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.2ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.3ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +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.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 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as HTML +Filter chain halted as :authenticate_account! rendered or redirected +Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.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 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 6ms (Views: 5.7ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.235212"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:36:35.235212"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 26ms (ActiveRecord: 1.9ms) +  (2.0ms) 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"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.243647"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:36:35.243647"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.3ms) 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"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.249080"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:36:35.249080"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.253763"], ["oauth_access_token", "token"], ["oauth_expires_at", 1438457795], ["oauth_refresh_token", "refresh_token"], ["synced_id", 123], ["updated_at", "2015-07-31 19:36:35.253763"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.257535"], ["oauth_access_token", "token"], ["oauth_expires_at", "1438284995"], ["oauth_refresh_token", "refresh_token"], ["synced_id", 123], ["updated_at", "2015-07-31 19:36:35.257535"]] +  (0.6ms) commit transaction +  (0.3ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 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", "1438544195"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-07-31 19:36:35.262108"]] +  (0.5ms) commit transaction + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" +  (0.1ms) begin transaction + SQL (0.4ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 1]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.267981"], ["oauth_access_token", "token"], ["oauth_expires_at", "1438284995"], ["oauth_refresh_token", "refresh_token"], ["synced_id", 123], ["updated_at", "2015-07-31 19:36:35.267981"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1438544195"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-07-31 19:36:35.270298"]] +  (0.4ms) commit transaction +  (0.0ms) rollback transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]] + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 2]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" 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-07-31 19:36:35.279903"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-07-31 19:36:35.279903"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" IS NULL AND "accounts"."id" != 3) LIMIT 1 + SQL (0.3ms) UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 3 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-07-31 19:36:35.281215"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 3]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.284394"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:36:35.284394"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.285703"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:36:35.285703"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) LIMIT 1 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 4 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-07-31 19:36:35.288341"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.291887"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:36:35.291887"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.293010"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:36:35.293010"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 AND "accounts"."id" != 4) LIMIT 1 + SQL (0.1ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 4 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-07-31 19:36:35.294366"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 4]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.296465"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:36:35.296465"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.297466"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:36:35.297466"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 AND "accounts"."id" != 4) LIMIT 1 + SQL (0.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 4 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2015-07-31 19:36:35.299240"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 4]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.302187"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:36:35.302187"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.7ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.306901"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:36:35.306901"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.311262"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:36:35.311262"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.312846"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:36:35.312846"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.315082"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:36:35.315082"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.316485"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:36:35.316485"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.318880"], ["provider", "bookingsync"], ["synced_id", 456], ["updated_at", "2015-07-31 19:36:35.318880"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = 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"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "synced_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-07-31 19:36:35.320341"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["synced_id", 123], ["updated_at", "2015-07-31 19:36:35.320341"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "synced_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-07-31 19:36:35.324945"], ["synced_id", 0], ["updated_at", "2015-07-31 19:36:35.324945"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1 +  (0.4ms) rollback transaction +  (0.3ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.5ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438457800"], ["created_at", "2015-07-31 19:36:40.069756"], ["updated_at", "2015-07-31 19:36:40.069756"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438285000"], ["created_at", "2015-07-31 19:36:40.075088"], ["updated_at", "2015-07-31 19:36:40.075088"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction +  (0.2ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 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", "1438544200"], ["updated_at", "2015-07-31 19:36:40.086253"], ["id", 1]] +  (0.6ms) commit transaction +  (0.0ms) rollback transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]] + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 1]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1438285000"], ["created_at", "2015-07-31 19:36:40.096620"], ["updated_at", "2015-07-31 19:36:40.096620"]] +  (0.5ms) commit transaction +  (0.1ms) begin transaction + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 2) LIMIT 1 + SQL (0.2ms) 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", "1438544200"], ["updated_at", "2015-07-31 19:36:40.100522"], ["id", 2]] +  (0.6ms) commit transaction + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) begin transaction + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = ? [["id", 2]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1 + SQL (0.2ms) 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-07-31 19:36:40.104867"], ["updated_at", "2015-07-31 19:36:40.104867"]] +  (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"."synced_id" IS NULL AND "accounts"."id" != 3) 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-07-31 19:36:40.106580"], ["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 3]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:36:40.110006"], ["updated_at", "2015-07-31 19:36:40.110006"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 19:36:40.111863"], ["updated_at", "2015-07-31 19:36:40.111863"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) 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-07-31 19:36:40.115122"], ["id", 4]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:36:40.118157"], ["updated_at", "2015-07-31 19:36:40.118157"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 19:36:40.119544"], ["updated_at", "2015-07-31 19:36:40.119544"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) 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-07-31 19:36:40.121405"], ["id", 4]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 4]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:36:40.124325"], ["updated_at", "2015-07-31 19:36:40.124325"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2015-07-31 19:36:40.125737"], ["updated_at", "2015-07-31 19:36:40.125737"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 4) LIMIT 1 + SQL (0.0ms) 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-07-31 19:36:40.127969"], ["id", 4]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 4]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:36:40.130940"], ["updated_at", "2015-07-31 19:36:40.130940"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:36:40.134489"], ["updated_at", "2015-07-31 19:36:40.134489"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "accounts" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:36:40.137550"], ["updated_at", "2015-07-31 19:36:40.137550"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:36:40.139441"], ["updated_at", "2015-07-31 19:36:40.139441"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:36:40.142971"], ["updated_at", "2015-07-31 19:36:40.142971"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:36:40.145658"], ["updated_at", "2015-07-31 19:36:40.145658"]] +  (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"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2015-07-31 19:36:40.148838"], ["updated_at", "2015-07-31 19:36:40.148838"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.0ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:36:40.150614"], ["updated_at", "2015-07-31 19:36:40.150614"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) 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" ("synced_id", "created_at", "updated_at") VALUES (?, ?, ?) [["synced_id", 0], ["created_at", "2015-07-31 19:36:40.161046"], ["updated_at", "2015-07-31 19:36:40.161046"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#failure as HTML + Rendered /Users/seb/Work/WebSites/BookingSync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms) +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:36:40.192490"], ["updated_at", "2015-07-31 19:36:40.192490"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.3ms) 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"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:36:40.200454"], ["updated_at", "2015-07-31 19:36:40.200454"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = ? AND "accounts"."provider" = ? LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2015-07-31 19:36:40.207660"], ["updated_at", "2015-07-31 19:36:40.207660"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.3ms) 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#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 AuthenticatedController#index as JS + Rendered text template (0.0ms) +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 + 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.0ms) rollback transaction +  (0.1ms) begin transaction +Processing by AuthenticatedController#index as HTML +Redirected to http://test.host/auth/bookingsync/?account_id= +Filter chain halted as :authenticate_account! rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +Processing by AuthenticatedController#index as 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.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK  (0.0ms) BEGIN +  (0.0ms) ROLLBACK +  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK  (0.0ms) BEGIN -  (0.0ms) ROLLBACK -  (0.0ms) BEGIN -  (0.0ms) ROLLBACK -  (0.0ms) BEGIN +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN +Processing by SessionsController#failure as HTML + Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by SessionsController#failure as HTML + Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms) +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] + Account Load (0.5ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]  (0.1ms) SAVEPOINT active_record_1 - Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.571200"], ["updated_at", "2017-04-26 15:41:50.571200"]] + Account Exists (0.4ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:16:46.131435"], ["updated_at", "2017-06-14 21:16:46.131435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ -Completed 302 Found in 33ms (ActiveRecord: 4.5ms) +Completed 302 Found in 30ms (ActiveRecord: 6.9ms)  (0.1ms) ROLLBACK -  (0.0ms) BEGIN +  (0.1ms) BEGIN Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.580496"], ["updated_at", "2017-04-26 15:41:50.580496"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/ -Completed 302 Found in 4ms (ActiveRecord: 0.7ms) + SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:16:46.137214"], ["updated_at", "2017-06-14 21:16:46.137214"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK -  (0.0ms) BEGIN +  (0.1ms) BEGIN Processing by SessionsController#create as HTML Parameters: {"provider"=>"bookingsync"} - Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.588669"], ["updated_at", "2017-04-26 15:41:50.588669"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -Redirected to http://test.host/admin -Completed 302 Found in 4ms (ActiveRecord: 0.7ms) + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:16:46.142149"], ["updated_at", "2017-06-14 21:16:46.142149"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK -  (0.0ms) BEGIN -Processing by SessionsController#failure as HTML - Rendered /var/www/bookingsync/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) -Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN -Processing by SessionsController#failure as HTML - Rendered /var/www/bookingsync/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.0ms) -Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK  (0.1ms) BEGIN -Processing by SessionsController#destroy as HTML -Redirected to http://test.host/signed_out -Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +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.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK -  (0.0ms) BEGIN -Processing by SessionsController#destroy as HTML -Redirected to http://test.host/ -Completed 302 Found in 0ms (ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN +  (0.1ms) BEGIN 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  (0.0ms) BEGIN -Processing by AuthenticatedController#index as HTML - Rendered text template (0.0ms) -Filter chain halted as :authenticate_account! rendered or redirected -Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) -  (0.1ms) ROLLBACK -  (0.0ms) BEGIN 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) +Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN 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.2ms | ActiveRecord: 0.0ms)  (0.0ms) ROLLBACK  (0.0ms) BEGIN + Account Load (0.4ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2017-06-14 21:16:46.159745"], ["updated_at", "2017-06-14 21:16:46.159745"]] +  (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"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1493307710"], ["created_at", "2017-04-26 15:41:50.641220"], ["updated_at", "2017-04-26 15:41:50.641220"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "synced_id" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3 [["synced_id", 0], ["updated_at", "2017-06-14 21:16:46.161300"], ["id", 4]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1  (0.1ms) ROLLBACK -  (0.0ms) BEGIN - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1493134910"], ["created_at", "2017-04-26 15:41:50.644766"], ["updated_at", "2017-04-26 15:41:50.644766"]] -  (0.3ms) COMMIT  (0.1ms) BEGIN -  (0.0ms) BEGIN - Account Exists (0.6ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 5) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1493394110"], ["updated_at", "2017-04-26 15:41:50.665555"], ["id", 5]] -  (0.4ms) COMMIT -  (0.1ms) ROLLBACK - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 5]] - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" -  (0.0ms) BEGIN - SQL (0.1ms) DELETE FROM "accounts" WHERE "accounts"."id" = $1 [["id", 5]] -  (0.3ms) COMMIT -  (0.8ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["created_at", "2017-06-14 21:16:46.169386"], ["updated_at", "2017-06-14 21:16:46.169386"]] +  (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"."synced_id" IS NULL AND "accounts"."id" != 5) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2017-06-14 21:16:46.171757"], ["id", 5]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 5]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1493134910"], ["created_at", "2017-04-26 15:41:50.674111"], ["updated_at", "2017-04-26 15:41:50.674111"]] + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497388606"], ["created_at", "2017-06-14 21:16:46.202748"], ["updated_at", "2017-06-14 21:16:46.202748"]]  (0.3ms) COMMIT  (0.1ms) BEGIN - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 6) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1493394110"], ["updated_at", "2017-04-26 15:41:50.677690"], ["id", 6]] + Account Exists (0.4ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 6) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1497647806"], ["updated_at", "2017-06-14 21:16:46.219899"], ["id", 6]]  (0.3ms) COMMIT Account Load (0.2ms) SELECT "accounts".* FROM "accounts" -  (0.0ms) BEGIN +  (0.1ms) BEGIN SQL (0.1ms) DELETE FROM "accounts" WHERE "accounts"."id" = $1 [["id", 6]]  (0.2ms) COMMIT +  (0.1ms) BEGIN + Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497388606"], ["created_at", "2017-06-14 21:16:46.224725"], ["updated_at", "2017-06-14 21:16:46.224725"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN +  (0.0ms) BEGIN + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 7) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1497647806"], ["updated_at", "2017-06-14 21:16:46.227584"], ["id", 7]] +  (0.2ms) COMMIT +  (0.1ms) ROLLBACK + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 7]] + Account Load (0.2ms) SELECT "accounts".* FROM "accounts"  (0.0ms) BEGIN -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["created_at", "2017-04-26 15:41:50.682399"], ["updated_at", "2017-04-26 15:41:50.682399"]] + SQL (0.1ms) DELETE FROM "accounts" WHERE "accounts"."id" = $1 [["id", 7]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497561406"], ["created_at", "2017-06-14 21:16:46.232285"], ["updated_at", "2017-06-14 21:16:46.232285"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:16:46.234966"], ["updated_at", "2017-06-14 21:16:46.234966"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "accounts" + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:16:46.240314"], ["updated_at", "2017-06-14 21:16:46.240314"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "accounts" +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:16:46.243492"], ["updated_at", "2017-06-14 21:16:46.243492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" IS NULL AND "accounts"."id" != 7) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2017-04-26 15:41:50.684651"], ["id", 7]] + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:16:46.245934"], ["updated_at", "2017-06-14 21:16:46.245934"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:16:46.248696"], ["updated_at", "2017-06-14 21:16:46.248696"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:16:46.250884"], ["updated_at", "2017-06-14 21:16:46.250884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 7]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:16:46.253275"], ["updated_at", "2017-06-14 21:16:46.253275"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:16:46.255413"], ["updated_at", "2017-06-14 21:16:46.255413"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK -  (0.0ms) BEGIN +  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.688553"], ["updated_at", "2017-04-26 15:41:50.688553"]] + SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:16:46.257910"], ["updated_at", "2017-06-14 21:16:46.257910"]]  (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"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-04-26 15:41:50.690386"], ["updated_at", "2017-04-26 15:41:50.690386"]] + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-14 21:16:46.259330"], ["updated_at", "2017-06-14 21:16:46.259330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.5ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 9) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-04-26 15:41:50.693897"], ["id", 9]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 18) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-06-14 21:16:46.261422"], ["id", 18]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.697394"], ["updated_at", "2017-04-26 15:41:50.697394"]] + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:16:46.264115"], ["updated_at", "2017-06-14 21:16:46.264115"]]  (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"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-04-26 15:41:50.699294"], ["updated_at", "2017-04-26 15:41:50.699294"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-14 21:16:46.265485"], ["updated_at", "2017-06-14 21:16:46.265485"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (1.3ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 20) LIMIT 1 + SQL (0.5ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-06-14 21:16:46.268945"], ["id", 20]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 20]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:16:46.273688"], ["updated_at", "2017-06-14 21:16:46.273688"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-14 21:16:46.275894"], ["updated_at", "2017-06-14 21:16:46.275894"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 22) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-06-14 21:16:46.278376"], ["id", 22]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 22]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/ +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by SessionsController#destroy as HTML +Redirected to http://test.host/signed_out +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +Processing by SessionsController#failure as HTML + Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms) +Completed 200 OK in 7ms (Views: 7.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by SessionsController#failure as HTML + Rendered /Users/seb/work/websites/bookingsync/gems/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms) +Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.4ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:18:42.884460"], ["updated_at", "2017-06-14 21:18:42.884460"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 27ms (ActiveRecord: 6.4ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.3ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:18:42.890246"], ["updated_at", "2017-06-14 21:18:42.890246"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/admin +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by SessionsController#create as HTML + Parameters: {"provider"=>"bookingsync"} + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:18:42.895715"], ["updated_at", "2017-06-14 21:18:42.895715"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/ +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 11) LIMIT 1 - SQL (0.2ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-04-26 15:41:50.701687"], ["id", 11]] + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:18:42.898728"], ["updated_at", "2017-06-14 21:18:42.898728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 11]] +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-14 21:18:42.900222"], ["updated_at", "2017-06-14 21:18:42.900222"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 5) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-06-14 21:18:42.902696"], ["id", 5]] +  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN -  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.5ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.705088"], ["updated_at", "2017-04-26 15:41:50.705088"]] + SQL (0.3ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:18:42.905710"], ["updated_at", "2017-06-14 21:18:42.905710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-04-26 15:41:50.707575"], ["updated_at", "2017-04-26 15:41:50.707575"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 13) LIMIT 1 - SQL (0.1ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-04-26 15:41:50.710236"], ["id", 13]] + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-14 21:18:42.907663"], ["updated_at", "2017-06-14 21:18:42.907663"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 7) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-06-14 21:18:42.909730"], ["id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 13]] + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 7]]  (0.1ms) ROLLBACK  (0.0ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:18:42.912556"], ["updated_at", "2017-06-14 21:18:42.912556"]] +  (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"."synced_id" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-06-14 21:18:42.914033"], ["updated_at", "2017-06-14 21:18:42.914033"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 9) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-06-14 21:18:42.915958"], ["id", 9]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 9]] +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.713940"], ["updated_at", "2017-04-26 15:41:50.713940"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:18:42.919473"], ["updated_at", "2017-06-14 21:18:42.919473"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "accounts" Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] -  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.4ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.719135"], ["updated_at", "2017-04-26 15:41:50.719135"]] +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:18:42.923440"], ["updated_at", "2017-06-14 21:18:42.923440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "accounts"  (0.1ms) ROLLBACK -  (0.0ms) BEGIN -  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.722421"], ["updated_at", "2017-04-26 15:41:50.722421"]] -  (0.5ms) RELEASE SAVEPOINT active_record_1 - Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:18:42.926179"], ["updated_at", "2017-06-14 21:18:42.926179"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]  (0.1ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.725478"], ["updated_at", "2017-04-26 15:41:50.725478"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:18:42.927976"], ["updated_at", "2017-06-14 21:18:42.927976"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK -  (0.0ms) BEGIN -  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.728489"], ["updated_at", "2017-04-26 15:41:50.728489"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:18:42.930208"], ["updated_at", "2017-06-14 21:18:42.930208"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]  (0.0ms) SAVEPOINT active_record_1 - Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.730739"], ["updated_at", "2017-04-26 15:41:50.730739"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:18:42.932102"], ["updated_at", "2017-06-14 21:18:42.932102"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) ROLLBACK -  (0.0ms) BEGIN -  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.733205"], ["updated_at", "2017-04-26 15:41:50.733205"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-06-14 21:18:42.934306"], ["updated_at", "2017-06-14 21:18:42.934306"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]] -  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.1ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 - SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.735450"], ["updated_at", "2017-04-26 15:41:50.735450"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 -  (0.0ms) ROLLBACK -  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-06-14 21:18:42.936210"], ["updated_at", "2017-06-14 21:18:42.936210"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN Account Load (0.4ms) SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 - SQL (0.2ms) INSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2017-04-26 15:41:50.771537"], ["updated_at", "2017-04-26 15:41:50.771537"]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2017-06-14 21:18:42.942636"], ["updated_at", "2017-06-14 21:18:42.942636"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 - SQL (0.2ms) UPDATE "accounts" SET "synced_id" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3 [["synced_id", 0], ["updated_at", "2017-04-26 15:41:50.773121"], ["id", 22]] -  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "accounts" SET "synced_id" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3 [["synced_id", 0], ["updated_at", "2017-06-14 21:18:42.943963"], ["id", 18]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497561522"], ["created_at", "2017-06-14 21:18:42.975380"], ["updated_at", "2017-06-14 21:18:42.975380"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497388722"], ["created_at", "2017-06-14 21:18:42.978140"], ["updated_at", "2017-06-14 21:18:42.978140"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + Account Exists (0.5ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 20) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1497647922"], ["updated_at", "2017-06-14 21:18:42.996799"], ["id", 20]] +  (0.3ms) COMMIT + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" +  (0.0ms) BEGIN + SQL (0.1ms) DELETE FROM "accounts" WHERE "accounts"."id" = $1 [["id", 20]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1497388723"], ["created_at", "2017-06-14 21:18:43.001190"], ["updated_at", "2017-06-14 21:18:43.001190"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) BEGIN + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 21) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1497647923"], ["updated_at", "2017-06-14 21:18:43.003991"], ["id", 21]] +  (0.2ms) COMMIT +  (0.1ms) ROLLBACK + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 21]] + Account Load (0.2ms) SELECT "accounts".* FROM "accounts" +  (0.1ms) BEGIN + SQL (0.2ms) DELETE FROM "accounts" WHERE "accounts"."id" = $1 [["id", 21]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.2ms) SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1 + SQL (0.2ms) INSERT INTO "accounts" ("oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["created_at", "2017-06-14 21:18:43.009146"], ["updated_at", "2017-06-14 21:18:43.009146"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Account Exists (0.3ms) SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" IS NULL AND "accounts"."id" != 22) LIMIT 1 + SQL (0.2ms) UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2017-06-14 21:18:43.010837"], ["id", 22]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 22]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +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.9ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +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.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +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 +  (0.0ms) BEGIN +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 +  (0.0ms) BEGIN +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.0ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.0ms) ROLLBACK