bookingsync-engine 3.0.1 → 3.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0f466220c045d99d4b010da4dc7785a14ec9546
4
- data.tar.gz: f2f4fb7f441d9d0616b89fbc96833b55211dd37b
3
+ metadata.gz: fa68e5ba114ee9b351c0dfacaec2c0d56f2cc64a
4
+ data.tar.gz: 99916f007b04601ccb170e133a1470830eab6d1e
5
5
  SHA512:
6
- metadata.gz: 468496d45c096631d7ad85b7b3d63bb1a0e83c5aacfc9bc6f91f0556899f907002a90caa25e43a45d015a18b48876f541c2e160fa39135794880e2d03cd11b79
7
- data.tar.gz: a1706c91b5c94f0270585809a1bb30785f0f42904949e5fff9e4d0e70c14898afcf22dbc1b8c04002257d4d1910705066e534bf22427901e10d0e7206b771058
6
+ metadata.gz: f97b8fc8de54d27ba06dc978b9d04e109642e54217525e92572d2b37f6f12d7e328a50e948192896b47f1154ff05a12aafa2a6312aacba36491c6d9d9db7686a
7
+ data.tar.gz: 748de1f1bf239b791435258e214ad704092f67bad7e5ff61d266b5961fbc35563f2c0707ff6017b842303a81d1f9650af540aa3fbca611b52b9ba13e68585936
@@ -50,12 +50,8 @@ module BookingSync::Engine::Model
50
50
  end
51
51
 
52
52
  def update_token!(token)
53
- Thread.new do
54
- ActiveRecord::Base.connection_pool.with_connection do
55
- update_token(token)
56
- save!
57
- end
58
- end.join
53
+ update_token(token)
54
+ save!
59
55
  end
60
56
 
61
57
  def clear_token!
@@ -1,3 +1,3 @@
1
1
  module BookingSync
2
- ENGINE_VERSION = "3.0.1"
2
+ ENGINE_VERSION = "3.0.2"
3
3
  end
@@ -1,453 +1,20 @@
1
-  (1.1ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar) 
2
-  (0.2ms) select sqlite_version(*)
3
-  (1.1ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
4
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
5
-  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
-  (0.2ms) SELECT version FROM "schema_migrations"
7
-  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
8
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
9
-  (1.1ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar) 
10
-  (0.1ms) select sqlite_version(*)
11
-  (1.0ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
12
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
13
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
14
-  (0.1ms) SELECT version FROM "schema_migrations"
15
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
16
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
17
-  (1.2ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar) 
18
-  (0.1ms) select sqlite_version(*)
19
-  (1.1ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
20
-  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
21
-  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
22
-  (0.2ms) SELECT version FROM "schema_migrations"
23
-  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
24
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
25
-  (1.5ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar(255), "synced_id" integer, "name" varchar(255), "oauth_access_token" varchar(255), "oauth_refresh_token" varchar(255), "oauth_expires_at" varchar(255)) 
26
-  (0.1ms) select sqlite_version(*)
27
-  (1.2ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
28
-  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
29
-  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
30
-  (0.2ms) SELECT version FROM "schema_migrations"
31
-  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
32
-  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
33
-  (2.2ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar) 
34
-  (0.3ms) select sqlite_version(*)
35
-  (1.4ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
36
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
37
-  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38
-  (0.1ms) SELECT version FROM "schema_migrations"
39
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
40
-  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
41
-  (1.9ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar)
42
-  (0.1ms) select sqlite_version(*)
43
-  (1.1ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
44
-  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
45
-  (0.1ms) SELECT version FROM "schema_migrations"
46
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
47
-  (0.9ms) INSERT INTO schema_migrations (version) VALUES ('20140522110326');
48
-
49
- 
50
-  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
51
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
52
-  (0.2ms) begin transaction
53
- SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 17:45:51 UTC], ["updated_at", 2016-08-22 17:45:51 UTC]]
54
-  (0.9ms) commit transaction
55
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
56
-  (0.1ms) begin transaction
57
-  (0.1ms) commit transaction
58
-  (3.0ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar)
59
-  (0.1ms) select sqlite_version(*)
60
-  (1.2ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
61
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
62
-  (0.1ms) SELECT version FROM "schema_migrations"
63
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
64
-  (0.9ms) INSERT INTO schema_migrations (version) VALUES ('20140522110326');
65
-
66
- 
67
-  (1.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
68
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
69
-  (0.1ms) begin transaction
70
- SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 17:48:52 UTC], ["updated_at", 2016-08-22 17:48:52 UTC]]
71
-  (2.7ms) commit transaction
72
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
73
-  (0.1ms) begin transaction
74
-  (0.0ms) commit transaction
75
-  (1.3ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar)
76
-  (0.1ms) select sqlite_version(*)
77
-  (1.1ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
78
-  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
79
-  (0.1ms) SELECT version FROM "schema_migrations"
80
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
81
-  (1.0ms) INSERT INTO schema_migrations (version) VALUES ('20140522110326');
82
-
83
- 
84
-  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
85
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
86
-  (0.1ms) begin transaction
87
- SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 17:51:11 UTC], ["updated_at", 2016-08-22 17:51:11 UTC]]
88
-  (0.9ms) commit transaction
89
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
90
-  (0.1ms) begin transaction
91
-  (0.1ms) commit transaction
92
-  (1.4ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar)
93
-  (0.1ms) select sqlite_version(*)
94
-  (1.0ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
95
-  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
96
-  (0.1ms) SELECT version FROM "schema_migrations"
97
-  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
98
-  (1.0ms) INSERT INTO schema_migrations (version) VALUES ('20140522110326');
99
-
100
- 
101
-  (1.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
102
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
103
-  (0.1ms) begin transaction
104
- SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 17:53:46 UTC], ["updated_at", 2016-08-22 17:53:46 UTC]]
105
-  (0.9ms) commit transaction
106
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
107
-  (0.1ms) begin transaction
108
-  (0.1ms) commit transaction
109
-  (1.8ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar)
110
-  (0.1ms) select sqlite_version(*)
111
-  (1.3ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
112
-  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
113
-  (0.2ms) SELECT version FROM "schema_migrations"
114
-  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
115
-  (1.0ms) INSERT INTO schema_migrations (version) VALUES ('20140522110326');
116
-
117
- 
118
-  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
119
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
120
-  (0.1ms) begin transaction
121
- SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 17:54:47 UTC], ["updated_at", 2016-08-22 17:54:47 UTC]]
122
-  (0.9ms) commit transaction
123
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
124
-  (0.1ms) begin transaction
125
-  (0.1ms) commit transaction
126
-  (3.1ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar)
127
-  (0.2ms) select sqlite_version(*)
128
-  (1.3ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
129
-  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
130
-  (0.1ms) SELECT version FROM "schema_migrations"
131
-  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
132
-  (1.1ms) INSERT INTO schema_migrations (version) VALUES ('20140522110326');
133
-
134
- 
135
-  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
136
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
137
-  (0.2ms) begin transaction
138
- SQL (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 17:55:44 UTC], ["updated_at", 2016-08-22 17:55:44 UTC]]
139
-  (0.9ms) commit transaction
140
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
141
-  (0.1ms) begin transaction
142
-  (0.1ms) commit transaction
143
-  (3.8ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar)
144
-  (0.1ms) select sqlite_version(*)
145
-  (1.1ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
146
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
147
-  (0.1ms) SELECT version FROM "schema_migrations"
148
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
149
-  (0.9ms) INSERT INTO schema_migrations (version) VALUES ('20140522110326');
150
-
151
- 
152
-  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
153
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
154
-  (0.1ms) begin transaction
155
- SQL (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 17:56:05 UTC], ["updated_at", 2016-08-22 17:56:05 UTC]]
156
-  (0.9ms) commit transaction
157
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
158
-  (0.1ms) begin transaction
159
-  (0.0ms) commit transaction
160
-  (1.3ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar) 
161
-  (0.1ms) select sqlite_version(*)
162
-  (1.2ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
163
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
164
-  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
165
-  (0.1ms) SELECT version FROM "schema_migrations"
166
-  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
167
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
168
-  (2.1ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar) 
169
-  (0.2ms) select sqlite_version(*)
170
-  (1.2ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
171
-  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
172
-  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
173
-  (0.3ms) SELECT version FROM "schema_migrations"
174
-  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
175
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
176
-  (3.7ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar)
177
-  (0.1ms) select sqlite_version(*)
178
-  (1.4ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
179
-  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
180
-  (0.2ms) SELECT version FROM "schema_migrations"
181
-  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
182
-  (0.9ms) INSERT INTO schema_migrations (version) VALUES ('20140522110326');
183
-
184
- 
185
-  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
186
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
187
-  (0.1ms) begin transaction
188
- SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 18:00:52 UTC], ["updated_at", 2016-08-22 18:00:52 UTC]]
189
-  (1.0ms) commit transaction
190
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
191
-  (0.1ms) begin transaction
192
-  (0.1ms) commit transaction
193
-  (2.8ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar)
194
-  (0.1ms) select sqlite_version(*)
195
-  (1.1ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
196
-  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
197
-  (0.1ms) SELECT version FROM "schema_migrations"
198
-  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
199
-  (0.9ms) INSERT INTO schema_migrations (version) VALUES ('20140522110326');
200
-
201
- 
202
-  (1.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
203
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
204
-  (0.2ms) begin transaction
205
- SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 18:02:08 UTC], ["updated_at", 2016-08-22 18:02:08 UTC]]
206
-  (0.9ms) commit transaction
207
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
208
-  (0.1ms) begin transaction
209
-  (0.1ms) commit transaction
210
-  (2.9ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar)
211
-  (0.1ms) select sqlite_version(*)
212
-  (1.0ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
213
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
214
-  (0.1ms) SELECT version FROM "schema_migrations"
215
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
216
-  (1.0ms) INSERT INTO schema_migrations (version) VALUES ('20140522110326');
217
-
218
- 
219
-  (1.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
220
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
221
-  (0.1ms) begin transaction
222
- SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 18:02:43 UTC], ["updated_at", 2016-08-22 18:02:43 UTC]]
223
-  (1.0ms) commit transaction
224
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
225
-  (0.1ms) begin transaction
226
-  (0.1ms) commit transaction
227
-  (2.7ms) DROP DATABASE IF EXISTS "bookingsync_engine_test"
228
-  (591.6ms) CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'
229
-  (16.2ms) CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)
230
-  (1.9ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
231
-  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
232
-  (0.5ms) SELECT version FROM "schema_migrations"
233
-  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
234
-  (0.3ms) INSERT INTO schema_migrations (version) VALUES ('20140522110326');
235
-
236
- 
237
-  (2.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
238
- ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
239
-  (0.4ms) BEGIN
240
- SQL (2.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 18:16:07 UTC], ["updated_at", 2016-08-22 18:16:07 UTC]]
241
-  (0.4ms) COMMIT
242
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
243
-  (0.1ms) BEGIN
244
-  (0.2ms) COMMIT
245
-  (119.7ms) DROP DATABASE IF EXISTS "bookingsync_engine_test"
246
-  (251.9ms) CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'
247
-  (6.8ms) CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) 
248
-  (1.1ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
249
-  (3.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
250
-  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
251
-  (0.6ms) SELECT version FROM "schema_migrations"
252
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
253
-  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
254
-  (1.9ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar, "synced_id" integer, "name" varchar, "oauth_access_token" varchar, "oauth_refresh_token" varchar, "oauth_expires_at" varchar) 
255
-  (0.2ms) select sqlite_version(*)
256
-  (1.3ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
257
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
258
-  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
259
-  (0.2ms) SELECT version FROM "schema_migrations"
260
-  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
261
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
262
-  (33.7ms) CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) 
263
-  (1.1ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
264
-  (4.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
265
-  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
266
-  (1.0ms) SELECT version FROM "schema_migrations"
267
-  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
268
-  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
269
-  (122.5ms) DROP DATABASE IF EXISTS "bookingsync_engine_test"
270
-  (394.5ms) CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'
271
-  (24.8ms) CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying(255), "synced_id" integer, "name" character varying(255), "oauth_access_token" character varying(255), "oauth_refresh_token" character varying(255), "oauth_expires_at" character varying(255)) 
272
-  (1.5ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
273
-  (12.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
274
-  (12.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
275
-  (1.0ms) SELECT version FROM "schema_migrations"
276
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
277
-  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
278
-  (119.7ms) DROP DATABASE IF EXISTS "bookingsync_engine_test"
279
-  (245.7ms) CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'
280
-  (31.1ms) CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) 
281
-  (8.2ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
282
-  (19.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
283
-  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
284
-  (0.6ms) SELECT version FROM "schema_migrations"
285
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
286
-  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
287
- ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
288
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
289
-  (28.6ms) CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) 
290
-  (1.6ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
291
-  (23.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
292
-  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
293
-  (0.4ms) SELECT version FROM "schema_migrations"
294
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
295
-  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
296
-  (7.4ms) CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)
297
-  (1.5ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
298
-  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
299
-  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
300
-  (2.5ms) SELECT version FROM "schema_migrations"
301
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
302
-  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
303
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
304
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
305
-  (26.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
306
-  (6.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
307
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
308
- Migrating to CreateAccounts (20140522110326)
309
-  (11.6ms) BEGIN
310
- DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/manda/projects/bookingsync-engine/spec/dummy/db/migrate/20140522110326_create_accounts.rb:5)
311
-  (11.3ms) CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp) 
312
- SQL (12.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140522110326"]]
313
-  (11.1ms) COMMIT
314
- Migrating to AddOAuthFieldsToAccounts (20140522110454)
315
-  (5.6ms) BEGIN
316
-  (3.9ms) ALTER TABLE "accounts" ADD "provider" character varying
317
-  (0.4ms) ALTER TABLE "accounts" ADD "synced_id" integer
318
-  (1.1ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
319
-  (0.3ms) ALTER TABLE "accounts" ADD "name" character varying
320
-  (0.3ms) ALTER TABLE "accounts" ADD "oauth_access_token" character varying
321
-  (0.3ms) ALTER TABLE "accounts" ADD "oauth_refresh_token" character varying
322
-  (0.3ms) ALTER TABLE "accounts" ADD "oauth_expires_at" character varying
323
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140522110454"]]
324
-  (0.6ms) COMMIT
325
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
326
-  (4.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
327
- FROM pg_constraint c
328
- JOIN pg_class t1 ON c.conrelid = t1.oid
329
- JOIN pg_class t2 ON c.confrelid = t2.oid
330
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
331
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
332
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
333
- WHERE c.contype = 'f'
334
- AND t1.relname = 'accounts'
335
- AND t3.nspname = ANY (current_schemas(false))
336
- ORDER BY c.conname
337
- 
338
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
339
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
340
-  (19.7ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
341
-  (25.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
342
-  (0.4ms) SELECT pg_try_advisory_lock(4021716121895623095);
343
- ActiveRecord::SchemaMigration Load (6.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
344
- Migrating to CreateAccounts (20140522110326)
345
-  (5.7ms) BEGIN
346
- DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
347
-
348
- class CreateAccounts < ActiveRecord::Migration[4.2] (called from load at /Users/manda/.rvm/gems/ruby-2.3.1/bin/rake:23)
349
-  (13.9ms) CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp)
350
- SQL (6.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20140522110326"]]
351
-  (12.5ms) COMMIT
352
- Migrating to AddOAuthFieldsToAccounts (20140522110454)
353
-  (5.6ms) BEGIN
354
- DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
355
-
356
- class AddOAuthFieldsToAccounts < ActiveRecord::Migration[4.2] (called from load at /Users/manda/.rvm/gems/ruby-2.3.1/bin/rake:23)
357
-  (14.6ms) ALTER TABLE "accounts" ADD "provider" character varying
358
-  (4.7ms) ALTER TABLE "accounts" ADD "synced_id" integer
359
-  (1.5ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" ("synced_id")
360
-  (0.7ms) ALTER TABLE "accounts" ADD "name" character varying
361
-  (0.4ms) ALTER TABLE "accounts" ADD "oauth_access_token" character varying
362
-  (0.6ms) ALTER TABLE "accounts" ADD "oauth_refresh_token" character varying
363
-  (0.8ms) ALTER TABLE "accounts" ADD "oauth_expires_at" character varying
364
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20140522110454"]]
365
-  (0.5ms) COMMIT
366
- ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
367
-  (0.2ms) BEGIN
368
- SQL (6.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 19:43:57 UTC], ["updated_at", 2016-08-22 19:43:57 UTC]]
369
-  (11.7ms) COMMIT
370
-  (5.9ms) SELECT pg_advisory_unlock(4021716121895623095)
371
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
372
-  (3.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
373
- FROM pg_constraint c
374
- JOIN pg_class t1 ON c.conrelid = t1.oid
375
- JOIN pg_class t2 ON c.confrelid = t2.oid
376
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
377
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
378
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
379
- WHERE c.contype = 'f'
380
- AND t1.relname = 'accounts'
381
- AND t3.nspname = ANY (current_schemas(false))
382
- ORDER BY c.conname
383
- 
384
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
385
-  (12.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
386
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
387
-  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
388
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
389
-  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
390
-  (117.7ms) DROP DATABASE IF EXISTS "bookingsync_engine_test"
391
-  (403.2ms) CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'
392
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
393
-  (6.4ms) CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)
394
-  (1.4ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")
395
-  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
396
-  (0.7ms) SELECT version FROM "schema_migrations"
397
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
398
-  (0.5ms) INSERT INTO schema_migrations (version) VALUES ('20140522110326');
399
-
400
- 
401
-  (3.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
402
- ActiveRecord::InternalMetadata Load (5.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
403
-  (6.1ms) BEGIN
404
- SQL (6.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 19:44:14 UTC], ["updated_at", 2016-08-22 19:44:14 UTC]]
405
-  (0.5ms) COMMIT
406
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
407
-  (0.1ms) BEGIN
408
-  (0.1ms) COMMIT
409
-  (120.7ms) DROP DATABASE IF EXISTS "bookingsync_engine_test"
410
-  (246.8ms) CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'
411
- SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
412
-  (17.4ms) CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying(255), "synced_id" integer, "name" character varying(255), "oauth_access_token" character varying(255), "oauth_refresh_token" character varying(255), "oauth_expires_at" character varying(255))
413
-  (3.1ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")
414
-  (12.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
415
-  (11.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
416
-  (0.7ms) SELECT version FROM "schema_migrations"
417
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
418
-  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
419
-  (118.5ms) DROP DATABASE IF EXISTS "bookingsync_engine_test"
420
-  (245.2ms) CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'
421
- SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
422
-  (18.7ms) CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)
423
-  (1.2ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")
424
-  (24.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
425
-  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
426
-  (0.6ms) SELECT version FROM "schema_migrations"
427
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
428
-  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
429
- ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
430
-  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
431
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
432
-  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
433
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
434
-  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
435
-  (124.2ms) DROP DATABASE IF EXISTS "bookingsync_engine_test"
436
-  (250.2ms) CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'
437
- SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
438
-  (6.5ms) CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)
439
-  (1.3ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")
440
-  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
441
-  (0.6ms) SELECT version FROM "schema_migrations"
442
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
443
-  (0.5ms) INSERT INTO schema_migrations (version) VALUES ('20140522110326');
444
-
445
- 
446
-  (2.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
447
- ActiveRecord::InternalMetadata Load (6.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
448
-  (5.8ms) BEGIN
449
- SQL (6.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", 2016-08-22 19:44:49 UTC], ["updated_at", 2016-08-22 19:44:49 UTC]]
1
+  (0.3ms) DROP DATABASE IF EXISTS "test"
2
+  (263.2ms) CREATE DATABASE "test" ENCODING = 'utf8'
3
+  (0.4ms) DROP TABLE IF EXISTS "accounts" CASCADE
4
+  (5.1ms) CREATE TABLE "accounts" ("id" bigserial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)
5
+  (1.6ms) CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")
6
+  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
7
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (20140522110454)
9
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES
10
+ (20140522110326);
11
+
12
+ 
13
+  (4.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
14
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
15
+  (0.5ms) BEGIN
16
+ SQL (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2017-11-29 18:27:09.450134"], ["updated_at", "2017-11-29 18:27:09.450134"]]
17
+  (1.0ms) COMMIT
18
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
19
+  (0.6ms) BEGIN
450
20
   (0.6ms) COMMIT
451
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
452
-  (0.1ms) BEGIN
453
-  (0.1ms) COMMIT