bookingsync-engine 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +31 -0
  4. data/app/controllers/sessions_controller.rb +18 -0
  5. data/app/views/sessions/failure.html.erb +5 -0
  6. data/config/routes.rb +5 -0
  7. data/lib/bookingsync.rb +4 -0
  8. data/lib/bookingsync/engine.rb +88 -0
  9. data/lib/bookingsync/engine/auth_helpers.rb +103 -0
  10. data/lib/bookingsync/engine/helpers.rb +15 -0
  11. data/lib/bookingsync/engine/model.rb +59 -0
  12. data/lib/bookingsync/engine/session_helpers.rb +18 -0
  13. data/lib/bookingsync/engine/token_helpers.rb +31 -0
  14. data/lib/bookingsync/engine/version.rb +3 -0
  15. data/lib/generators/bookingsync/install/install_generator.rb +16 -0
  16. data/lib/generators/bookingsync/install/templates/create_bookingsync_accounts.rb +14 -0
  17. data/spec/controllers/sessions_controller_spec.rb +57 -0
  18. data/spec/dummy/README.rdoc +28 -0
  19. data/spec/dummy/Rakefile +6 -0
  20. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  21. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  22. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  23. data/spec/dummy/app/controllers/authenticated_controller.rb +6 -0
  24. data/spec/dummy/app/controllers/home_controller.rb +4 -0
  25. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  26. data/spec/dummy/app/models/account.rb +3 -0
  27. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/spec/dummy/bin/bundle +3 -0
  29. data/spec/dummy/bin/rails +4 -0
  30. data/spec/dummy/bin/rake +4 -0
  31. data/spec/dummy/config.ru +4 -0
  32. data/spec/dummy/config/application.rb +23 -0
  33. data/spec/dummy/config/boot.rb +5 -0
  34. data/spec/dummy/config/database.yml +17 -0
  35. data/spec/dummy/config/environment.rb +5 -0
  36. data/spec/dummy/config/environments/development.rb +29 -0
  37. data/spec/dummy/config/environments/production.rb +80 -0
  38. data/spec/dummy/config/environments/test.rb +36 -0
  39. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  40. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  41. data/spec/dummy/config/initializers/inflections.rb +16 -0
  42. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  43. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  44. data/spec/dummy/config/initializers/session_store.rb +3 -0
  45. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  46. data/spec/dummy/config/locales/en.yml +23 -0
  47. data/spec/dummy/config/routes.rb +4 -0
  48. data/spec/dummy/db/development.sqlite3 +0 -0
  49. data/spec/dummy/db/migrate/20140522110326_create_accounts.rb +8 -0
  50. data/spec/dummy/db/migrate/20140522110454_add_o_auth_fields_to_accounts.rb +11 -0
  51. data/spec/dummy/db/schema.rb +29 -0
  52. data/spec/dummy/db/test.sqlite3 +0 -0
  53. data/spec/dummy/log/development.log +47 -0
  54. data/spec/dummy/log/newrelic_agent.log +21 -0
  55. data/spec/dummy/log/test.log +3080 -0
  56. data/spec/dummy/public/404.html +58 -0
  57. data/spec/dummy/public/422.html +58 -0
  58. data/spec/dummy/public/500.html +57 -0
  59. data/spec/dummy/public/favicon.ico +0 -0
  60. data/spec/fixtures/accounts.yml +17 -0
  61. data/spec/models/account_spec.rb +54 -0
  62. data/spec/spec_helper.rb +15 -0
  63. data/spec/support/omniauth.rb +13 -0
  64. metadata +237 -0
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = '15f22bcd401698bb26d4b6b9a253d5109bc02d21a31bc30ed0b44cff0fd9d8d1dea304da1ad03a9f56d2f5703daf0e050b7e6f9fbf377924e0fa931fe6fffd70'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+ get "/authenticated", to: "authenticated#index"
3
+ root to: "home#index"
4
+ end
Binary file
@@ -0,0 +1,8 @@
1
+ class CreateAccounts < ActiveRecord::Migration
2
+ def change
3
+ create_table :accounts do |t|
4
+
5
+ t.timestamps
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,11 @@
1
+ class AddOAuthFieldsToAccounts < ActiveRecord::Migration
2
+ def change
3
+ add_column :accounts, :provider, :string
4
+ add_column :accounts, :uid, :integer
5
+ add_index :accounts, :uid
6
+ add_column :accounts, :name, :string
7
+ add_column :accounts, :oauth_access_token, :string
8
+ add_column :accounts, :oauth_refresh_token, :string
9
+ add_column :accounts, :oauth_expires_at, :string
10
+ end
11
+ end
@@ -0,0 +1,29 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20140522110454) do
15
+
16
+ create_table "accounts", force: true do |t|
17
+ t.datetime "created_at"
18
+ t.datetime "updated_at"
19
+ t.string "provider"
20
+ t.integer "uid"
21
+ t.string "name"
22
+ t.string "oauth_access_token"
23
+ t.string "oauth_refresh_token"
24
+ t.string "oauth_expires_at"
25
+ end
26
+
27
+ add_index "accounts", ["uid"], name: "index_accounts_on_uid"
28
+
29
+ end
Binary file
@@ -0,0 +1,47 @@
1
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateAccounts (20140312093436)
6
+  (0.2ms) begin transaction
7
+  (0.9ms) 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)) 
8
+  (0.2ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
9
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140312093436"]]
10
+  (0.7ms) commit transaction
11
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
+  (1.4ms) 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)) 
13
+  (0.9ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
14
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
15
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
16
+  (0.1ms) SELECT version FROM "schema_migrations"
17
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436')
18
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
19
+  (0.2ms) SELECT version FROM "schema_migrations"
20
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
21
+ Migrating to CreateAccounts (20140522110326)
22
+  (0.1ms) begin transaction
23
+  (0.2ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
24
+ SQLite3::SQLException: table "accounts" already exists: CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
25
+  (0.1ms) rollback transaction
26
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
27
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
28
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
29
+ Migrating to CreateAccounts (20140522110326)
30
+  (0.1ms) begin transaction
31
+  (0.5ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
32
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140522110326"]]
33
+  (0.9ms) commit transaction
34
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
35
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
36
+ Migrating to AddOAuthFieldsToAccounts (20140522110454)
37
+  (0.1ms) begin transaction
38
+  (0.9ms) ALTER TABLE "accounts" ADD "provider" varchar(255)
39
+  (0.3ms) ALTER TABLE "accounts" ADD "uid" integer
40
+  (0.2ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
41
+  (0.3ms) ALTER TABLE "accounts" ADD "name" varchar(255)
42
+  (0.2ms) ALTER TABLE "accounts" ADD "oauth_access_token" varchar(255)
43
+  (0.3ms) ALTER TABLE "accounts" ADD "oauth_refresh_token" varchar(255)
44
+  (0.3ms) ALTER TABLE "accounts" ADD "oauth_expires_at" varchar(255)
45
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140522110454"]]
46
+  (0.7ms) commit transaction
47
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -0,0 +1,21 @@
1
+ # Logfile created on 2014-05-22 13:00:58 +0200 by logger.rb/44203
2
+ [05/22/14 13:00:58 +0200 hrmps.local (18337)] INFO : Starting the New Relic agent in "development" environment.
3
+ [05/22/14 13:00:58 +0200 hrmps.local (18337)] INFO : To prevent agent startup add a NEWRELIC_ENABLE=false environment variable or modify the "development" section of your newrelic.yml.
4
+ [05/22/14 13:00:58 +0200 hrmps.local (18337)] INFO : Reading configuration from
5
+ [05/22/14 13:00:58 +0200 hrmps.local (18337)] ERROR : Unable to read configuration file : Is a directory @ io_fread - /Users/grk/code/bookingsync-engine/spec/dummy
6
+ [05/22/14 13:00:58 +0200 hrmps.local (18337)] INFO : Enabling the Request Sampler.
7
+ [05/22/14 13:00:58 +0200 hrmps.local (18337)] INFO : Environment: development
8
+ [05/22/14 13:00:58 +0200 hrmps.local (18337)] INFO : No known dispatcher detected.
9
+ [05/22/14 13:00:58 +0200 hrmps.local (18337)] INFO : Application: development
10
+ [05/22/14 13:00:58 +0200 hrmps.local (18337)] WARN : No license key found in newrelic.yml config. This often means your newrelic.yml is missing a section for the running environment 'development'
11
+ [05/22/14 13:00:59 +0200 hrmps.local (18337)] INFO : Installing ActiveRecord instrumentation
12
+ [05/22/14 13:00:59 +0200 hrmps.local (18337)] INFO : Installing middleware-based Excon instrumentation
13
+ [05/22/14 13:00:59 +0200 hrmps.local (18337)] INFO : Installing Dalli Memcache instrumentation
14
+ [05/22/14 13:00:59 +0200 hrmps.local (18337)] INFO : Installing Mongo instrumentation
15
+ [05/22/14 13:00:59 +0200 hrmps.local (18337)] INFO : Installing Net instrumentation
16
+ [05/22/14 13:00:59 +0200 hrmps.local (18337)] INFO : Installing deferred Rack instrumentation
17
+ [05/22/14 13:00:59 +0200 hrmps.local (18337)] INFO : Installing Resque instrumentation
18
+ [05/22/14 13:00:59 +0200 hrmps.local (18337)] INFO : Installing Rails 3 Controller instrumentation
19
+ [05/22/14 13:00:59 +0200 hrmps.local (18337)] INFO : Installing Rails 3.1/3.2 view instrumentation
20
+ [05/22/14 13:00:59 +0200 hrmps.local (18337)] INFO : Installing Rails3 Error instrumentation
21
+ [05/22/14 13:00:59 +0200 hrmps.local (18337)] INFO : Finished instrumentation
@@ -0,0 +1,3080 @@
1
+  (7.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)) 
2
+  (1.1ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
3
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
4
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.2ms) SELECT version FROM "schema_migrations"
6
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436')
7
+  (1.8ms) 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)) 
8
+  (1.0ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
9
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
10
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
11
+  (0.2ms) SELECT version FROM "schema_migrations"
12
+  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436')
13
+  (1.2ms) 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)) 
14
+  (1.1ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
15
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
16
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
17
+  (0.1ms) SELECT version FROM "schema_migrations"
18
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436')
19
+  (1.4ms) 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)) 
20
+  (1.1ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
21
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
22
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
23
+  (0.3ms) SELECT version FROM "schema_migrations"
24
+  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436')
25
+  (1.3ms) 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)) 
26
+  (0.9ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
27
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
28
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
29
+  (0.1ms) SELECT version FROM "schema_migrations"
30
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436')
31
+  (1.3ms) 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)) 
32
+  (0.9ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
33
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
34
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
35
+  (0.1ms) SELECT version FROM "schema_migrations"
36
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436')
37
+  (2.7ms) 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)) 
38
+  (1.0ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
39
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
40
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
41
+  (0.1ms) SELECT version FROM "schema_migrations"
42
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436')
43
+  (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)) 
44
+  (0.9ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
45
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
46
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
47
+  (0.1ms) SELECT version FROM "schema_migrations"
48
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436')
49
+  (4.3ms) 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)) 
50
+  (1.0ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
51
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
52
+  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
53
+  (0.4ms) SELECT version FROM "schema_migrations"
54
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436')
55
+  (2.5ms) 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)) 
56
+  (0.8ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
57
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
58
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
59
+  (0.1ms) SELECT version FROM "schema_migrations"
60
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436')
61
+  (0.3ms) begin transaction
62
+  (0.1ms) SAVEPOINT active_record_1
63
+ SQL (2.8ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
64
+  (0.1ms) RELEASE SAVEPOINT active_record_1
65
+  (0.7ms) rollback transaction
66
+  (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)) 
67
+  (0.9ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
68
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
69
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
70
+  (0.2ms) SELECT version FROM "schema_migrations"
71
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436')
72
+  (0.6ms) begin transaction
73
+  (0.1ms) SAVEPOINT active_record_1
74
+ SQL (2.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
75
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
77
+  (0.1ms) SAVEPOINT active_record_1
78
+ SQL (1.1ms) 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"]]
79
+  (0.1ms) RELEASE SAVEPOINT active_record_1
80
+  (0.5ms) rollback transaction
81
+  (0.4ms) begin transaction
82
+  (0.1ms) SAVEPOINT active_record_1
83
+ SQL (2.8ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
84
+  (0.1ms) RELEASE SAVEPOINT active_record_1
85
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
86
+  (0.1ms) SAVEPOINT active_record_1
87
+ SQL (1.0ms) 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"]]
88
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89
+  (0.5ms) rollback transaction
90
+  (0.3ms) begin transaction
91
+  (0.1ms) SAVEPOINT active_record_1
92
+ SQL (2.0ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
93
+  (0.1ms) RELEASE SAVEPOINT active_record_1
94
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
95
+  (0.1ms) SAVEPOINT active_record_1
96
+ SQL (1.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"]]
97
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98
+  (2.4ms) rollback transaction
99
+  (0.3ms) begin transaction
100
+  (0.1ms) SAVEPOINT active_record_1
101
+ SQL (2.6ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
103
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
104
+  (0.1ms) SAVEPOINT active_record_1
105
+ SQL (1.1ms) 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"]]
106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
107
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
108
+  (2.2ms) rollback transaction
109
+  (0.1ms) begin transaction
110
+  (0.2ms) SAVEPOINT active_record_1
111
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
112
+  (0.1ms) RELEASE SAVEPOINT active_record_1
113
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
114
+  (0.1ms) SAVEPOINT active_record_1
115
+ 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"]]
116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
117
+  (0.5ms) rollback transaction
118
+  (0.3ms) begin transaction
119
+  (0.1ms) SAVEPOINT active_record_1
120
+ SQL (2.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
122
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
123
+  (0.1ms) SAVEPOINT active_record_1
124
+ SQL (1.1ms) 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"]]
125
+  (0.1ms) RELEASE SAVEPOINT active_record_1
126
+  (0.5ms) rollback transaction
127
+  (0.1ms) begin transaction
128
+  (0.1ms) SAVEPOINT active_record_1
129
+ SQL (0.6ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
132
+  (0.0ms) SAVEPOINT active_record_1
133
+ 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"]]
134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
135
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
136
+  (0.5ms) rollback transaction
137
+  (0.3ms) begin transaction
138
+  (0.1ms) SAVEPOINT active_record_1
139
+ SQL (2.1ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
142
+  (0.1ms) SAVEPOINT active_record_1
143
+ SQL (1.0ms) 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"]]
144
+  (0.1ms) RELEASE SAVEPOINT active_record_1
145
+  (2.1ms) rollback transaction
146
+  (0.2ms) begin transaction
147
+  (0.1ms) SAVEPOINT active_record_1
148
+ SQL (0.6ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
149
+  (0.1ms) RELEASE SAVEPOINT active_record_1
150
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
151
+  (0.0ms) SAVEPOINT active_record_1
152
+ 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"]]
153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
154
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
155
+  (0.5ms) rollback transaction
156
+  (0.1ms) begin transaction
157
+  (0.1ms) SAVEPOINT active_record_1
158
+ SQL (0.6ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
159
+  (0.1ms) RELEASE SAVEPOINT active_record_1
160
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
161
+  (0.0ms) SAVEPOINT active_record_1
162
+ SQL (0.4ms) 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"]]
163
+  (0.1ms) RELEASE SAVEPOINT active_record_1
164
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
165
+  (0.5ms) rollback transaction
166
+  (0.3ms) begin transaction
167
+  (0.1ms) SAVEPOINT active_record_1
168
+ SQL (2.0ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
169
+  (0.1ms) RELEASE SAVEPOINT active_record_1
170
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
171
+  (0.1ms) SAVEPOINT active_record_1
172
+ 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"]]
173
+  (0.1ms) RELEASE SAVEPOINT active_record_1
174
+  (2.6ms) rollback transaction
175
+  (0.1ms) begin transaction
176
+  (0.1ms) SAVEPOINT active_record_1
177
+ SQL (0.5ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
179
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
180
+  (0.1ms) SAVEPOINT active_record_1
181
+ SQL (0.4ms) 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"]]
182
+  (0.1ms) RELEASE SAVEPOINT active_record_1
183
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
184
+  (0.5ms) rollback transaction
185
+  (0.1ms) begin transaction
186
+  (0.1ms) SAVEPOINT active_record_1
187
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
188
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
190
+  (0.1ms) SAVEPOINT active_record_1
191
+ 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"]]
192
+  (0.0ms) RELEASE SAVEPOINT active_record_1
193
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
194
+  (0.5ms) rollback transaction
195
+  (0.1ms) begin transaction
196
+  (0.1ms) SAVEPOINT active_record_1
197
+ SQL (0.6ms) 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"]]
198
+  (0.1ms) RELEASE SAVEPOINT active_record_1
199
+  (0.1ms) SAVEPOINT active_record_1
200
+ SQL (0.4ms) 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]]
201
+  (0.1ms) RELEASE SAVEPOINT active_record_1
202
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
203
+  (0.6ms) rollback transaction
204
+  (0.4ms) begin transaction
205
+  (0.1ms) rollback transaction
206
+  (0.1ms) begin transaction
207
+ Processing by SessionsController#failure as HTML
208
+ Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)
209
+  (0.1ms) rollback transaction
210
+  (0.3ms) begin transaction
211
+  (0.1ms) rollback transaction
212
+  (0.1ms) begin transaction
213
+ Processing by SessionsController#failure as HTML
214
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)
215
+  (0.1ms) rollback transaction
216
+  (0.5ms) begin transaction
217
+ Processing by SessionsController#failure as HTML
218
+ Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
219
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
220
+  (0.1ms) rollback transaction
221
+  (0.1ms) begin transaction
222
+ Processing by SessionsController#failure as HTML
223
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
224
+  (0.1ms) rollback transaction
225
+  (0.3ms) begin transaction
226
+ Processing by SessionsController#destroy as HTML
227
+ Completed 500 Internal Server Error in 2ms
228
+  (0.1ms) rollback transaction
229
+  (0.3ms) begin transaction
230
+ Processing by SessionsController#destroy as HTML
231
+ Redirected to http://test.host/
232
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
233
+  (0.1ms) rollback transaction
234
+  (0.5ms) begin transaction
235
+ Processing by SessionsController#destroy as HTML
236
+ Redirected to http://test.host/
237
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
238
+  (0.1ms) rollback transaction
239
+  (0.1ms) begin transaction
240
+ Processing by SessionsController#destroy as HTML
241
+ Redirected to http://test.host/
242
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
243
+  (0.1ms) rollback transaction
244
+  (0.1ms) begin transaction
245
+ Processing by SessionsController#failure as HTML
246
+ Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
247
+  (0.1ms) rollback transaction
248
+  (0.1ms) begin transaction
249
+ Processing by SessionsController#failure as HTML
250
+ Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
251
+  (0.1ms) rollback transaction
252
+  (0.3ms) begin transaction
253
+  (0.1ms) rollback transaction
254
+  (0.1ms) begin transaction
255
+ Processing by SessionsController#destroy as HTML
256
+ Redirected to http://test.host/
257
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
258
+  (0.1ms) rollback transaction
259
+  (0.1ms) begin transaction
260
+ Processing by SessionsController#destroy as HTML
261
+ Redirected to http://test.host/
262
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
263
+  (0.1ms) rollback transaction
264
+  (0.1ms) begin transaction
265
+ Processing by SessionsController#failure as HTML
266
+ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
267
+  (0.2ms) rollback transaction
268
+  (0.1ms) begin transaction
269
+ Processing by SessionsController#failure as HTML
270
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
271
+  (0.1ms) rollback transaction
272
+  (0.4ms) begin transaction
273
+  (0.1ms) rollback transaction
274
+  (0.4ms) begin transaction
275
+ Processing by SessionsController#destroy as HTML
276
+ Redirected to http://test.host/
277
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
278
+  (0.1ms) rollback transaction
279
+  (0.1ms) begin transaction
280
+ Processing by SessionsController#destroy as HTML
281
+ Redirected to http://test.host/
282
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
283
+  (0.1ms) rollback transaction
284
+  (0.1ms) begin transaction
285
+ Processing by SessionsController#failure as HTML
286
+ Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms)
287
+  (0.1ms) rollback transaction
288
+  (0.1ms) begin transaction
289
+ Processing by SessionsController#failure as HTML
290
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
291
+  (0.1ms) rollback transaction
292
+  (0.3ms) begin transaction
293
+  (0.1ms) rollback transaction
294
+  (0.1ms) begin transaction
295
+ Processing by SessionsController#destroy as HTML
296
+ Redirected to http://test.host/
297
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
298
+  (0.1ms) rollback transaction
299
+  (0.1ms) begin transaction
300
+ Processing by SessionsController#destroy as HTML
301
+ Redirected to http://test.host/
302
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
303
+  (0.1ms) rollback transaction
304
+  (0.1ms) begin transaction
305
+ Processing by SessionsController#failure as HTML
306
+ Completed 200 OK in 6ms (Views: 6.2ms | ActiveRecord: 0.0ms)
307
+  (0.1ms) rollback transaction
308
+  (0.1ms) begin transaction
309
+ Processing by SessionsController#failure as HTML
310
+ Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
311
+  (0.1ms) rollback transaction
312
+  (0.3ms) begin transaction
313
+ Processing by SessionsController#destroy as HTML
314
+ Redirected to http://test.host/
315
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
316
+  (0.1ms) rollback transaction
317
+  (0.1ms) begin transaction
318
+ Processing by SessionsController#destroy as HTML
319
+ Redirected to http://test.host/
320
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
321
+  (0.1ms) rollback transaction
322
+  (0.1ms) begin transaction
323
+  (0.1ms) rollback transaction
324
+  (0.1ms) begin transaction
325
+ Processing by SessionsController#failure as HTML
326
+ Completed 200 OK in 7ms (Views: 7.1ms | ActiveRecord: 0.0ms)
327
+  (0.1ms) rollback transaction
328
+  (0.1ms) begin transaction
329
+ Processing by SessionsController#failure as HTML
330
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
331
+  (0.1ms) rollback transaction
332
+  (0.3ms) begin transaction
333
+  (0.1ms) rollback transaction
334
+  (0.1ms) begin transaction
335
+ Processing by SessionsController#destroy as HTML
336
+ Redirected to http://test.host/
337
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
338
+  (0.1ms) rollback transaction
339
+  (0.1ms) begin transaction
340
+ Processing by SessionsController#destroy as HTML
341
+ Redirected to http://test.host/
342
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
343
+  (0.1ms) rollback transaction
344
+  (0.1ms) begin transaction
345
+ Processing by SessionsController#failure as HTML
346
+ Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms)
347
+  (0.1ms) rollback transaction
348
+  (0.1ms) begin transaction
349
+ Processing by SessionsController#failure as HTML
350
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
351
+  (0.1ms) rollback transaction
352
+  (0.3ms) begin transaction
353
+ Processing by SessionsController#destroy as HTML
354
+ Redirected to http://test.host/
355
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
356
+  (0.1ms) rollback transaction
357
+  (0.1ms) begin transaction
358
+ Processing by SessionsController#destroy as HTML
359
+ Redirected to http://test.host/
360
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
361
+  (0.1ms) rollback transaction
362
+  (0.1ms) begin transaction
363
+  (0.1ms) rollback transaction
364
+  (0.1ms) begin transaction
365
+ Processing by SessionsController#failure as HTML
366
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)
367
+  (0.1ms) rollback transaction
368
+  (0.1ms) begin transaction
369
+ Processing by SessionsController#failure as HTML
370
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
371
+  (0.1ms) rollback transaction
372
+  (0.3ms) begin transaction
373
+ Processing by SessionsController#failure as HTML
374
+ Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
375
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms)
376
+  (0.1ms) rollback transaction
377
+  (0.1ms) begin transaction
378
+ Processing by SessionsController#failure as HTML
379
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
380
+  (0.1ms) rollback transaction
381
+  (0.1ms) begin transaction
382
+ Processing by SessionsController#destroy as HTML
383
+ Redirected to http://test.host/
384
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
385
+  (0.1ms) rollback transaction
386
+  (0.1ms) begin transaction
387
+ Processing by SessionsController#destroy as HTML
388
+ Redirected to http://test.host/
389
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
390
+  (0.1ms) rollback transaction
391
+  (0.1ms) begin transaction
392
+  (0.1ms) rollback transaction
393
+  (0.3ms) begin transaction
394
+ Processing by SessionsController#create as HTML
395
+ Parameters: {"provider"=>"bookingsync"}
396
+ Completed 500 Internal Server Error in 1ms
397
+  (0.1ms) rollback transaction
398
+  (0.1ms) begin transaction
399
+ Processing by SessionsController#failure as HTML
400
+ Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
401
+  (0.1ms) rollback transaction
402
+  (0.1ms) begin transaction
403
+ Processing by SessionsController#failure as HTML
404
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
405
+  (0.1ms) rollback transaction
406
+  (0.1ms) begin transaction
407
+ Processing by SessionsController#destroy as HTML
408
+ Redirected to http://test.host/
409
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
410
+  (0.1ms) rollback transaction
411
+  (0.1ms) begin transaction
412
+ Processing by SessionsController#destroy as HTML
413
+ Redirected to http://test.host/
414
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
415
+  (0.1ms) rollback transaction
416
+  (0.3ms) begin transaction
417
+ Processing by SessionsController#create as HTML
418
+ Parameters: {"provider"=>"bookingsync"}
419
+ Account Load (0.5ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123545 ORDER BY "accounts"."id" ASC LIMIT 1
420
+ Completed 500 Internal Server Error in 16ms
421
+  (0.1ms) rollback transaction
422
+  (0.1ms) begin transaction
423
+ Processing by SessionsController#destroy as HTML
424
+ Redirected to http://test.host/
425
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
426
+  (0.1ms) rollback transaction
427
+  (0.1ms) begin transaction
428
+ Processing by SessionsController#destroy as HTML
429
+ Redirected to http://test.host/
430
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
431
+  (0.1ms) rollback transaction
432
+  (0.1ms) begin transaction
433
+ Processing by SessionsController#failure as HTML
434
+ Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
435
+  (0.1ms) rollback transaction
436
+  (0.1ms) begin transaction
437
+ Processing by SessionsController#failure as HTML
438
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
439
+  (0.1ms) rollback transaction
440
+  (0.3ms) begin transaction
441
+  (0.1ms) SAVEPOINT active_record_1
442
+ SQL (4.8ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
443
+  (0.2ms) RELEASE SAVEPOINT active_record_1
444
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
445
+  (0.1ms) SAVEPOINT active_record_1
446
+ SQL (1.2ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"]]
447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
448
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
449
+  (0.6ms) rollback transaction
450
+  (0.1ms) begin transaction
451
+  (0.1ms) SAVEPOINT active_record_1
452
+ SQL (0.5ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
453
+  (0.1ms) RELEASE SAVEPOINT active_record_1
454
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
455
+  (0.1ms) SAVEPOINT active_record_1
456
+ SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"]]
457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
458
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
459
+  (0.4ms) rollback transaction
460
+  (0.1ms) begin transaction
461
+  (0.2ms) SAVEPOINT active_record_1
462
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
463
+  (0.1ms) RELEASE SAVEPOINT active_record_1
464
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
465
+  (0.1ms) SAVEPOINT active_record_1
466
+ SQL (0.4ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"]]
467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
468
+  (0.5ms) rollback transaction
469
+  (0.1ms) begin transaction
470
+  (0.1ms) SAVEPOINT active_record_1
471
+ SQL (0.5ms) 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"]]
472
+  (0.1ms) RELEASE SAVEPOINT active_record_1
473
+  (0.1ms) SAVEPOINT active_record_1
474
+ SQL (0.7ms) 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]]
475
+  (0.1ms) RELEASE SAVEPOINT active_record_1
476
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
477
+  (0.5ms) rollback transaction
478
+  (0.3ms) begin transaction
479
+  (0.1ms) SAVEPOINT active_record_1
480
+ SQL (2.2ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
482
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
483
+  (0.1ms) SAVEPOINT active_record_1
484
+ SQL (1.0ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"]]
485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
486
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
487
+  (1.7ms) rollback transaction
488
+  (0.1ms) begin transaction
489
+  (0.1ms) SAVEPOINT active_record_1
490
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
492
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
493
+  (0.1ms) SAVEPOINT active_record_1
494
+ SQL (0.4ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"]]
495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
496
+  (0.5ms) rollback transaction
497
+  (0.1ms) begin transaction
498
+  (0.1ms) SAVEPOINT active_record_1
499
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
500
+  (0.1ms) RELEASE SAVEPOINT active_record_1
501
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
502
+  (0.1ms) SAVEPOINT active_record_1
503
+ SQL (0.3ms) UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_refresh_token" = ? WHERE "accounts"."id" = 1 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"]]
504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
505
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
506
+  (0.5ms) rollback transaction
507
+  (0.1ms) begin transaction
508
+  (0.1ms) SAVEPOINT active_record_1
509
+ SQL (0.4ms) 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"]]
510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
511
+  (0.0ms) SAVEPOINT active_record_1
512
+ 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]]
513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
514
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
515
+  (0.5ms) rollback transaction
516
+  (0.6ms) begin transaction
517
+  (0.1ms) SAVEPOINT active_record_1
518
+ SQL (2.0ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
520
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
521
+  (0.1ms) SAVEPOINT active_record_1
522
+ SQL (1.4ms) 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"]]
523
+  (0.1ms) RELEASE SAVEPOINT active_record_1
524
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
525
+  (1.8ms) rollback transaction
526
+  (0.1ms) begin transaction
527
+  (0.1ms) SAVEPOINT active_record_1
528
+ SQL (0.5ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
529
+  (0.2ms) RELEASE SAVEPOINT active_record_1
530
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
531
+  (0.1ms) SAVEPOINT active_record_1
532
+ SQL (0.4ms) 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"]]
533
+  (0.1ms) RELEASE SAVEPOINT active_record_1
534
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
535
+  (0.4ms) rollback transaction
536
+  (0.1ms) begin transaction
537
+  (0.1ms) SAVEPOINT active_record_1
538
+ SQL (0.5ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
539
+  (0.1ms) RELEASE SAVEPOINT active_record_1
540
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
541
+  (0.1ms) SAVEPOINT active_record_1
542
+ 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"]]
543
+  (0.1ms) RELEASE SAVEPOINT active_record_1
544
+  (0.4ms) rollback transaction
545
+  (0.1ms) begin transaction
546
+  (0.1ms) SAVEPOINT active_record_1
547
+ SQL (0.5ms) 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"]]
548
+  (0.1ms) RELEASE SAVEPOINT active_record_1
549
+  (0.1ms) SAVEPOINT active_record_1
550
+ SQL (0.5ms) 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]]
551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
552
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
553
+  (0.5ms) rollback transaction
554
+  (0.3ms) begin transaction
555
+ Processing by SessionsController#create as HTML
556
+ Parameters: {"provider"=>"bookingsync"}
557
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
558
+  (0.1ms) SAVEPOINT active_record_1
559
+ 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]]
560
+  (0.1ms) RELEASE SAVEPOINT active_record_1
561
+ Redirected to http://test.host/
562
+ Completed 302 Found in 17ms (ActiveRecord: 3.3ms)
563
+  (2.0ms) rollback transaction
564
+  (0.1ms) begin transaction
565
+ Processing by SessionsController#destroy as HTML
566
+ Redirected to http://test.host/
567
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
568
+  (0.1ms) rollback transaction
569
+  (0.1ms) begin transaction
570
+ Processing by SessionsController#destroy as HTML
571
+ Redirected to http://test.host/
572
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
573
+  (0.1ms) rollback transaction
574
+  (0.1ms) begin transaction
575
+ Processing by SessionsController#failure as HTML
576
+ Completed 200 OK in 10ms (Views: 10.0ms | ActiveRecord: 0.0ms)
577
+  (0.1ms) rollback transaction
578
+  (0.1ms) begin transaction
579
+ Processing by SessionsController#failure as HTML
580
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
581
+  (0.1ms) rollback transaction
582
+  (0.3ms) begin transaction
583
+ Processing by SessionsController#create as HTML
584
+ Parameters: {"provider"=>"bookingsync"}
585
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
586
+  (0.1ms) SAVEPOINT active_record_1
587
+ SQL (3.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]]
588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
589
+ Redirected to http://test.host/
590
+ Completed 302 Found in 23ms (ActiveRecord: 5.1ms)
591
+  (2.0ms) rollback transaction
592
+  (0.1ms) begin transaction
593
+ Processing by SessionsController#create as HTML
594
+ Parameters: {"provider"=>"bookingsync"}
595
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
596
+  (0.0ms) SAVEPOINT active_record_1
597
+ 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]]
598
+  (0.1ms) RELEASE SAVEPOINT active_record_1
599
+ Redirected to http://test.host/
600
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
601
+  (0.4ms) rollback transaction
602
+  (0.1ms) begin transaction
603
+ Processing by SessionsController#destroy as HTML
604
+ Redirected to http://test.host/
605
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
606
+  (0.1ms) rollback transaction
607
+  (0.1ms) begin transaction
608
+ Processing by SessionsController#destroy as HTML
609
+ Redirected to http://test.host/
610
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
611
+  (0.1ms) rollback transaction
612
+  (0.1ms) begin transaction
613
+ Processing by SessionsController#failure as HTML
614
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)
615
+  (0.1ms) rollback transaction
616
+  (0.1ms) begin transaction
617
+ Processing by SessionsController#failure as HTML
618
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
619
+  (0.1ms) rollback transaction
620
+  (0.3ms) begin transaction
621
+ Processing by SessionsController#destroy as HTML
622
+ Redirected to http://test.host/
623
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
624
+  (0.1ms) rollback transaction
625
+  (0.1ms) begin transaction
626
+ Processing by SessionsController#destroy as HTML
627
+ Redirected to http://test.host/
628
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
629
+  (0.1ms) rollback transaction
630
+  (0.1ms) begin transaction
631
+ Processing by SessionsController#create as HTML
632
+ Parameters: {"provider"=>"bookingsync"}
633
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
634
+  (0.1ms) SAVEPOINT active_record_1
635
+ 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]]
636
+  (0.1ms) RELEASE SAVEPOINT active_record_1
637
+ Redirected to http://test.host/
638
+ Completed 302 Found in 19ms (ActiveRecord: 3.3ms)
639
+  (2.0ms) rollback transaction
640
+  (0.1ms) begin transaction
641
+ Processing by SessionsController#create as HTML
642
+ Parameters: {"provider"=>"bookingsync"}
643
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
644
+  (0.0ms) SAVEPOINT active_record_1
645
+ 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]]
646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
647
+ Redirected to http://test.host/
648
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
649
+  (0.4ms) rollback transaction
650
+  (0.1ms) begin transaction
651
+ Processing by SessionsController#create as HTML
652
+ Parameters: {"provider"=>"bookingsync"}
653
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
654
+  (0.1ms) SAVEPOINT active_record_1
655
+ 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]]
656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
657
+ Redirected to http://test.host/
658
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
659
+  (0.4ms) rollback transaction
660
+  (0.1ms) begin transaction
661
+ Processing by SessionsController#failure as HTML
662
+ Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
663
+  (0.1ms) rollback transaction
664
+  (0.1ms) begin transaction
665
+ Processing by SessionsController#failure as HTML
666
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
667
+  (0.1ms) rollback transaction
668
+  (0.4ms) begin transaction
669
+ Processing by SessionsController#create as HTML
670
+ Parameters: {"provider"=>"bookingsync"}
671
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
672
+  (0.1ms) SAVEPOINT active_record_1
673
+ SQL (3.1ms) 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]]
674
+  (0.1ms) RELEASE SAVEPOINT active_record_1
675
+ Redirected to http://test.host/
676
+ Completed 302 Found in 22ms (ActiveRecord: 4.6ms)
677
+  (0.4ms) rollback transaction
678
+  (0.1ms) begin transaction
679
+ Processing by SessionsController#create as HTML
680
+ Parameters: {"provider"=>"bookingsync"}
681
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
682
+  (0.1ms) SAVEPOINT active_record_1
683
+ SQL (0.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]]
684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
685
+ Redirected to http://test.host/
686
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
687
+  (0.4ms) rollback transaction
688
+  (0.1ms) begin transaction
689
+ Processing by SessionsController#create as HTML
690
+ Parameters: {"provider"=>"bookingsync"}
691
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
692
+  (0.1ms) SAVEPOINT active_record_1
693
+ 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]]
694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
695
+ Redirected to http://test.host/
696
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
697
+  (0.6ms) rollback transaction
698
+  (0.1ms) begin transaction
699
+ Processing by SessionsController#failure as HTML
700
+ Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms)
701
+  (0.2ms) rollback transaction
702
+  (0.1ms) begin transaction
703
+ Processing by SessionsController#failure as HTML
704
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
705
+  (0.1ms) rollback transaction
706
+  (0.1ms) begin transaction
707
+ Processing by SessionsController#destroy as HTML
708
+ Redirected to http://test.host/
709
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
710
+  (0.1ms) rollback transaction
711
+  (0.1ms) begin transaction
712
+ Processing by SessionsController#destroy as HTML
713
+ Redirected to http://test.host/
714
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
715
+  (0.1ms) rollback transaction
716
+  (0.3ms) begin transaction
717
+ Processing by SessionsController#create as HTML
718
+ Parameters: {"provider"=>"bookingsync"}
719
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
720
+  (0.1ms) SAVEPOINT active_record_1
721
+ SQL (2.1ms) 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]]
722
+  (0.1ms) RELEASE SAVEPOINT active_record_1
723
+ Redirected to http://test.host/
724
+ Completed 302 Found in 18ms (ActiveRecord: 3.4ms)
725
+  (1.7ms) rollback transaction
726
+  (0.1ms) begin transaction
727
+ Processing by SessionsController#create as HTML
728
+ Parameters: {"provider"=>"bookingsync"}
729
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
730
+  (0.1ms) SAVEPOINT active_record_1
731
+ 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]]
732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
733
+ Redirected to http://test.host/
734
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
735
+  (0.4ms) rollback transaction
736
+  (0.1ms) begin transaction
737
+ Processing by SessionsController#create as HTML
738
+ Parameters: {"provider"=>"bookingsync"}
739
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
740
+  (0.1ms) SAVEPOINT active_record_1
741
+ 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]]
742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
743
+ Redirected to http://test.host/
744
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
745
+  (0.5ms) rollback transaction
746
+  (0.1ms) begin transaction
747
+ Processing by SessionsController#destroy as HTML
748
+ Redirected to http://test.host/
749
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
750
+  (0.1ms) rollback transaction
751
+  (0.1ms) begin transaction
752
+ Processing by SessionsController#destroy as HTML
753
+ Redirected to http://test.host/
754
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
755
+  (0.2ms) rollback transaction
756
+  (0.1ms) begin transaction
757
+ Processing by SessionsController#failure as HTML
758
+ Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms)
759
+  (0.1ms) rollback transaction
760
+  (0.1ms) begin transaction
761
+ Processing by SessionsController#failure as HTML
762
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
763
+  (0.1ms) rollback transaction
764
+  (0.3ms) begin transaction
765
+ Processing by SessionsController#create as HTML
766
+ Parameters: {"provider"=>"bookingsync"}
767
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
768
+  (0.1ms) SAVEPOINT active_record_1
769
+ SQL (2.1ms) 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]]
770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
771
+ Redirected to http://test.host/
772
+ Completed 302 Found in 22ms (ActiveRecord: 3.6ms)
773
+  (0.4ms) rollback transaction
774
+  (0.1ms) begin transaction
775
+ Processing by SessionsController#create as HTML
776
+ Parameters: {"provider"=>"bookingsync"}
777
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
778
+  (0.1ms) SAVEPOINT active_record_1
779
+ 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]]
780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
781
+ Redirected to http://test.host/
782
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
783
+  (0.3ms) rollback transaction
784
+  (0.1ms) begin transaction
785
+ Processing by SessionsController#create as HTML
786
+ Parameters: {"provider"=>"bookingsync"}
787
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
788
+  (0.0ms) SAVEPOINT active_record_1
789
+ 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]]
790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
791
+ Redirected to http://test.host/
792
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
793
+  (0.5ms) rollback transaction
794
+  (0.1ms) begin transaction
795
+ Processing by SessionsController#destroy as HTML
796
+ Redirected to http://test.host/
797
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
798
+  (0.1ms) rollback transaction
799
+  (0.1ms) begin transaction
800
+ Processing by SessionsController#destroy as HTML
801
+ Redirected to http://test.host/
802
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
803
+  (0.1ms) rollback transaction
804
+  (0.1ms) begin transaction
805
+ Processing by SessionsController#failure as HTML
806
+ Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
807
+  (0.2ms) rollback transaction
808
+  (0.1ms) begin transaction
809
+ Processing by SessionsController#failure as HTML
810
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
811
+  (0.1ms) rollback transaction
812
+  (0.1ms) begin transaction
813
+  (0.1ms) SAVEPOINT active_record_1
814
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
815
+  (0.1ms) RELEASE SAVEPOINT active_record_1
816
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
817
+  (0.1ms) SAVEPOINT active_record_1
818
+ SQL (1.1ms) 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"]]
819
+  (0.1ms) RELEASE SAVEPOINT active_record_1
820
+  (0.4ms) rollback transaction
821
+  (0.1ms) begin transaction
822
+  (0.1ms) SAVEPOINT active_record_1
823
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
824
+  (0.1ms) RELEASE SAVEPOINT active_record_1
825
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
826
+  (0.1ms) SAVEPOINT active_record_1
827
+ 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"]]
828
+  (0.1ms) RELEASE SAVEPOINT active_record_1
829
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
830
+  (0.5ms) rollback transaction
831
+  (0.1ms) begin transaction
832
+  (0.1ms) SAVEPOINT active_record_1
833
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
835
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
836
+  (0.1ms) SAVEPOINT active_record_1
837
+ 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"]]
838
+  (0.1ms) RELEASE SAVEPOINT active_record_1
839
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
840
+  (0.4ms) rollback transaction
841
+  (0.1ms) begin transaction
842
+  (0.1ms) SAVEPOINT active_record_1
843
+ 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"]]
844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
845
+  (0.0ms) SAVEPOINT active_record_1
846
+ 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]]
847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
848
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
849
+  (0.4ms) rollback transaction
850
+  (0.4ms) begin transaction
851
+ Processing by SessionsController#failure as HTML
852
+ Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
853
+ Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
854
+  (0.1ms) rollback transaction
855
+  (0.1ms) begin transaction
856
+ Processing by SessionsController#failure as HTML
857
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
858
+  (0.1ms) rollback transaction
859
+  (0.1ms) begin transaction
860
+ Processing by SessionsController#destroy as HTML
861
+ Redirected to http://test.host/
862
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
863
+  (0.1ms) rollback transaction
864
+  (0.1ms) begin transaction
865
+ Processing by SessionsController#destroy as HTML
866
+ Redirected to http://test.host/
867
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
868
+  (0.2ms) rollback transaction
869
+  (0.1ms) begin transaction
870
+ Processing by SessionsController#create as HTML
871
+ Parameters: {"provider"=>"bookingsync"}
872
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
873
+  (0.1ms) SAVEPOINT active_record_1
874
+ SQL (2.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]]
875
+  (0.1ms) RELEASE SAVEPOINT active_record_1
876
+ Redirected to http://test.host/
877
+ Completed 302 Found in 17ms (ActiveRecord: 3.5ms)
878
+  (2.4ms) rollback transaction
879
+  (0.1ms) begin transaction
880
+ Processing by SessionsController#create as HTML
881
+ Parameters: {"provider"=>"bookingsync"}
882
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
883
+  (0.1ms) SAVEPOINT active_record_1
884
+ SQL (0.5ms) 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]]
885
+  (0.8ms) RELEASE SAVEPOINT active_record_1
886
+ Redirected to http://test.host/
887
+ Completed 302 Found in 5ms (ActiveRecord: 1.6ms)
888
+  (0.4ms) rollback transaction
889
+  (0.1ms) begin transaction
890
+ Processing by SessionsController#create as HTML
891
+ Parameters: {"provider"=>"bookingsync"}
892
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
893
+  (0.1ms) SAVEPOINT active_record_1
894
+ 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]]
895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
896
+ Redirected to http://test.host/
897
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
898
+  (0.4ms) rollback transaction
899
+  (0.1ms) begin transaction
900
+  (0.1ms) SAVEPOINT active_record_1
901
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
903
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
904
+  (0.0ms) SAVEPOINT active_record_1
905
+ SQL (1.0ms) 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"]]
906
+  (0.1ms) RELEASE SAVEPOINT active_record_1
907
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
908
+  (0.4ms) rollback transaction
909
+  (0.1ms) begin transaction
910
+  (0.0ms) SAVEPOINT active_record_1
911
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
912
+  (0.0ms) RELEASE SAVEPOINT active_record_1
913
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
914
+  (0.0ms) SAVEPOINT active_record_1
915
+ 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"]]
916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
917
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
918
+  (0.4ms) rollback transaction
919
+  (0.1ms) begin transaction
920
+  (0.1ms) SAVEPOINT active_record_1
921
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
922
+  (0.0ms) RELEASE SAVEPOINT active_record_1
923
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
924
+  (0.0ms) SAVEPOINT active_record_1
925
+ 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"]]
926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
927
+  (0.4ms) rollback transaction
928
+  (0.1ms) begin transaction
929
+  (0.0ms) SAVEPOINT active_record_1
930
+ 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"]]
931
+  (0.1ms) RELEASE SAVEPOINT active_record_1
932
+  (0.0ms) SAVEPOINT active_record_1
933
+ SQL (0.4ms) 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]]
934
+  (0.1ms) RELEASE SAVEPOINT active_record_1
935
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
936
+  (0.5ms) rollback transaction
937
+  (0.4ms) begin transaction
938
+ Processing by SessionsController#failure as HTML
939
+ Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
940
+ Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)
941
+  (0.1ms) rollback transaction
942
+  (0.1ms) begin transaction
943
+ Processing by SessionsController#failure as HTML
944
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
945
+  (0.1ms) rollback transaction
946
+  (0.1ms) begin transaction
947
+ Processing by SessionsController#destroy as HTML
948
+ Redirected to http://test.host/
949
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
950
+  (0.1ms) rollback transaction
951
+  (0.1ms) begin transaction
952
+ Processing by SessionsController#destroy as HTML
953
+ Redirected to http://test.host/
954
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
955
+  (0.1ms) rollback transaction
956
+  (0.1ms) begin transaction
957
+ Processing by SessionsController#create as HTML
958
+ Parameters: {"provider"=>"bookingsync"}
959
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
960
+  (0.1ms) SAVEPOINT active_record_1
961
+ SQL (2.6ms) 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]]
962
+  (0.1ms) RELEASE SAVEPOINT active_record_1
963
+ Redirected to http://test.host/
964
+ Completed 302 Found in 19ms (ActiveRecord: 3.9ms)
965
+  (100.5ms) rollback transaction
966
+  (0.1ms) begin transaction
967
+ Processing by SessionsController#create as HTML
968
+ Parameters: {"provider"=>"bookingsync"}
969
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
970
+  (0.0ms) SAVEPOINT active_record_1
971
+ 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]]
972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
973
+ Redirected to http://test.host/
974
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
975
+  (0.5ms) rollback transaction
976
+  (0.1ms) begin transaction
977
+ Processing by SessionsController#create as HTML
978
+ Parameters: {"provider"=>"bookingsync"}
979
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
980
+  (0.1ms) SAVEPOINT active_record_1
981
+ 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]]
982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
983
+ Redirected to http://test.host/
984
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
985
+  (0.4ms) rollback transaction
986
+  (0.3ms) begin transaction
987
+ Processing by SessionsController#create as HTML
988
+ Parameters: {"provider"=>"bookingsync"}
989
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
990
+  (0.1ms) SAVEPOINT active_record_1
991
+ SQL (2.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]]
992
+  (0.1ms) RELEASE SAVEPOINT active_record_1
993
+ Redirected to http://test.host/
994
+ Completed 302 Found in 17ms (ActiveRecord: 3.7ms)
995
+  (2.2ms) rollback transaction
996
+  (0.2ms) begin transaction
997
+ Processing by SessionsController#create as HTML
998
+ Parameters: {"provider"=>"bookingsync"}
999
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1000
+  (0.1ms) SAVEPOINT active_record_1
1001
+ 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]]
1002
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1003
+ Redirected to http://test.host/
1004
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1005
+  (0.4ms) rollback transaction
1006
+  (0.1ms) begin transaction
1007
+ Processing by SessionsController#create as HTML
1008
+ Parameters: {"provider"=>"bookingsync"}
1009
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1010
+  (0.0ms) SAVEPOINT active_record_1
1011
+ 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]]
1012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1013
+ Redirected to http://test.host/
1014
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1015
+  (0.4ms) rollback transaction
1016
+  (0.1ms) begin transaction
1017
+ Processing by SessionsController#destroy as HTML
1018
+ Redirected to http://test.host/
1019
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1020
+  (0.1ms) rollback transaction
1021
+  (0.1ms) begin transaction
1022
+ Processing by SessionsController#destroy as HTML
1023
+ Redirected to http://test.host/
1024
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1025
+  (0.1ms) rollback transaction
1026
+  (0.0ms) begin transaction
1027
+ Processing by SessionsController#failure as HTML
1028
+ Completed 200 OK in 14ms (Views: 13.9ms | ActiveRecord: 0.0ms)
1029
+  (0.1ms) rollback transaction
1030
+  (0.1ms) begin transaction
1031
+ Processing by SessionsController#failure as HTML
1032
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1033
+  (0.1ms) rollback transaction
1034
+  (0.3ms) begin transaction
1035
+ Processing by SessionsController#create as HTML
1036
+ Parameters: {"provider"=>"bookingsync"}
1037
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1038
+  (0.1ms) SAVEPOINT active_record_1
1039
+ SQL (2.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]]
1040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1041
+ Redirected to http://test.host/
1042
+ Completed 302 Found in 17ms (ActiveRecord: 3.7ms)
1043
+  (100.9ms) rollback transaction
1044
+  (0.1ms) begin transaction
1045
+ Processing by SessionsController#create as HTML
1046
+ Parameters: {"provider"=>"bookingsync"}
1047
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1048
+  (0.1ms) SAVEPOINT active_record_1
1049
+ 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]]
1050
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1051
+ Redirected to http://test.host/
1052
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1053
+  (0.4ms) rollback transaction
1054
+  (0.1ms) begin transaction
1055
+ Processing by SessionsController#create as HTML
1056
+ Parameters: {"provider"=>"bookingsync"}
1057
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1058
+  (0.1ms) SAVEPOINT active_record_1
1059
+ SQL (0.5ms) 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]]
1060
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1061
+ Redirected to http://test.host/
1062
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
1063
+  (0.4ms) rollback transaction
1064
+  (0.1ms) begin transaction
1065
+ Processing by SessionsController#destroy as HTML
1066
+ Redirected to http://test.host/
1067
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1068
+  (0.1ms) rollback transaction
1069
+  (0.1ms) begin transaction
1070
+ Processing by SessionsController#destroy as HTML
1071
+ Redirected to http://test.host/
1072
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1073
+  (0.1ms) rollback transaction
1074
+  (0.0ms) begin transaction
1075
+ Processing by SessionsController#failure as HTML
1076
+ Completed 200 OK in 17ms (Views: 16.3ms | ActiveRecord: 0.0ms)
1077
+  (0.1ms) rollback transaction
1078
+  (0.1ms) begin transaction
1079
+ Processing by SessionsController#failure as HTML
1080
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
1081
+  (0.1ms) rollback transaction
1082
+  (0.3ms) begin transaction
1083
+  (0.1ms) SAVEPOINT active_record_1
1084
+ SQL (0.4ms) 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"]]
1085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1086
+  (0.0ms) SAVEPOINT active_record_1
1087
+ SQL (3.4ms) 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]]
1088
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1089
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1090
+  (2.8ms) rollback transaction
1091
+  (0.1ms) begin transaction
1092
+  (0.1ms) SAVEPOINT active_record_1
1093
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1094
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1095
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1096
+  (0.0ms) SAVEPOINT active_record_1
1097
+ SQL (0.4ms) 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"]]
1098
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1099
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1100
+  (0.6ms) rollback transaction
1101
+  (0.1ms) begin transaction
1102
+  (0.1ms) SAVEPOINT active_record_1
1103
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1105
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1106
+  (0.0ms) SAVEPOINT active_record_1
1107
+ 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"]]
1108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1109
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1110
+  (0.5ms) rollback transaction
1111
+  (0.1ms) begin transaction
1112
+  (0.1ms) SAVEPOINT active_record_1
1113
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1115
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1116
+  (0.0ms) SAVEPOINT active_record_1
1117
+ 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"]]
1118
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1119
+  (0.4ms) rollback transaction
1120
+  (0.0ms) begin transaction
1121
+ Processing by SessionsController#failure as HTML
1122
+ Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
1123
+ Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)
1124
+  (0.1ms) rollback transaction
1125
+  (0.1ms) begin transaction
1126
+ Processing by SessionsController#failure as HTML
1127
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1128
+  (0.1ms) rollback transaction
1129
+  (0.0ms) begin transaction
1130
+ Processing by SessionsController#destroy as HTML
1131
+ Redirected to http://test.host/
1132
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1133
+  (0.1ms) rollback transaction
1134
+  (0.1ms) begin transaction
1135
+ Processing by SessionsController#destroy as HTML
1136
+ Redirected to http://test.host/
1137
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1138
+  (0.1ms) rollback transaction
1139
+  (0.0ms) begin transaction
1140
+ Processing by SessionsController#create as HTML
1141
+ Parameters: {"provider"=>"bookingsync"}
1142
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1143
+  (0.0ms) SAVEPOINT active_record_1
1144
+ 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]]
1145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1146
+ Redirected to http://test.host/
1147
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1148
+  (0.4ms) rollback transaction
1149
+  (0.1ms) begin transaction
1150
+ Processing by SessionsController#create as HTML
1151
+ Parameters: {"provider"=>"bookingsync"}
1152
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1153
+  (0.0ms) SAVEPOINT active_record_1
1154
+ 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]]
1155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1156
+ Redirected to http://test.host/
1157
+ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
1158
+  (0.4ms) rollback transaction
1159
+  (0.1ms) begin transaction
1160
+ Processing by SessionsController#create as HTML
1161
+ Parameters: {"provider"=>"bookingsync"}
1162
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1163
+  (0.1ms) SAVEPOINT active_record_1
1164
+ 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]]
1165
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1166
+ Redirected to http://test.host/
1167
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1168
+  (0.4ms) rollback transaction
1169
+  (0.5ms) begin transaction
1170
+ Processing by SessionsController#destroy as HTML
1171
+ Redirected to http://test.host/
1172
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1173
+  (0.1ms) rollback transaction
1174
+  (0.1ms) begin transaction
1175
+ Processing by SessionsController#destroy as HTML
1176
+ Redirected to http://test.host/
1177
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1178
+  (0.1ms) rollback transaction
1179
+  (0.1ms) begin transaction
1180
+ Processing by SessionsController#failure as HTML
1181
+ Completed 200 OK in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)
1182
+  (0.1ms) rollback transaction
1183
+  (0.1ms) begin transaction
1184
+ Processing by SessionsController#failure as HTML
1185
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1186
+  (0.1ms) rollback transaction
1187
+  (0.0ms) begin transaction
1188
+ Processing by SessionsController#create as HTML
1189
+ Parameters: {"provider"=>"bookingsync"}
1190
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1191
+  (0.1ms) SAVEPOINT active_record_1
1192
+ SQL (2.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]]
1193
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1194
+ Redirected to http://test.host/
1195
+ Completed 302 Found in 17ms (ActiveRecord: 3.5ms)
1196
+  (2.2ms) rollback transaction
1197
+  (0.1ms) begin transaction
1198
+ Processing by SessionsController#create as HTML
1199
+ Parameters: {"provider"=>"bookingsync"}
1200
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1201
+  (0.1ms) SAVEPOINT active_record_1
1202
+ 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]]
1203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1204
+ Redirected to http://test.host/
1205
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1206
+  (0.4ms) rollback transaction
1207
+  (0.1ms) begin transaction
1208
+ Processing by SessionsController#create as HTML
1209
+ Parameters: {"provider"=>"bookingsync"}
1210
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1211
+  (0.0ms) SAVEPOINT active_record_1
1212
+ 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]]
1213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1214
+ Redirected to http://test.host/
1215
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1216
+  (0.4ms) rollback transaction
1217
+  (0.1ms) begin transaction
1218
+  (0.0ms) SAVEPOINT active_record_1
1219
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1221
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1222
+  (0.0ms) SAVEPOINT active_record_1
1223
+ SQL (1.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"]]
1224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1225
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1226
+  (0.5ms) rollback transaction
1227
+  (0.1ms) begin transaction
1228
+  (0.0ms) SAVEPOINT active_record_1
1229
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1230
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1231
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1232
+  (0.0ms) SAVEPOINT active_record_1
1233
+ 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"]]
1234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1235
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1236
+  (0.4ms) rollback transaction
1237
+  (0.1ms) begin transaction
1238
+  (0.0ms) SAVEPOINT active_record_1
1239
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1240
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1241
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1242
+  (0.0ms) SAVEPOINT active_record_1
1243
+ 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"]]
1244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1245
+  (0.5ms) rollback transaction
1246
+  (0.1ms) begin transaction
1247
+  (0.0ms) SAVEPOINT active_record_1
1248
+ 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"]]
1249
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1250
+  (0.0ms) SAVEPOINT active_record_1
1251
+ 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]]
1252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1253
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1254
+  (0.4ms) rollback transaction
1255
+  (0.3ms) begin transaction
1256
+ Processing by SessionsController#failure as HTML
1257
+ Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
1258
+ Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms)
1259
+  (0.1ms) rollback transaction
1260
+  (0.1ms) begin transaction
1261
+ Processing by SessionsController#failure as HTML
1262
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1263
+  (0.1ms) rollback transaction
1264
+  (0.1ms) begin transaction
1265
+ Processing by SessionsController#destroy as HTML
1266
+ Redirected to http://test.host/
1267
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1268
+  (0.1ms) rollback transaction
1269
+  (0.1ms) begin transaction
1270
+ Processing by SessionsController#destroy as HTML
1271
+ Redirected to http://test.host/
1272
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1273
+  (0.1ms) rollback transaction
1274
+  (0.0ms) begin transaction
1275
+ Processing by SessionsController#create as HTML
1276
+ Parameters: {"provider"=>"bookingsync"}
1277
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1278
+  (0.1ms) SAVEPOINT active_record_1
1279
+ SQL (2.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]]
1280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1281
+ Redirected to http://test.host/
1282
+ Completed 302 Found in 22ms (ActiveRecord: 4.3ms)
1283
+  (2.3ms) rollback transaction
1284
+  (0.1ms) begin transaction
1285
+ Processing by SessionsController#create as HTML
1286
+ Parameters: {"provider"=>"bookingsync"}
1287
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1288
+  (0.1ms) SAVEPOINT active_record_1
1289
+ 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]]
1290
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1291
+ Redirected to http://test.host/
1292
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1293
+  (0.4ms) rollback transaction
1294
+  (0.1ms) begin transaction
1295
+ Processing by SessionsController#create as HTML
1296
+ Parameters: {"provider"=>"bookingsync"}
1297
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1298
+  (0.0ms) SAVEPOINT active_record_1
1299
+ 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]]
1300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1301
+ Redirected to http://test.host/
1302
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1303
+  (0.4ms) rollback transaction
1304
+  (0.4ms) begin transaction
1305
+  (0.1ms) SAVEPOINT active_record_1
1306
+ SQL (0.4ms) 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"]]
1307
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1308
+  (0.0ms) SAVEPOINT active_record_1
1309
+ SQL (3.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]]
1310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1311
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1312
+  (2.2ms) rollback transaction
1313
+  (0.1ms) begin transaction
1314
+  (0.1ms) SAVEPOINT active_record_1
1315
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1316
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1317
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1318
+  (0.1ms) SAVEPOINT active_record_1
1319
+ SQL (0.4ms) 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"]]
1320
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1321
+  (0.6ms) rollback transaction
1322
+  (0.1ms) begin transaction
1323
+  (0.0ms) SAVEPOINT active_record_1
1324
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1326
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1327
+  (0.0ms) SAVEPOINT active_record_1
1328
+ SQL (0.4ms) 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"]]
1329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1330
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1331
+  (0.5ms) rollback transaction
1332
+  (0.1ms) begin transaction
1333
+  (0.0ms) SAVEPOINT active_record_1
1334
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1336
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1337
+  (0.0ms) SAVEPOINT active_record_1
1338
+ 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"]]
1339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1340
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1341
+  (0.4ms) rollback transaction
1342
+  (0.0ms) begin transaction
1343
+ Processing by SessionsController#create as HTML
1344
+ Parameters: {"provider"=>"bookingsync"}
1345
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1346
+  (0.0ms) SAVEPOINT active_record_1
1347
+ 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]]
1348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1349
+ Redirected to http://test.host/
1350
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1351
+  (0.4ms) rollback transaction
1352
+  (0.1ms) begin transaction
1353
+ Processing by SessionsController#create as HTML
1354
+ Parameters: {"provider"=>"bookingsync"}
1355
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1356
+  (0.0ms) SAVEPOINT active_record_1
1357
+ 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]]
1358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1359
+ Redirected to http://test.host/
1360
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
1361
+  (0.4ms) rollback transaction
1362
+  (0.1ms) begin transaction
1363
+ Processing by SessionsController#create as HTML
1364
+ Parameters: {"provider"=>"bookingsync"}
1365
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1366
+  (0.1ms) SAVEPOINT active_record_1
1367
+ 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]]
1368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1369
+ Redirected to http://test.host/
1370
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1371
+  (0.4ms) rollback transaction
1372
+  (0.1ms) begin transaction
1373
+ Processing by SessionsController#destroy as HTML
1374
+ Redirected to http://test.host/
1375
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1376
+  (0.1ms) rollback transaction
1377
+  (0.1ms) begin transaction
1378
+ Processing by SessionsController#destroy as HTML
1379
+ Redirected to http://test.host/
1380
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1381
+  (0.1ms) rollback transaction
1382
+  (0.1ms) begin transaction
1383
+ Processing by SessionsController#failure as HTML
1384
+ Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
1385
+  (0.1ms) rollback transaction
1386
+  (0.0ms) begin transaction
1387
+ Processing by SessionsController#failure as HTML
1388
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1389
+  (0.1ms) rollback transaction
1390
+  (0.3ms) begin transaction
1391
+ Processing by SessionsController#create as HTML
1392
+ Parameters: {"provider"=>"bookingsync"}
1393
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1394
+  (0.1ms) SAVEPOINT active_record_1
1395
+ SQL (2.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]]
1396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1397
+ Redirected to http://test.host/
1398
+ Completed 302 Found in 17ms (ActiveRecord: 3.7ms)
1399
+  (99.6ms) rollback transaction
1400
+  (0.1ms) begin transaction
1401
+ Processing by SessionsController#create as HTML
1402
+ Parameters: {"provider"=>"bookingsync"}
1403
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1404
+  (0.0ms) SAVEPOINT active_record_1
1405
+ 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]]
1406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1407
+ Redirected to http://test.host/
1408
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1409
+  (0.6ms) rollback transaction
1410
+  (0.1ms) begin transaction
1411
+ Processing by SessionsController#create as HTML
1412
+ Parameters: {"provider"=>"bookingsync"}
1413
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1414
+  (0.1ms) SAVEPOINT active_record_1
1415
+ 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]]
1416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1417
+ Redirected to http://test.host/
1418
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1419
+  (0.4ms) rollback transaction
1420
+  (0.1ms) begin transaction
1421
+ Processing by SessionsController#destroy as HTML
1422
+ Redirected to http://test.host/
1423
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1424
+  (0.1ms) rollback transaction
1425
+  (0.1ms) begin transaction
1426
+ Processing by SessionsController#destroy as HTML
1427
+ Redirected to http://test.host/
1428
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1429
+  (0.1ms) rollback transaction
1430
+  (0.1ms) begin transaction
1431
+ Processing by SessionsController#failure as HTML
1432
+ Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
1433
+  (0.1ms) rollback transaction
1434
+  (0.1ms) begin transaction
1435
+ Processing by SessionsController#failure as HTML
1436
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1437
+  (0.1ms) rollback transaction
1438
+  (0.3ms) begin transaction
1439
+ Processing by SessionsController#create as HTML
1440
+ Parameters: {"provider"=>"bookingsync"}
1441
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1442
+  (0.1ms) SAVEPOINT active_record_1
1443
+ SQL (2.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]]
1444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1445
+ Redirected to http://test.host/
1446
+ Completed 302 Found in 17ms (ActiveRecord: 3.6ms)
1447
+  (99.8ms) rollback transaction
1448
+  (0.1ms) begin transaction
1449
+ Processing by SessionsController#create as HTML
1450
+ Parameters: {"provider"=>"bookingsync"}
1451
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1452
+  (0.0ms) SAVEPOINT active_record_1
1453
+ SQL (0.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]]
1454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1455
+ Redirected to http://test.host/
1456
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
1457
+  (0.4ms) rollback transaction
1458
+  (0.1ms) begin transaction
1459
+ Processing by SessionsController#create as HTML
1460
+ Parameters: {"provider"=>"bookingsync"}
1461
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1462
+  (0.1ms) SAVEPOINT active_record_1
1463
+ 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]]
1464
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1465
+ Redirected to http://test.host/admin
1466
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1467
+  (0.4ms) rollback transaction
1468
+  (0.1ms) begin transaction
1469
+ Processing by SessionsController#destroy as HTML
1470
+ Redirected to http://test.host/
1471
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1472
+  (0.1ms) rollback transaction
1473
+  (0.1ms) begin transaction
1474
+ Processing by SessionsController#destroy as HTML
1475
+ Redirected to http://test.host/
1476
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1477
+  (0.1ms) rollback transaction
1478
+  (0.1ms) begin transaction
1479
+ Processing by SessionsController#failure as HTML
1480
+ Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms)
1481
+  (0.1ms) rollback transaction
1482
+  (0.1ms) begin transaction
1483
+ Processing by SessionsController#failure as HTML
1484
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1485
+  (0.1ms) rollback transaction
1486
+  (0.3ms) begin transaction
1487
+ Processing by SessionsController#create as HTML
1488
+ Parameters: {"provider"=>"bookingsync"}
1489
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1490
+  (0.1ms) SAVEPOINT active_record_1
1491
+ SQL (2.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]]
1492
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1493
+ Redirected to http://test.host/admin
1494
+ Completed 302 Found in 17ms (ActiveRecord: 3.6ms)
1495
+  (2.6ms) rollback transaction
1496
+  (0.4ms) begin transaction
1497
+ Processing by SessionsController#failure as HTML
1498
+ Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
1499
+ Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms)
1500
+  (0.1ms) rollback transaction
1501
+  (0.1ms) begin transaction
1502
+ Processing by SessionsController#failure as HTML
1503
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1504
+  (0.1ms) rollback transaction
1505
+  (0.1ms) begin transaction
1506
+ Processing by SessionsController#create as HTML
1507
+ Parameters: {"provider"=>"bookingsync"}
1508
+ Account Load (0.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1509
+  (0.1ms) SAVEPOINT active_record_1
1510
+ SQL (3.1ms) 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]]
1511
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1512
+ Redirected to http://test.host/admin
1513
+ Completed 302 Found in 21ms (ActiveRecord: 5.2ms)
1514
+  (0.4ms) rollback transaction
1515
+  (0.1ms) begin transaction
1516
+ Processing by SessionsController#create as HTML
1517
+ Parameters: {"provider"=>"bookingsync"}
1518
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1519
+  (0.0ms) SAVEPOINT active_record_1
1520
+ 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]]
1521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1522
+ Redirected to http://test.host/
1523
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1524
+  (0.4ms) rollback transaction
1525
+  (0.1ms) begin transaction
1526
+ Processing by SessionsController#create as HTML
1527
+ Parameters: {"provider"=>"bookingsync"}
1528
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1529
+  (0.1ms) SAVEPOINT active_record_1
1530
+ 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]]
1531
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1532
+ Redirected to http://test.host/
1533
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1534
+  (0.5ms) rollback transaction
1535
+  (0.1ms) begin transaction
1536
+ Processing by SessionsController#destroy as HTML
1537
+ Redirected to http://test.host/
1538
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1539
+  (0.1ms) rollback transaction
1540
+  (0.1ms) begin transaction
1541
+ Processing by SessionsController#destroy as HTML
1542
+ Redirected to http://test.host/
1543
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1544
+  (0.1ms) rollback transaction
1545
+  (0.3ms) begin transaction
1546
+ Processing by SessionsController#create as HTML
1547
+ Parameters: {"provider"=>"bookingsync"}
1548
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1549
+  (0.1ms) SAVEPOINT active_record_1
1550
+ SQL (2.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]]
1551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1552
+ Redirected to http://test.host/
1553
+ Completed 302 Found in 16ms (ActiveRecord: 3.6ms)
1554
+  (0.6ms) rollback transaction
1555
+  (0.1ms) begin transaction
1556
+ Processing by SessionsController#create as HTML
1557
+ Parameters: {"provider"=>"bookingsync"}
1558
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1559
+  (0.0ms) SAVEPOINT active_record_1
1560
+ 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]]
1561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1562
+ Redirected to http://test.host/
1563
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1564
+  (0.7ms) rollback transaction
1565
+  (0.1ms) begin transaction
1566
+ Processing by SessionsController#create as HTML
1567
+ Parameters: {"provider"=>"bookingsync"}
1568
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1569
+  (0.0ms) SAVEPOINT active_record_1
1570
+ 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]]
1571
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1572
+ Redirected to http://test.host/admin
1573
+ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
1574
+  (0.5ms) rollback transaction
1575
+  (0.1ms) begin transaction
1576
+ Processing by SessionsController#destroy as HTML
1577
+ Redirected to http://test.host/
1578
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1579
+  (0.1ms) rollback transaction
1580
+  (0.0ms) begin transaction
1581
+ Processing by SessionsController#destroy as HTML
1582
+ Redirected to http://test.host/
1583
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1584
+  (0.1ms) rollback transaction
1585
+  (0.0ms) begin transaction
1586
+ Processing by SessionsController#failure as HTML
1587
+ Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
1588
+  (0.1ms) rollback transaction
1589
+  (0.1ms) begin transaction
1590
+ Processing by SessionsController#failure as HTML
1591
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1592
+  (0.1ms) rollback transaction
1593
+  (0.0ms) begin transaction
1594
+  (0.0ms) SAVEPOINT active_record_1
1595
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1596
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1597
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1598
+  (0.1ms) SAVEPOINT active_record_1
1599
+ SQL (1.1ms) 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"]]
1600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1601
+  (0.5ms) rollback transaction
1602
+  (0.1ms) begin transaction
1603
+  (0.0ms) SAVEPOINT active_record_1
1604
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1605
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1606
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1607
+  (0.0ms) SAVEPOINT active_record_1
1608
+ 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"]]
1609
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1610
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1611
+  (0.4ms) rollback transaction
1612
+  (0.1ms) begin transaction
1613
+  (0.1ms) SAVEPOINT active_record_1
1614
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1616
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1617
+  (0.0ms) SAVEPOINT active_record_1
1618
+ 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"]]
1619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1620
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1621
+  (0.5ms) rollback transaction
1622
+  (0.1ms) begin transaction
1623
+  (0.0ms) SAVEPOINT active_record_1
1624
+ 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"]]
1625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1626
+  (0.0ms) SAVEPOINT active_record_1
1627
+ 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]]
1628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1629
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1630
+  (0.4ms) rollback transaction
1631
+  (0.5ms) begin transaction
1632
+ Processing by SessionsController#destroy as HTML
1633
+ Redirected to http://test.host/signed_out
1634
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1635
+  (0.1ms) rollback transaction
1636
+  (0.4ms) begin transaction
1637
+ Processing by SessionsController#create as HTML
1638
+ Parameters: {"provider"=>"bookingsync"}
1639
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1640
+  (0.1ms) SAVEPOINT active_record_1
1641
+ SQL (2.8ms) 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]]
1642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1643
+ Redirected to http://test.host/
1644
+ Completed 302 Found in 24ms (ActiveRecord: 4.7ms)
1645
+  (0.5ms) rollback transaction
1646
+  (0.1ms) begin transaction
1647
+ Processing by SessionsController#create as HTML
1648
+ Parameters: {"provider"=>"bookingsync"}
1649
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1650
+  (0.1ms) SAVEPOINT active_record_1
1651
+ 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]]
1652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1653
+ Redirected to http://test.host/
1654
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1655
+  (0.4ms) rollback transaction
1656
+  (0.1ms) begin transaction
1657
+ Processing by SessionsController#create as HTML
1658
+ Parameters: {"provider"=>"bookingsync"}
1659
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1660
+  (0.0ms) SAVEPOINT active_record_1
1661
+ 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]]
1662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1663
+ Redirected to http://test.host/admin
1664
+ Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
1665
+  (0.4ms) rollback transaction
1666
+  (0.1ms) begin transaction
1667
+ Processing by SessionsController#destroy as HTML
1668
+ Redirected to http://test.host/
1669
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1670
+  (0.1ms) rollback transaction
1671
+  (0.0ms) begin transaction
1672
+ Processing by SessionsController#destroy as HTML
1673
+ Redirected to http://test.host/signed_out
1674
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1675
+  (0.1ms) rollback transaction
1676
+  (0.1ms) begin transaction
1677
+ Processing by SessionsController#failure as HTML
1678
+ Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
1679
+  (0.1ms) rollback transaction
1680
+  (0.0ms) begin transaction
1681
+ Processing by SessionsController#failure as HTML
1682
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1683
+  (0.1ms) rollback transaction
1684
+  (0.0ms) begin transaction
1685
+  (0.0ms) SAVEPOINT active_record_1
1686
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1688
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1689
+  (0.1ms) SAVEPOINT active_record_1
1690
+ SQL (1.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"]]
1691
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1692
+  (0.5ms) rollback transaction
1693
+  (0.1ms) begin transaction
1694
+  (0.1ms) SAVEPOINT active_record_1
1695
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1697
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1698
+  (0.0ms) SAVEPOINT active_record_1
1699
+ 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"]]
1700
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1701
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1702
+  (0.3ms) rollback transaction
1703
+  (0.1ms) begin transaction
1704
+  (0.0ms) SAVEPOINT active_record_1
1705
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1707
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1708
+  (0.0ms) SAVEPOINT active_record_1
1709
+ SQL (0.5ms) 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"]]
1710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1711
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1712
+  (0.4ms) rollback transaction
1713
+  (0.0ms) begin transaction
1714
+  (0.0ms) SAVEPOINT active_record_1
1715
+ 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"]]
1716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1717
+  (0.0ms) SAVEPOINT active_record_1
1718
+ 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]]
1719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1720
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1721
+  (0.4ms) rollback transaction
1722
+  (0.4ms) begin transaction
1723
+ Processing by SessionsController#failure as HTML
1724
+ Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.4ms)
1725
+ Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms)
1726
+  (0.1ms) rollback transaction
1727
+  (0.1ms) begin transaction
1728
+ Processing by SessionsController#failure as HTML
1729
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1730
+  (0.1ms) rollback transaction
1731
+  (0.0ms) begin transaction
1732
+ Processing by SessionsController#create as HTML
1733
+ Parameters: {"provider"=>"bookingsync"}
1734
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1735
+  (0.1ms) SAVEPOINT active_record_1
1736
+ SQL (3.5ms) 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]]
1737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1738
+ Redirected to http://test.host/admin
1739
+ Completed 302 Found in 20ms (ActiveRecord: 5.4ms)
1740
+  (1.1ms) rollback transaction
1741
+  (0.1ms) begin transaction
1742
+ Processing by SessionsController#create as HTML
1743
+ Parameters: {"provider"=>"bookingsync"}
1744
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1745
+  (0.1ms) SAVEPOINT active_record_1
1746
+ SQL (0.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]]
1747
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1748
+ Redirected to http://test.host/
1749
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
1750
+  (0.5ms) rollback transaction
1751
+  (0.1ms) begin transaction
1752
+ Processing by SessionsController#create as HTML
1753
+ Parameters: {"provider"=>"bookingsync"}
1754
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1755
+  (0.0ms) SAVEPOINT active_record_1
1756
+ 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]]
1757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1758
+ Redirected to http://test.host/
1759
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
1760
+  (0.4ms) rollback transaction
1761
+  (0.0ms) begin transaction
1762
+ Processing by SessionsController#destroy as HTML
1763
+ Redirected to http://test.host/
1764
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1765
+  (0.1ms) rollback transaction
1766
+  (0.1ms) begin transaction
1767
+ Processing by SessionsController#destroy as HTML
1768
+ Redirected to http://test.host/signed_out
1769
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1770
+  (0.1ms) rollback transaction
1771
+  (0.1ms) begin transaction
1772
+  (0.0ms) SAVEPOINT active_record_1
1773
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1774
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1775
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1776
+  (0.0ms) SAVEPOINT active_record_1
1777
+ SQL (1.0ms) 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"]]
1778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1779
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1780
+  (0.4ms) rollback transaction
1781
+  (0.1ms) begin transaction
1782
+  (0.0ms) SAVEPOINT active_record_1
1783
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1785
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1786
+  (0.0ms) SAVEPOINT active_record_1
1787
+ 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"]]
1788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1789
+  (0.4ms) rollback transaction
1790
+  (0.1ms) begin transaction
1791
+  (0.0ms) SAVEPOINT active_record_1
1792
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1793
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1794
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1795
+  (0.0ms) SAVEPOINT active_record_1
1796
+ 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"]]
1797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1798
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1799
+  (0.4ms) rollback transaction
1800
+  (0.1ms) begin transaction
1801
+  (0.0ms) SAVEPOINT active_record_1
1802
+ 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"]]
1803
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1804
+  (0.0ms) SAVEPOINT active_record_1
1805
+ 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]]
1806
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1807
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1808
+  (0.4ms) rollback transaction
1809
+  (0.3ms) begin transaction
1810
+ Processing by SessionsController#failure as HTML
1811
+ Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
1812
+ Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms)
1813
+  (0.1ms) rollback transaction
1814
+  (0.1ms) begin transaction
1815
+ Processing by SessionsController#failure as HTML
1816
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1817
+  (0.1ms) rollback transaction
1818
+  (0.1ms) begin transaction
1819
+ Processing by SessionsController#destroy as HTML
1820
+ Redirected to http://test.host/
1821
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1822
+  (0.1ms) rollback transaction
1823
+  (0.1ms) begin transaction
1824
+ Processing by SessionsController#destroy as HTML
1825
+ Redirected to http://test.host/signed_out
1826
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1827
+  (0.1ms) rollback transaction
1828
+  (0.1ms) begin transaction
1829
+ Processing by SessionsController#create as HTML
1830
+ Parameters: {"provider"=>"bookingsync"}
1831
+ Account Load (0.5ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1832
+  (0.1ms) SAVEPOINT active_record_1
1833
+ 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]]
1834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1835
+ Redirected to http://test.host/admin
1836
+ Completed 302 Found in 24ms (ActiveRecord: 6.4ms)
1837
+  (0.4ms) rollback transaction
1838
+  (0.1ms) begin transaction
1839
+ Processing by SessionsController#create as HTML
1840
+ Parameters: {"provider"=>"bookingsync"}
1841
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1842
+  (0.0ms) SAVEPOINT active_record_1
1843
+ 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]]
1844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1845
+ Redirected to http://test.host/
1846
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1847
+  (0.5ms) rollback transaction
1848
+  (0.2ms) begin transaction
1849
+ Processing by SessionsController#create as HTML
1850
+ Parameters: {"provider"=>"bookingsync"}
1851
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1852
+  (0.0ms) SAVEPOINT active_record_1
1853
+ 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]]
1854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1855
+ Redirected to http://test.host/
1856
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1857
+  (0.4ms) rollback transaction
1858
+  (0.1ms) begin transaction
1859
+  (0.0ms) SAVEPOINT active_record_1
1860
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1861
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1862
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1863
+  (0.0ms) SAVEPOINT active_record_1
1864
+ SQL (1.1ms) 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"]]
1865
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1866
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1867
+  (0.4ms) rollback transaction
1868
+  (0.0ms) begin transaction
1869
+  (0.0ms) SAVEPOINT active_record_1
1870
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1872
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1873
+  (0.1ms) SAVEPOINT active_record_1
1874
+ SQL (0.4ms) 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"]]
1875
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1876
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1877
+  (0.4ms) rollback transaction
1878
+  (0.1ms) begin transaction
1879
+  (0.0ms) SAVEPOINT active_record_1
1880
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1882
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1883
+  (0.0ms) SAVEPOINT active_record_1
1884
+ 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"]]
1885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1886
+  (0.4ms) rollback transaction
1887
+  (0.0ms) begin transaction
1888
+  (0.1ms) SAVEPOINT active_record_1
1889
+ 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"]]
1890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1891
+  (0.0ms) SAVEPOINT active_record_1
1892
+ SQL (0.4ms) 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]]
1893
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1894
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1895
+  (0.8ms) rollback transaction
1896
+  (0.3ms) begin transaction
1897
+ Processing by SessionsController#destroy as HTML
1898
+ Redirected to http://test.host/
1899
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1900
+  (0.1ms) rollback transaction
1901
+  (0.1ms) begin transaction
1902
+ Processing by SessionsController#destroy as HTML
1903
+ Redirected to http://test.host/signed_out
1904
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1905
+  (0.1ms) rollback transaction
1906
+  (0.1ms) begin transaction
1907
+ Processing by SessionsController#create as HTML
1908
+ Parameters: {"provider"=>"bookingsync"}
1909
+ Account Load (0.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1910
+  (0.1ms) SAVEPOINT active_record_1
1911
+ SQL (3.1ms) 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]]
1912
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1913
+ Redirected to http://test.host/
1914
+ Completed 302 Found in 21ms (ActiveRecord: 5.8ms)
1915
+  (1.6ms) rollback transaction
1916
+  (0.1ms) begin transaction
1917
+ Processing by SessionsController#create as HTML
1918
+ Parameters: {"provider"=>"bookingsync"}
1919
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1920
+  (0.0ms) SAVEPOINT active_record_1
1921
+ 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]]
1922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1923
+ Redirected to http://test.host/
1924
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1925
+  (0.4ms) rollback transaction
1926
+  (0.1ms) begin transaction
1927
+ Processing by SessionsController#create as HTML
1928
+ Parameters: {"provider"=>"bookingsync"}
1929
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1930
+  (0.1ms) SAVEPOINT active_record_1
1931
+ 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]]
1932
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1933
+ Redirected to http://test.host/admin
1934
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
1935
+  (0.4ms) rollback transaction
1936
+  (0.1ms) begin transaction
1937
+ Processing by SessionsController#failure as HTML
1938
+ Completed 200 OK in 12ms (Views: 11.5ms | ActiveRecord: 0.0ms)
1939
+  (0.1ms) rollback transaction
1940
+  (0.0ms) begin transaction
1941
+ Processing by SessionsController#failure as HTML
1942
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1943
+  (0.1ms) rollback transaction
1944
+  (0.1ms) begin transaction
1945
+  (0.1ms) SAVEPOINT active_record_1
1946
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1948
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1949
+  (0.0ms) SAVEPOINT active_record_1
1950
+ SQL (1.5ms) 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"]]
1951
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1952
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1953
+  (0.6ms) rollback transaction
1954
+  (0.1ms) begin transaction
1955
+  (0.1ms) SAVEPOINT active_record_1
1956
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1958
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1959
+  (0.1ms) SAVEPOINT active_record_1
1960
+ SQL (0.8ms) 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"]]
1961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1962
+  (0.4ms) rollback transaction
1963
+  (0.1ms) begin transaction
1964
+  (0.1ms) SAVEPOINT active_record_1
1965
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
1966
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1967
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1968
+  (0.0ms) SAVEPOINT active_record_1
1969
+ 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"]]
1970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1971
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1972
+  (0.4ms) rollback transaction
1973
+  (0.1ms) begin transaction
1974
+  (0.0ms) SAVEPOINT active_record_1
1975
+ 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"]]
1976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1977
+  (0.0ms) SAVEPOINT active_record_1
1978
+ SQL (0.7ms) 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]]
1979
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1980
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
1981
+  (0.5ms) rollback transaction
1982
+  (0.4ms) begin transaction
1983
+ Processing by SessionsController#create as HTML
1984
+ Parameters: {"provider"=>"bookingsync"}
1985
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1986
+  (0.1ms) SAVEPOINT active_record_1
1987
+ SQL (3.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]]
1988
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1989
+ Redirected to http://test.host/
1990
+ Completed 302 Found in 21ms (ActiveRecord: 5.1ms)
1991
+  (0.4ms) rollback transaction
1992
+  (0.1ms) begin transaction
1993
+ Processing by SessionsController#create as HTML
1994
+ Parameters: {"provider"=>"bookingsync"}
1995
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
1996
+  (0.0ms) SAVEPOINT active_record_1
1997
+ 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]]
1998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1999
+ Redirected to http://test.host/admin
2000
+ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
2001
+  (0.5ms) rollback transaction
2002
+  (0.1ms) begin transaction
2003
+ Processing by SessionsController#create as HTML
2004
+ Parameters: {"provider"=>"bookingsync"}
2005
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2006
+  (0.0ms) SAVEPOINT active_record_1
2007
+ 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]]
2008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2009
+ Redirected to http://test.host/
2010
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
2011
+  (0.4ms) rollback transaction
2012
+  (0.1ms) begin transaction
2013
+ Processing by SessionsController#failure as HTML
2014
+ Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms)
2015
+  (0.1ms) rollback transaction
2016
+  (0.1ms) begin transaction
2017
+ Processing by SessionsController#failure as HTML
2018
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
2019
+  (0.1ms) rollback transaction
2020
+  (0.1ms) begin transaction
2021
+ Processing by SessionsController#destroy as HTML
2022
+ Redirected to http://test.host/
2023
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2024
+  (0.1ms) rollback transaction
2025
+  (0.2ms) begin transaction
2026
+ Processing by SessionsController#destroy as HTML
2027
+ Redirected to http://test.host/signed_out
2028
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2029
+  (0.1ms) rollback transaction
2030
+  (0.1ms) begin transaction
2031
+  (0.1ms) SAVEPOINT active_record_1
2032
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2033
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2034
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2035
+  (0.0ms) SAVEPOINT active_record_1
2036
+ SQL (6.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"]]
2037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2038
+  (0.6ms) rollback transaction
2039
+  (0.1ms) begin transaction
2040
+  (0.1ms) SAVEPOINT active_record_1
2041
+ SQL (0.5ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2042
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2043
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2044
+  (0.1ms) SAVEPOINT active_record_1
2045
+ SQL (0.4ms) 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"]]
2046
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2047
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2048
+  (0.4ms) rollback transaction
2049
+  (0.1ms) begin transaction
2050
+  (0.1ms) SAVEPOINT active_record_1
2051
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2053
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2054
+  (0.1ms) SAVEPOINT active_record_1
2055
+ SQL (0.4ms) 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"]]
2056
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2057
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2058
+  (0.7ms) rollback transaction
2059
+  (0.1ms) begin transaction
2060
+  (0.1ms) SAVEPOINT active_record_1
2061
+ SQL (0.5ms) 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"]]
2062
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2063
+  (0.1ms) SAVEPOINT active_record_1
2064
+ SQL (0.5ms) 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]]
2065
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2066
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2067
+  (0.5ms) rollback transaction
2068
+  (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)) 
2069
+  (0.8ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
2070
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2071
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2072
+  (0.1ms) SELECT version FROM "schema_migrations"
2073
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140312093436')
2074
+  (0.3ms) begin transaction
2075
+ Processing by SessionsController#failure as HTML
2076
+ Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
2077
+ Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms)
2078
+  (0.1ms) rollback transaction
2079
+  (0.0ms) begin transaction
2080
+ Processing by SessionsController#failure as HTML
2081
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
2082
+  (0.1ms) rollback transaction
2083
+  (0.0ms) begin transaction
2084
+ Processing by SessionsController#destroy as HTML
2085
+ Redirected to http://test.host/
2086
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2087
+  (0.1ms) rollback transaction
2088
+  (0.1ms) begin transaction
2089
+ Processing by SessionsController#destroy as HTML
2090
+ Redirected to http://test.host/signed_out
2091
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2092
+  (0.1ms) rollback transaction
2093
+  (0.0ms) begin transaction
2094
+ Processing by SessionsController#create as HTML
2095
+ Parameters: {"provider"=>"bookingsync"}
2096
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2097
+  (0.1ms) SAVEPOINT active_record_1
2098
+ SQL (3.1ms) 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]]
2099
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2100
+ Redirected to http://test.host/admin
2101
+ Completed 302 Found in 24ms (ActiveRecord: 4.6ms)
2102
+  (0.4ms) rollback transaction
2103
+  (0.1ms) begin transaction
2104
+ Processing by SessionsController#create as HTML
2105
+ Parameters: {"provider"=>"bookingsync"}
2106
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2107
+  (0.0ms) SAVEPOINT active_record_1
2108
+ 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]]
2109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2110
+ Redirected to http://test.host/
2111
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
2112
+  (0.3ms) rollback transaction
2113
+  (0.1ms) begin transaction
2114
+ Processing by SessionsController#create as HTML
2115
+ Parameters: {"provider"=>"bookingsync"}
2116
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2117
+  (0.0ms) SAVEPOINT active_record_1
2118
+ 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]]
2119
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2120
+ Redirected to http://test.host/
2121
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
2122
+  (0.3ms) rollback transaction
2123
+  (0.1ms) begin transaction
2124
+  (0.0ms) SAVEPOINT active_record_1
2125
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2126
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2127
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2128
+  (0.1ms) SAVEPOINT active_record_1
2129
+ SQL (1.0ms) 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"]]
2130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2131
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2132
+  (0.5ms) rollback transaction
2133
+  (0.1ms) begin transaction
2134
+  (0.1ms) SAVEPOINT active_record_1
2135
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2136
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2137
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2138
+  (0.0ms) SAVEPOINT active_record_1
2139
+ 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"]]
2140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2141
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2142
+  (0.4ms) rollback transaction
2143
+  (0.0ms) begin transaction
2144
+  (0.0ms) SAVEPOINT active_record_1
2145
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2147
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2148
+  (0.0ms) SAVEPOINT active_record_1
2149
+ 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"]]
2150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2151
+  (0.4ms) rollback transaction
2152
+  (0.1ms) begin transaction
2153
+  (0.0ms) SAVEPOINT active_record_1
2154
+ SQL (0.4ms) 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"]]
2155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2156
+  (0.0ms) SAVEPOINT active_record_1
2157
+ 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]]
2158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2159
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2160
+  (0.6ms) rollback transaction
2161
+  (0.4ms) begin transaction
2162
+ Processing by SessionsController#failure as HTML
2163
+ Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
2164
+ Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
2165
+  (0.1ms) rollback transaction
2166
+  (0.1ms) begin transaction
2167
+ Processing by SessionsController#failure as HTML
2168
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
2169
+  (0.1ms) rollback transaction
2170
+  (0.1ms) begin transaction
2171
+ Processing by SessionsController#destroy as HTML
2172
+ Redirected to http://test.host/
2173
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2174
+  (0.1ms) rollback transaction
2175
+  (0.0ms) begin transaction
2176
+ Processing by SessionsController#destroy as HTML
2177
+ Redirected to http://test.host/signed_out
2178
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2179
+  (0.1ms) rollback transaction
2180
+  (0.1ms) begin transaction
2181
+ Processing by SessionsController#create as HTML
2182
+ Parameters: {"provider"=>"bookingsync"}
2183
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2184
+  (0.1ms) SAVEPOINT active_record_1
2185
+ SQL (3.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]]
2186
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2187
+ Redirected to http://test.host/admin
2188
+ Completed 302 Found in 21ms (ActiveRecord: 4.3ms)
2189
+  (2.3ms) rollback transaction
2190
+  (0.1ms) begin transaction
2191
+ Processing by SessionsController#create as HTML
2192
+ Parameters: {"provider"=>"bookingsync"}
2193
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2194
+  (0.0ms) SAVEPOINT active_record_1
2195
+ 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]]
2196
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2197
+ Redirected to http://test.host/
2198
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
2199
+  (1.0ms) rollback transaction
2200
+  (0.1ms) begin transaction
2201
+ Processing by SessionsController#create as HTML
2202
+ Parameters: {"provider"=>"bookingsync"}
2203
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2204
+  (0.0ms) SAVEPOINT active_record_1
2205
+ 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]]
2206
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2207
+ Redirected to http://test.host/
2208
+ Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
2209
+  (0.5ms) rollback transaction
2210
+  (0.1ms) begin transaction
2211
+  (0.0ms) SAVEPOINT active_record_1
2212
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2214
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2215
+  (0.0ms) SAVEPOINT active_record_1
2216
+ SQL (1.0ms) 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"]]
2217
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2218
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2219
+  (0.6ms) rollback transaction
2220
+  (0.1ms) begin transaction
2221
+  (0.1ms) SAVEPOINT active_record_1
2222
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2223
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2224
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2225
+  (0.0ms) SAVEPOINT active_record_1
2226
+ 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"]]
2227
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2228
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2229
+  (0.4ms) rollback transaction
2230
+  (0.1ms) begin transaction
2231
+  (0.0ms) SAVEPOINT active_record_1
2232
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2234
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2235
+  (0.0ms) SAVEPOINT active_record_1
2236
+ 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"]]
2237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2238
+  (0.4ms) rollback transaction
2239
+  (0.1ms) begin transaction
2240
+  (0.1ms) SAVEPOINT active_record_1
2241
+ 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"]]
2242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2243
+  (0.0ms) SAVEPOINT active_record_1
2244
+ SQL (0.4ms) 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]]
2245
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2246
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2247
+  (0.5ms) rollback transaction
2248
+  (0.3ms) begin transaction
2249
+ Processing by SessionsController#create as HTML
2250
+ Parameters: {"provider"=>"bookingsync"}
2251
+ Account Load (0.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2252
+  (0.1ms) SAVEPOINT active_record_1
2253
+ SQL (3.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]]
2254
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2255
+ Redirected to http://test.host/
2256
+ Completed 302 Found in 24ms (ActiveRecord: 5.6ms)
2257
+  (0.4ms) rollback transaction
2258
+  (0.1ms) begin transaction
2259
+ Processing by SessionsController#create as HTML
2260
+ Parameters: {"provider"=>"bookingsync"}
2261
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2262
+  (0.1ms) SAVEPOINT active_record_1
2263
+ SQL (0.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]]
2264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2265
+ Redirected to http://test.host/
2266
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
2267
+  (0.7ms) rollback transaction
2268
+  (0.1ms) begin transaction
2269
+ Processing by SessionsController#create as HTML
2270
+ Parameters: {"provider"=>"bookingsync"}
2271
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2272
+  (0.0ms) SAVEPOINT active_record_1
2273
+ 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]]
2274
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2275
+ Redirected to http://test.host/admin
2276
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
2277
+  (0.5ms) rollback transaction
2278
+  (0.1ms) begin transaction
2279
+ Processing by SessionsController#destroy as HTML
2280
+ Redirected to http://test.host/
2281
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2282
+  (0.1ms) rollback transaction
2283
+  (0.1ms) begin transaction
2284
+ Processing by SessionsController#destroy as HTML
2285
+ Redirected to http://test.host/signed_out
2286
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2287
+  (0.1ms) rollback transaction
2288
+  (0.1ms) begin transaction
2289
+ Processing by SessionsController#failure as HTML
2290
+ Completed 200 OK in 8ms (Views: 8.2ms | ActiveRecord: 0.0ms)
2291
+  (0.1ms) rollback transaction
2292
+  (0.1ms) begin transaction
2293
+ Processing by SessionsController#failure as HTML
2294
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
2295
+  (0.1ms) rollback transaction
2296
+  (0.0ms) begin transaction
2297
+  (0.0ms) SAVEPOINT active_record_1
2298
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2300
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2301
+  (0.0ms) SAVEPOINT active_record_1
2302
+ SQL (1.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"]]
2303
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2304
+  (0.5ms) rollback transaction
2305
+  (0.1ms) begin transaction
2306
+  (0.0ms) SAVEPOINT active_record_1
2307
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2309
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2310
+  (0.1ms) SAVEPOINT active_record_1
2311
+ 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"]]
2312
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2313
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2314
+  (0.4ms) rollback transaction
2315
+  (0.1ms) begin transaction
2316
+  (0.0ms) SAVEPOINT active_record_1
2317
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2319
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2320
+  (0.0ms) SAVEPOINT active_record_1
2321
+ 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"]]
2322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2323
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2324
+  (0.5ms) rollback transaction
2325
+  (0.0ms) begin transaction
2326
+  (0.0ms) SAVEPOINT active_record_1
2327
+ 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"]]
2328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2329
+  (0.0ms) SAVEPOINT active_record_1
2330
+ 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]]
2331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2332
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2333
+  (0.4ms) rollback transaction
2334
+  (0.4ms) begin transaction
2335
+ Processing by SessionsController#failure as HTML
2336
+ Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
2337
+ Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
2338
+  (0.1ms) rollback transaction
2339
+  (0.1ms) begin transaction
2340
+ Processing by SessionsController#failure as HTML
2341
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
2342
+  (0.1ms) rollback transaction
2343
+  (0.1ms) begin transaction
2344
+ Processing by SessionsController#destroy as HTML
2345
+ Redirected to http://test.host/
2346
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2347
+  (0.1ms) rollback transaction
2348
+  (0.0ms) begin transaction
2349
+ Processing by SessionsController#destroy as HTML
2350
+ Redirected to http://test.host/signed_out
2351
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2352
+  (0.1ms) rollback transaction
2353
+  (0.0ms) begin transaction
2354
+ Processing by SessionsController#create as HTML
2355
+ Parameters: {"provider"=>"bookingsync"}
2356
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2357
+  (0.1ms) SAVEPOINT active_record_1
2358
+ SQL (2.6ms) 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]]
2359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2360
+ Redirected to http://test.host/admin
2361
+ Completed 302 Found in 18ms (ActiveRecord: 4.0ms)
2362
+  (0.4ms) rollback transaction
2363
+  (0.1ms) begin transaction
2364
+ Processing by SessionsController#create as HTML
2365
+ Parameters: {"provider"=>"bookingsync"}
2366
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2367
+  (0.0ms) SAVEPOINT active_record_1
2368
+ 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]]
2369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2370
+ Redirected to http://test.host/
2371
+ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
2372
+  (0.4ms) rollback transaction
2373
+  (0.1ms) begin transaction
2374
+ Processing by SessionsController#create as HTML
2375
+ Parameters: {"provider"=>"bookingsync"}
2376
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2377
+  (0.0ms) SAVEPOINT active_record_1
2378
+ 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]]
2379
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2380
+ Redirected to http://test.host/
2381
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
2382
+  (0.4ms) rollback transaction
2383
+  (0.1ms) begin transaction
2384
+  (0.0ms) SAVEPOINT active_record_1
2385
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2387
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2388
+  (0.1ms) SAVEPOINT active_record_1
2389
+ 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"]]
2390
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2391
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2392
+  (0.4ms) rollback transaction
2393
+  (0.1ms) begin transaction
2394
+  (0.0ms) SAVEPOINT active_record_1
2395
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2396
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2397
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2398
+  (0.0ms) SAVEPOINT active_record_1
2399
+ 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"]]
2400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2401
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2402
+  (0.4ms) rollback transaction
2403
+  (0.1ms) begin transaction
2404
+  (0.0ms) SAVEPOINT active_record_1
2405
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2407
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2408
+  (0.0ms) SAVEPOINT active_record_1
2409
+ 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"]]
2410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2411
+  (0.4ms) rollback transaction
2412
+  (0.1ms) begin transaction
2413
+  (0.0ms) SAVEPOINT active_record_1
2414
+ 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"]]
2415
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2416
+  (0.0ms) SAVEPOINT active_record_1
2417
+ SQL (0.9ms) 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]]
2418
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2419
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2420
+  (0.5ms) rollback transaction
2421
+  (0.4ms) begin transaction
2422
+  (0.1ms) SAVEPOINT active_record_1
2423
+ SQL (0.5ms) 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"]]
2424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2425
+  (0.0ms) SAVEPOINT active_record_1
2426
+ SQL (3.9ms) 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]]
2427
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2428
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2429
+  (0.9ms) rollback transaction
2430
+  (0.1ms) begin transaction
2431
+  (0.0ms) SAVEPOINT active_record_1
2432
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2434
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2435
+  (0.1ms) SAVEPOINT active_record_1
2436
+ 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"]]
2437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2438
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2439
+  (0.5ms) rollback transaction
2440
+  (0.1ms) begin transaction
2441
+  (0.0ms) SAVEPOINT active_record_1
2442
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2444
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2445
+  (0.0ms) SAVEPOINT active_record_1
2446
+ SQL (0.6ms) 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"]]
2447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2448
+  (0.6ms) rollback transaction
2449
+  (0.1ms) begin transaction
2450
+  (0.1ms) SAVEPOINT active_record_1
2451
+ SQL (0.5ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2452
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2453
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2454
+  (0.1ms) SAVEPOINT active_record_1
2455
+ SQL (0.8ms) 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"]]
2456
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2457
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2458
+  (0.7ms) rollback transaction
2459
+  (0.1ms) begin transaction
2460
+ Processing by SessionsController#destroy as HTML
2461
+ Redirected to http://test.host/signed_out
2462
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2463
+  (0.1ms) rollback transaction
2464
+  (0.1ms) begin transaction
2465
+ Processing by SessionsController#destroy as HTML
2466
+ Redirected to http://test.host/
2467
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2468
+  (0.1ms) rollback transaction
2469
+  (0.1ms) begin transaction
2470
+ Processing by SessionsController#create as HTML
2471
+ Parameters: {"provider"=>"bookingsync"}
2472
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2473
+  (0.1ms) SAVEPOINT active_record_1
2474
+ SQL (0.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]]
2475
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2476
+ Redirected to http://test.host/
2477
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
2478
+  (0.4ms) rollback transaction
2479
+  (0.1ms) begin transaction
2480
+ Processing by SessionsController#create as HTML
2481
+ Parameters: {"provider"=>"bookingsync"}
2482
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2483
+  (0.1ms) SAVEPOINT active_record_1
2484
+ 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]]
2485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2486
+ Redirected to http://test.host/
2487
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
2488
+  (0.4ms) rollback transaction
2489
+  (0.1ms) begin transaction
2490
+ Processing by SessionsController#create as HTML
2491
+ Parameters: {"provider"=>"bookingsync"}
2492
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2493
+  (0.0ms) SAVEPOINT active_record_1
2494
+ 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]]
2495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2496
+ Redirected to http://test.host/admin
2497
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
2498
+  (0.5ms) rollback transaction
2499
+  (0.2ms) begin transaction
2500
+ Processing by SessionsController#failure as HTML
2501
+ Completed 200 OK in 13ms (Views: 12.7ms | ActiveRecord: 0.0ms)
2502
+  (0.1ms) rollback transaction
2503
+  (0.1ms) begin transaction
2504
+ Processing by SessionsController#failure as HTML
2505
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
2506
+  (0.1ms) rollback transaction
2507
+  (0.4ms) begin transaction
2508
+  (0.1ms) SAVEPOINT active_record_1
2509
+ SQL (0.6ms) 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"]]
2510
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2511
+  (0.0ms) SAVEPOINT active_record_1
2512
+ SQL (3.8ms) 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]]
2513
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2514
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2515
+  (0.9ms) rollback transaction
2516
+  (0.1ms) begin transaction
2517
+  (0.1ms) SAVEPOINT active_record_1
2518
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2520
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2521
+  (0.0ms) SAVEPOINT active_record_1
2522
+ 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"]]
2523
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2524
+  (0.4ms) rollback transaction
2525
+  (0.1ms) begin transaction
2526
+  (0.0ms) SAVEPOINT active_record_1
2527
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2529
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2530
+  (0.0ms) SAVEPOINT active_record_1
2531
+ SQL (0.4ms) 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"]]
2532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2533
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2534
+  (0.4ms) rollback transaction
2535
+  (0.1ms) begin transaction
2536
+  (0.1ms) SAVEPOINT active_record_1
2537
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2538
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2539
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2540
+  (0.0ms) SAVEPOINT active_record_1
2541
+ 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"]]
2542
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2543
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2544
+  (0.4ms) rollback transaction
2545
+  (0.1ms) begin transaction
2546
+ Processing by SessionsController#create as HTML
2547
+ Parameters: {"provider"=>"bookingsync"}
2548
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2549
+  (0.1ms) SAVEPOINT active_record_1
2550
+ SQL (0.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]]
2551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2552
+ Redirected to http://test.host/
2553
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
2554
+  (0.4ms) rollback transaction
2555
+  (0.1ms) begin transaction
2556
+ Processing by SessionsController#create as HTML
2557
+ Parameters: {"provider"=>"bookingsync"}
2558
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2559
+  (0.0ms) SAVEPOINT active_record_1
2560
+ 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]]
2561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2562
+ Redirected to http://test.host/admin
2563
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
2564
+  (0.5ms) rollback transaction
2565
+  (0.1ms) begin transaction
2566
+ Processing by SessionsController#create as HTML
2567
+ Parameters: {"provider"=>"bookingsync"}
2568
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2569
+  (0.0ms) SAVEPOINT active_record_1
2570
+ SQL (0.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]]
2571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2572
+ Redirected to http://test.host/
2573
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
2574
+  (0.5ms) rollback transaction
2575
+  (0.1ms) begin transaction
2576
+ Processing by SessionsController#failure as HTML
2577
+ Completed 200 OK in 9ms (Views: 9.2ms | ActiveRecord: 0.0ms)
2578
+  (0.1ms) rollback transaction
2579
+  (0.1ms) begin transaction
2580
+ Processing by SessionsController#failure as HTML
2581
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
2582
+  (0.1ms) rollback transaction
2583
+  (0.0ms) begin transaction
2584
+ Processing by SessionsController#destroy as HTML
2585
+ Redirected to http://test.host/signed_out
2586
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2587
+  (0.1ms) rollback transaction
2588
+  (0.0ms) begin transaction
2589
+ Processing by SessionsController#destroy as HTML
2590
+ Redirected to http://test.host/
2591
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2592
+  (0.1ms) rollback transaction
2593
+  (0.4ms) begin transaction
2594
+ Processing by SessionsController#create as HTML
2595
+ Parameters: {"provider"=>"bookingsync"}
2596
+ Account Load (0.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2597
+  (0.1ms) SAVEPOINT active_record_1
2598
+ SQL (3.7ms) 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]]
2599
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2600
+ Redirected to http://test.host/
2601
+ Completed 302 Found in 25ms (ActiveRecord: 6.1ms)
2602
+  (0.4ms) rollback transaction
2603
+  (0.1ms) begin transaction
2604
+ Processing by SessionsController#create as HTML
2605
+ Parameters: {"provider"=>"bookingsync"}
2606
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2607
+  (0.0ms) SAVEPOINT active_record_1
2608
+ SQL (0.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]]
2609
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2610
+ Redirected to http://test.host/
2611
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
2612
+  (0.4ms) rollback transaction
2613
+  (0.1ms) begin transaction
2614
+ Processing by SessionsController#create as HTML
2615
+ Parameters: {"provider"=>"bookingsync"}
2616
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2617
+  (0.1ms) SAVEPOINT active_record_1
2618
+ SQL (0.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]]
2619
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2620
+ Redirected to http://test.host/admin
2621
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
2622
+  (0.5ms) rollback transaction
2623
+  (0.1ms) begin transaction
2624
+ Processing by SessionsController#destroy as HTML
2625
+ Redirected to http://test.host/
2626
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2627
+  (0.1ms) rollback transaction
2628
+  (0.1ms) begin transaction
2629
+ Processing by SessionsController#destroy as HTML
2630
+ Redirected to http://test.host/signed_out
2631
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2632
+  (0.1ms) rollback transaction
2633
+  (0.1ms) begin transaction
2634
+ Processing by SessionsController#failure as HTML
2635
+ Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)
2636
+  (0.1ms) rollback transaction
2637
+  (0.1ms) begin transaction
2638
+ Processing by SessionsController#failure as HTML
2639
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
2640
+  (0.1ms) rollback transaction
2641
+  (0.1ms) begin transaction
2642
+  (0.0ms) SAVEPOINT active_record_1
2643
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2644
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2645
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2646
+  (0.1ms) SAVEPOINT active_record_1
2647
+ SQL (1.5ms) 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"]]
2648
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2649
+  (0.5ms) rollback transaction
2650
+  (0.1ms) begin transaction
2651
+  (0.0ms) SAVEPOINT active_record_1
2652
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2654
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2655
+  (0.1ms) SAVEPOINT active_record_1
2656
+ SQL (0.5ms) 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"]]
2657
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2658
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2659
+  (0.5ms) rollback transaction
2660
+  (0.1ms) begin transaction
2661
+  (0.1ms) SAVEPOINT active_record_1
2662
+ SQL (0.4ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2663
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2664
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2665
+  (0.0ms) SAVEPOINT active_record_1
2666
+ 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"]]
2667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2668
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2669
+  (0.5ms) rollback transaction
2670
+  (0.1ms) begin transaction
2671
+  (0.0ms) SAVEPOINT active_record_1
2672
+ 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"]]
2673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2674
+  (0.0ms) SAVEPOINT active_record_1
2675
+ 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]]
2676
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2677
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2678
+  (0.3ms) rollback transaction
2679
+  (0.5ms) begin transaction
2680
+ Processing by SessionsController#failure as HTML
2681
+ Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.3ms)
2682
+ Completed 200 OK in 8ms (Views: 8.1ms | ActiveRecord: 0.0ms)
2683
+  (0.1ms) rollback transaction
2684
+  (0.1ms) begin transaction
2685
+ Processing by SessionsController#failure as HTML
2686
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
2687
+  (0.1ms) rollback transaction
2688
+  (0.1ms) begin transaction
2689
+ Processing by SessionsController#destroy as HTML
2690
+ Redirected to http://test.host/
2691
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2692
+  (0.1ms) rollback transaction
2693
+  (0.1ms) begin transaction
2694
+ Processing by SessionsController#destroy as HTML
2695
+ Redirected to http://test.host/signed_out
2696
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2697
+  (0.1ms) rollback transaction
2698
+  (0.0ms) begin transaction
2699
+ Processing by SessionsController#create as HTML
2700
+ Parameters: {"provider"=>"bookingsync"}
2701
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2702
+  (0.1ms) SAVEPOINT active_record_1
2703
+ SQL (3.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]]
2704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2705
+ Redirected to http://test.host/admin
2706
+ Completed 302 Found in 19ms (ActiveRecord: 4.9ms)
2707
+  (0.7ms) rollback transaction
2708
+  (0.1ms) begin transaction
2709
+ Processing by SessionsController#create as HTML
2710
+ Parameters: {"provider"=>"bookingsync"}
2711
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2712
+  (0.1ms) SAVEPOINT active_record_1
2713
+ SQL (0.5ms) 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]]
2714
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2715
+ Redirected to http://test.host/
2716
+ Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
2717
+  (0.4ms) rollback transaction
2718
+  (0.1ms) begin transaction
2719
+ Processing by SessionsController#create as HTML
2720
+ Parameters: {"provider"=>"bookingsync"}
2721
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2722
+  (0.0ms) SAVEPOINT active_record_1
2723
+ 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]]
2724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2725
+ Redirected to http://test.host/
2726
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
2727
+  (0.5ms) rollback transaction
2728
+  (0.1ms) begin transaction
2729
+  (0.1ms) SAVEPOINT active_record_1
2730
+ SQL (0.5ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2731
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2732
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2733
+  (0.0ms) SAVEPOINT active_record_1
2734
+ SQL (1.0ms) 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"]]
2735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2736
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2737
+  (0.5ms) rollback transaction
2738
+  (0.1ms) begin transaction
2739
+  (0.0ms) SAVEPOINT active_record_1
2740
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2742
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2743
+  (0.1ms) SAVEPOINT active_record_1
2744
+ 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"]]
2745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2746
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2747
+  (0.5ms) rollback transaction
2748
+  (0.1ms) begin transaction
2749
+  (0.1ms) SAVEPOINT active_record_1
2750
+ SQL (0.3ms) INSERT INTO "accounts" ("provider", "uid") VALUES (?, ?) [["provider", "bookingsync"], ["uid", 123]]
2751
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2752
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2753
+  (0.0ms) SAVEPOINT active_record_1
2754
+ 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"]]
2755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2756
+  (0.5ms) rollback transaction
2757
+  (0.1ms) begin transaction
2758
+  (0.1ms) SAVEPOINT active_record_1
2759
+ SQL (0.4ms) 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"]]
2760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2761
+  (0.1ms) SAVEPOINT active_record_1
2762
+ SQL (0.5ms) 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]]
2763
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2764
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2765
+  (0.5ms) rollback transaction
2766
+  (0.3ms) begin transaction
2767
+ Processing by SessionsController#create as HTML
2768
+ Parameters: {"provider"=>"bookingsync"}
2769
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2770
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2771
+ Completed 500 Internal Server Error in 6ms
2772
+  (0.1ms) rollback transaction
2773
+  (0.1ms) begin transaction
2774
+ Processing by SessionsController#create as HTML
2775
+ Parameters: {"provider"=>"bookingsync"}
2776
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2777
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2778
+ Completed 500 Internal Server Error in 1ms
2779
+  (0.1ms) rollback transaction
2780
+  (0.1ms) begin transaction
2781
+ Processing by SessionsController#create as HTML
2782
+ Parameters: {"provider"=>"bookingsync"}
2783
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2784
+ SQLite3::SQLException: no such table: accounts: SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2785
+ Completed 500 Internal Server Error in 1ms
2786
+  (0.1ms) rollback transaction
2787
+  (0.1ms) begin transaction
2788
+ Processing by SessionsController#failure as HTML
2789
+ Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms)
2790
+  (0.1ms) rollback transaction
2791
+  (0.1ms) begin transaction
2792
+ Processing by SessionsController#failure as HTML
2793
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
2794
+  (0.1ms) rollback transaction
2795
+  (0.1ms) begin transaction
2796
+ Processing by SessionsController#destroy as HTML
2797
+ Redirected to http://test.host/
2798
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2799
+  (0.1ms) rollback transaction
2800
+  (0.1ms) begin transaction
2801
+ Processing by SessionsController#destroy as HTML
2802
+ Redirected to http://test.host/signed_out
2803
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2804
+  (0.1ms) rollback transaction
2805
+  (0.1ms) begin transaction
2806
+  (0.0ms) rollback transaction
2807
+  (0.0ms) begin transaction
2808
+  (0.0ms) rollback transaction
2809
+  (0.0ms) begin transaction
2810
+  (0.0ms) rollback transaction
2811
+  (0.0ms) begin transaction
2812
+  (0.0ms) rollback transaction
2813
+  (3.3ms) 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)) 
2814
+  (1.1ms) CREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")
2815
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2816
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2817
+  (0.2ms) SELECT version FROM "schema_migrations"
2818
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
2819
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
2820
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2821
+  (0.3ms) begin transaction
2822
+ Processing by SessionsController#create as HTML
2823
+ Parameters: {"provider"=>"bookingsync"}
2824
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2825
+  (0.1ms) SAVEPOINT active_record_1
2826
+ SQL (7.8ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 22 May 2014 11:09: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, 22 May 2014 11:09:58 UTC +00:00]]
2827
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2828
+ Redirected to http://test.host/
2829
+ Completed 302 Found in 24ms (ActiveRecord: 9.2ms)
2830
+  (0.7ms) rollback transaction
2831
+  (0.1ms) begin transaction
2832
+ Processing by SessionsController#create as HTML
2833
+ Parameters: {"provider"=>"bookingsync"}
2834
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2835
+  (0.1ms) SAVEPOINT active_record_1
2836
+ 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", Thu, 22 May 2014 11:09: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, 22 May 2014 11:09:58 UTC +00:00]]
2837
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2838
+ Redirected to http://test.host/
2839
+ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
2840
+  (0.4ms) rollback transaction
2841
+  (0.1ms) begin transaction
2842
+ Processing by SessionsController#create as HTML
2843
+ Parameters: {"provider"=>"bookingsync"}
2844
+ Account Load (0.5ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2845
+  (0.1ms) SAVEPOINT active_record_1
2846
+ 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, 22 May 2014 11:09: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, 22 May 2014 11:09:58 UTC +00:00]]
2847
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2848
+ Redirected to http://test.host/admin
2849
+ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
2850
+  (0.4ms) rollback transaction
2851
+  (0.1ms) begin transaction
2852
+ Processing by SessionsController#destroy as HTML
2853
+ Redirected to http://test.host/
2854
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2855
+  (0.1ms) rollback transaction
2856
+  (0.1ms) begin transaction
2857
+ Processing by SessionsController#destroy as HTML
2858
+ Redirected to http://test.host/signed_out
2859
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2860
+  (0.1ms) rollback transaction
2861
+  (0.1ms) begin transaction
2862
+ Processing by SessionsController#failure as HTML
2863
+ Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms)
2864
+  (0.1ms) rollback transaction
2865
+  (0.1ms) begin transaction
2866
+ Processing by SessionsController#failure as HTML
2867
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
2868
+  (0.1ms) rollback transaction
2869
+  (0.1ms) begin transaction
2870
+  (0.0ms) SAVEPOINT active_record_1
2871
+ SQL (0.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 22 May 2014 11:09:58 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 22 May 2014 11:09:58 UTC +00:00]]
2872
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2873
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2874
+  (0.1ms) SAVEPOINT active_record_1
2875
+ SQL (1.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", Thu, 22 May 2014 11:09:58 UTC +00:00]]
2876
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2877
+  (0.5ms) rollback transaction
2878
+  (0.1ms) begin transaction
2879
+  (0.0ms) SAVEPOINT active_record_1
2880
+ SQL (0.8ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 22 May 2014 11:09:58 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 22 May 2014 11:09:58 UTC +00:00]]
2881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2882
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2883
+  (0.1ms) SAVEPOINT active_record_1
2884
+ SQL (0.6ms) 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, 22 May 2014 11:09:58 UTC +00:00]]
2885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2886
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2887
+  (0.5ms) rollback transaction
2888
+  (0.1ms) begin transaction
2889
+  (0.2ms) SAVEPOINT active_record_1
2890
+ SQL (0.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 22 May 2014 11:09:58 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Thu, 22 May 2014 11:09:58 UTC +00:00]]
2891
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2892
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2893
+  (0.0ms) SAVEPOINT active_record_1
2894
+ 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", Thu, 22 May 2014 11:09:58 UTC +00:00]]
2895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2896
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2897
+  (0.4ms) rollback transaction
2898
+  (0.1ms) begin transaction
2899
+  (0.1ms) SAVEPOINT active_record_1
2900
+ SQL (1.1ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 22 May 2014 11:09:58 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Thu, 22 May 2014 11:09:58 UTC +00:00]]
2901
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2902
+  (0.3ms) SAVEPOINT active_record_1
2903
+ 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", Thu, 22 May 2014 11:09:58 UTC +00:00]]
2904
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2905
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2906
+  (0.5ms) rollback transaction
2907
+  (0.4ms) begin transaction
2908
+ Processing by SessionsController#create as HTML
2909
+ Parameters: {"provider"=>"bookingsync"}
2910
+ Account Load (0.5ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2911
+  (0.1ms) SAVEPOINT active_record_1
2912
+ SQL (5.6ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 23 May 2014 13:38:30 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, 23 May 2014 13:38:30 UTC +00:00]]
2913
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2914
+ Redirected to http://test.host/
2915
+ Completed 302 Found in 26ms (ActiveRecord: 7.8ms)
2916
+  (0.8ms) rollback transaction
2917
+  (0.1ms) begin transaction
2918
+ Processing by SessionsController#create as HTML
2919
+ Parameters: {"provider"=>"bookingsync"}
2920
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2921
+  (0.1ms) SAVEPOINT active_record_1
2922
+ 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", Fri, 23 May 2014 13:38:30 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, 23 May 2014 13:38:30 UTC +00:00]]
2923
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2924
+ Redirected to http://test.host/
2925
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
2926
+  (0.4ms) rollback transaction
2927
+  (0.1ms) begin transaction
2928
+ Processing by SessionsController#create as HTML
2929
+ Parameters: {"provider"=>"bookingsync"}
2930
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2931
+  (0.1ms) SAVEPOINT active_record_1
2932
+ 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", Fri, 23 May 2014 13:38:30 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, 23 May 2014 13:38:30 UTC +00:00]]
2933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2934
+ Redirected to http://test.host/admin
2935
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
2936
+  (0.4ms) rollback transaction
2937
+  (0.1ms) begin transaction
2938
+ Processing by SessionsController#destroy as HTML
2939
+ Redirected to http://test.host/
2940
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2941
+  (0.1ms) rollback transaction
2942
+  (0.1ms) begin transaction
2943
+ Processing by SessionsController#destroy as HTML
2944
+ Redirected to http://test.host/signed_out
2945
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2946
+  (0.1ms) rollback transaction
2947
+  (0.1ms) begin transaction
2948
+ Processing by SessionsController#failure as HTML
2949
+ Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)
2950
+  (0.1ms) rollback transaction
2951
+  (0.1ms) begin transaction
2952
+ Processing by SessionsController#failure as HTML
2953
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
2954
+  (0.1ms) rollback transaction
2955
+  (0.1ms) begin transaction
2956
+  (0.1ms) SAVEPOINT active_record_1
2957
+ SQL (0.5ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 23 May 2014 13:38:31 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Fri, 23 May 2014 13:38:31 UTC +00:00]]
2958
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2959
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2960
+  (0.1ms) SAVEPOINT active_record_1
2961
+ SQL (1.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", Fri, 23 May 2014 13:38:31 UTC +00:00]]
2962
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2963
+  (0.6ms) rollback transaction
2964
+  (0.1ms) begin transaction
2965
+  (0.1ms) SAVEPOINT active_record_1
2966
+ SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 23 May 2014 13:38:31 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Fri, 23 May 2014 13:38:31 UTC +00:00]]
2967
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2968
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2969
+  (0.1ms) SAVEPOINT active_record_1
2970
+ 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", Fri, 23 May 2014 13:38:31 UTC +00:00]]
2971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2972
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2973
+  (0.6ms) rollback transaction
2974
+  (0.1ms) begin transaction
2975
+  (0.1ms) SAVEPOINT active_record_1
2976
+ SQL (0.4ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 23 May 2014 13:38:31 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Fri, 23 May 2014 13:38:31 UTC +00:00]]
2977
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2978
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2979
+  (0.1ms) SAVEPOINT active_record_1
2980
+ 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", Fri, 23 May 2014 13:38:31 UTC +00:00]]
2981
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2982
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2983
+  (0.5ms) rollback transaction
2984
+  (0.1ms) begin transaction
2985
+  (0.1ms) SAVEPOINT active_record_1
2986
+ SQL (0.4ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 23 May 2014 13:38:31 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Fri, 23 May 2014 13:38:31 UTC +00:00]]
2987
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2988
+  (0.0ms) SAVEPOINT active_record_1
2989
+ 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, 23 May 2014 13:38:31 UTC +00:00]]
2990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2991
+ Account Load (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
2992
+  (0.4ms) rollback transaction
2993
+  (0.3ms) begin transaction
2994
+ Processing by SessionsController#create as HTML
2995
+ Parameters: {"provider"=>"bookingsync"}
2996
+ Account Load (0.4ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
2997
+  (0.1ms) SAVEPOINT active_record_1
2998
+ SQL (5.6ms) INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 11 Jun 2014 09:56:54 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, 11 Jun 2014 09:56:54 UTC +00:00]]
2999
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3000
+ Redirected to http://test.host/
3001
+ Completed 302 Found in 23ms (ActiveRecord: 7.5ms)
3002
+  (0.7ms) rollback transaction
3003
+  (0.1ms) begin transaction
3004
+ Processing by SessionsController#create as HTML
3005
+ Parameters: {"provider"=>"bookingsync"}
3006
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
3007
+  (0.1ms) SAVEPOINT active_record_1
3008
+ 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", Wed, 11 Jun 2014 09:56:54 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, 11 Jun 2014 09:56:54 UTC +00:00]]
3009
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3010
+ Redirected to http://test.host/admin
3011
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
3012
+  (0.5ms) rollback transaction
3013
+  (0.1ms) begin transaction
3014
+ Processing by SessionsController#create as HTML
3015
+ Parameters: {"provider"=>"bookingsync"}
3016
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
3017
+  (0.1ms) SAVEPOINT active_record_1
3018
+ 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", Wed, 11 Jun 2014 09:56:54 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, 11 Jun 2014 09:56:54 UTC +00:00]]
3019
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3020
+ Redirected to http://test.host/
3021
+ Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
3022
+  (0.6ms) rollback transaction
3023
+  (0.2ms) begin transaction
3024
+ Processing by SessionsController#failure as HTML
3025
+ Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms)
3026
+  (0.1ms) rollback transaction
3027
+  (8.3ms) begin transaction
3028
+ Processing by SessionsController#failure as HTML
3029
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
3030
+  (0.1ms) rollback transaction
3031
+  (0.1ms) begin transaction
3032
+ Processing by SessionsController#destroy as HTML
3033
+ Redirected to http://test.host/
3034
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
3035
+  (0.1ms) rollback transaction
3036
+  (0.1ms) begin transaction
3037
+ Processing by SessionsController#destroy as HTML
3038
+ Redirected to http://test.host/signed_out
3039
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
3040
+  (0.1ms) rollback transaction
3041
+  (0.0ms) begin transaction
3042
+  (0.1ms) SAVEPOINT active_record_1
3043
+ SQL (0.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Jun 2014 09:56:54 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 11 Jun 2014 09:56:54 UTC +00:00]]
3044
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3045
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
3046
+  (0.1ms) SAVEPOINT active_record_1
3047
+ SQL (1.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, 11 Jun 2014 09:56:54 UTC +00:00]]
3048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3049
+  (0.4ms) rollback transaction
3050
+  (0.3ms) begin transaction
3051
+  (0.1ms) SAVEPOINT active_record_1
3052
+ SQL (0.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Jun 2014 09:56:54 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 11 Jun 2014 09:56:54 UTC +00:00]]
3053
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3054
+ Account Load (0.3ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
3055
+  (0.1ms) SAVEPOINT active_record_1
3056
+ 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, 11 Jun 2014 09:56:54 UTC +00:00]]
3057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3058
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
3059
+  (0.4ms) rollback transaction
3060
+  (0.2ms) begin transaction
3061
+  (0.1ms) SAVEPOINT active_record_1
3062
+ SQL (0.6ms) INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Jun 2014 09:56:54 UTC +00:00], ["provider", "bookingsync"], ["uid", 123], ["updated_at", Wed, 11 Jun 2014 09:56:54 UTC +00:00]]
3063
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3064
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."provider" = 'bookingsync' AND "accounts"."uid" = 123 ORDER BY "accounts"."id" ASC LIMIT 1
3065
+  (0.2ms) SAVEPOINT active_record_1
3066
+ SQL (0.6ms) 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, 11 Jun 2014 09:56:54 UTC +00:00]]
3067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3068
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
3069
+  (0.6ms) rollback transaction
3070
+  (0.1ms) begin transaction
3071
+  (0.1ms) rollback transaction
3072
+  (0.1ms) begin transaction
3073
+  (0.1ms) SAVEPOINT active_record_1
3074
+ SQL (0.6ms) INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 11 Jun 2014 09:56:54 UTC +00:00], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", Wed, 11 Jun 2014 09:56:54 UTC +00:00]]
3075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3076
+  (0.1ms) SAVEPOINT active_record_1
3077
+ SQL (1.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, 11 Jun 2014 09:56:54 UTC +00:00]]
3078
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3079
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
3080
+  (0.5ms) rollback transaction