openstax_accounts 5.0.1 → 5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0703526db3d18e603ca88f8867c5544622df2c99
4
- data.tar.gz: 061948a2df5ce177ceae61364a362aaf1f29fa16
3
+ metadata.gz: bae41d11d6554047d7d2fb3bca92474c72badffd
4
+ data.tar.gz: 5141d9ff8cada7d933cf4e430fb26f260769c08f
5
5
  SHA512:
6
- metadata.gz: c2b6ba5462bf70ac4115706560c2576ed0d19ee17620d75f32c856c60e1158243a6ec14174db927156e4bfac318fad3b08b18b0d50698acd17d708e4031e8418
7
- data.tar.gz: f9c3e5bd7a0d31a75b192c2a11d0bc613d92ac7d77c8e0de96da34ef08f48285a2b42ff9c999995d966d6e94e24856df7c6eac79d47d29646caaa4a0fb20a0bc
6
+ metadata.gz: a7b1cce9d3922eb6e09f5bd21893192b35570500e49758a6fb419a640717f907ea25ed3ca47557d374af776d6dc5bb362b2bd4a69b5cb846b04e0dc9eec115d5
7
+ data.tar.gz: c359ae438aa9cbd212b9181fe1d5affb24d7ab65a0c70f1964033c1875fc44d4c447e1243e661c0557340e766b9881133a8f4b58b29287fc3bcb9d2adfd026a8
@@ -0,0 +1,16 @@
1
+ module OpenStax
2
+ module Accounts
3
+ module Api
4
+ module V1
5
+ class UnclaimedAccountRepresenter < Roar::Decorator
6
+ include Roar::JSON
7
+
8
+ property :id,
9
+ type: Integer,
10
+ readable: true,
11
+ writeable: true
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,36 @@
1
+ # Routine for creating a temporary account by email or username
2
+
3
+ module OpenStax
4
+ module Accounts
5
+ class CreateTempAccount
6
+
7
+ lev_routine
8
+
9
+ protected
10
+
11
+ def exec(inputs={})
12
+ response = Api.create_temp_account(inputs)
13
+ fatal_error(code: :invalid_inputs) unless response.status == 200
14
+
15
+ struct = OpenStruct.new
16
+ Api::V1::UnclaimedAccountRepresenter.new(struct).from_json(response.body)
17
+ id = struct.id
18
+
19
+ account = Account.find_or_initialize_by(openstax_uid: id)
20
+
21
+ unless account.persisted?
22
+ username = inputs[:username]
23
+ while username.nil? || Account.where(username: username).exists? do
24
+ username = SecureRandom.hex(3).to_s
25
+ end
26
+ account.username = username
27
+ account.save!
28
+ end
29
+
30
+ transfer_errors_from(account, {type: :verbatim}, true)
31
+ outputs[:account] = account
32
+ end
33
+
34
+ end
35
+ end
36
+ end
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Accounts
3
- VERSION = "5.0.1"
3
+ VERSION = "5.1.0"
4
4
  end
5
5
  end
@@ -0,0 +1,261 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://secret:secret@localhost:2999/oauth/token
6
+ body:
7
+ encoding: UTF-8
8
+ string: grant_type=client_credentials
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.1
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-store
25
+ Pragma:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ X-Ua-Compatible:
30
+ - IE=Edge
31
+ Etag:
32
+ - '"a5858bbdfc70a576990fb6a4199bd3ec"'
33
+ X-Request-Id:
34
+ - 086fd9cd39adbef2aaefd93c36541e05
35
+ X-Runtime:
36
+ - '0.097231'
37
+ Connection:
38
+ - close
39
+ Server:
40
+ - thin 1.5.1 codename Straight Razor
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"access_token":"7bac608db1ed74cda2d1f1cc343b1b42ab98e2ade5a81354ee42b97254d80f27","token_type":"bearer"}'
44
+ http_version:
45
+ recorded_at: Wed, 15 Apr 2015 15:44:43 GMT
46
+ - request:
47
+ method: post
48
+ uri: http://localhost:2999/api/user/find-or-create
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"email":"alice@example.com"}'
52
+ headers:
53
+ User-Agent:
54
+ - Faraday v0.9.1
55
+ Accept:
56
+ - application/vnd.accounts.openstax.v1
57
+ Authorization:
58
+ - Bearer 7bac608db1ed74cda2d1f1cc343b1b42ab98e2ade5a81354ee42b97254d80f27
59
+ Content-Type:
60
+ - application/x-www-form-urlencoded
61
+ Accept-Encoding:
62
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
63
+ response:
64
+ status:
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ Content-Type:
69
+ - application/json; charset=utf-8
70
+ X-Ua-Compatible:
71
+ - IE=Edge
72
+ Etag:
73
+ - '"4f56edcb1558d4df2f77295f86059006"'
74
+ Cache-Control:
75
+ - max-age=0, private, must-revalidate
76
+ X-Request-Id:
77
+ - 76cbbdb3664feb1e450343d9d42ec550
78
+ X-Runtime:
79
+ - '0.282521'
80
+ Connection:
81
+ - close
82
+ Server:
83
+ - thin 1.5.1 codename Straight Razor
84
+ body:
85
+ encoding: UTF-8
86
+ string: '{"id":2}'
87
+ http_version:
88
+ recorded_at: Wed, 15 Apr 2015 15:44:44 GMT
89
+ - request:
90
+ method: post
91
+ uri: http://secret:secret@localhost:2999/oauth/token
92
+ body:
93
+ encoding: UTF-8
94
+ string: grant_type=client_credentials
95
+ headers:
96
+ User-Agent:
97
+ - Faraday v0.9.1
98
+ Content-Type:
99
+ - application/x-www-form-urlencoded
100
+ Accept-Encoding:
101
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
102
+ Accept:
103
+ - "*/*"
104
+ response:
105
+ status:
106
+ code: 200
107
+ message: OK
108
+ headers:
109
+ Cache-Control:
110
+ - no-store
111
+ Pragma:
112
+ - no-cache
113
+ Content-Type:
114
+ - application/json; charset=utf-8
115
+ X-Ua-Compatible:
116
+ - IE=Edge
117
+ Etag:
118
+ - '"4023cea7ef0c3779a4f6e5174ab9c869"'
119
+ X-Request-Id:
120
+ - e4d1e50de1a79fa82d72658652e4aa16
121
+ X-Runtime:
122
+ - '0.008763'
123
+ Connection:
124
+ - close
125
+ Server:
126
+ - thin 1.5.1 codename Straight Razor
127
+ body:
128
+ encoding: UTF-8
129
+ string: '{"access_token":"ba3d809ab8a1a98f87ee3f61f36a20ac4ca5fce8227631e34ad54471473d2d06","token_type":"bearer"}'
130
+ http_version:
131
+ recorded_at: Wed, 15 Apr 2015 15:44:44 GMT
132
+ - request:
133
+ method: post
134
+ uri: http://localhost:2999/api/user/find-or-create
135
+ body:
136
+ encoding: UTF-8
137
+ string: '{"username":"alice"}'
138
+ headers:
139
+ User-Agent:
140
+ - Faraday v0.9.1
141
+ Accept:
142
+ - application/vnd.accounts.openstax.v1
143
+ Authorization:
144
+ - Bearer ba3d809ab8a1a98f87ee3f61f36a20ac4ca5fce8227631e34ad54471473d2d06
145
+ Content-Type:
146
+ - application/x-www-form-urlencoded
147
+ Accept-Encoding:
148
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
149
+ response:
150
+ status:
151
+ code: 200
152
+ message: OK
153
+ headers:
154
+ Content-Type:
155
+ - application/json; charset=utf-8
156
+ X-Ua-Compatible:
157
+ - IE=Edge
158
+ Etag:
159
+ - '"a7f153d21e6c7effbc234f3242315d32"'
160
+ Cache-Control:
161
+ - max-age=0, private, must-revalidate
162
+ X-Request-Id:
163
+ - eb6294b4773cc983df1965624bac57ad
164
+ X-Runtime:
165
+ - '0.054532'
166
+ Connection:
167
+ - close
168
+ Server:
169
+ - thin 1.5.1 codename Straight Razor
170
+ body:
171
+ encoding: UTF-8
172
+ string: '{"id":3}'
173
+ http_version:
174
+ recorded_at: Wed, 15 Apr 2015 15:44:44 GMT
175
+ - request:
176
+ method: post
177
+ uri: http://secret:secret@localhost:2999/oauth/token
178
+ body:
179
+ encoding: UTF-8
180
+ string: grant_type=client_credentials
181
+ headers:
182
+ User-Agent:
183
+ - Faraday v0.9.1
184
+ Content-Type:
185
+ - application/x-www-form-urlencoded
186
+ Accept-Encoding:
187
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
188
+ Accept:
189
+ - "*/*"
190
+ response:
191
+ status:
192
+ code: 200
193
+ message: OK
194
+ headers:
195
+ Cache-Control:
196
+ - no-store
197
+ Pragma:
198
+ - no-cache
199
+ Content-Type:
200
+ - application/json; charset=utf-8
201
+ X-Ua-Compatible:
202
+ - IE=Edge
203
+ Etag:
204
+ - '"e9cab2e070f5610a194021934aef2879"'
205
+ X-Request-Id:
206
+ - c815b72269759776229c3f1fb0b48c1f
207
+ X-Runtime:
208
+ - '0.009257'
209
+ Connection:
210
+ - close
211
+ Server:
212
+ - thin 1.5.1 codename Straight Razor
213
+ body:
214
+ encoding: UTF-8
215
+ string: '{"access_token":"3d2a2c3934d78bd21d85a441e2a2043923f66f63be84b3d3b5f25388af40d8d8","token_type":"bearer"}'
216
+ http_version:
217
+ recorded_at: Wed, 15 Apr 2015 15:44:44 GMT
218
+ - request:
219
+ method: post
220
+ uri: http://localhost:2999/api/user/find-or-create
221
+ body:
222
+ encoding: UTF-8
223
+ string: '{"username":"alice2","password":"abcdefghijklmnop"}'
224
+ headers:
225
+ User-Agent:
226
+ - Faraday v0.9.1
227
+ Accept:
228
+ - application/vnd.accounts.openstax.v1
229
+ Authorization:
230
+ - Bearer 3d2a2c3934d78bd21d85a441e2a2043923f66f63be84b3d3b5f25388af40d8d8
231
+ Content-Type:
232
+ - application/x-www-form-urlencoded
233
+ Accept-Encoding:
234
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
235
+ response:
236
+ status:
237
+ code: 200
238
+ message: OK
239
+ headers:
240
+ Content-Type:
241
+ - application/json; charset=utf-8
242
+ X-Ua-Compatible:
243
+ - IE=Edge
244
+ Etag:
245
+ - '"cd51039fde58b80cf261c3f1a99da3ef"'
246
+ Cache-Control:
247
+ - max-age=0, private, must-revalidate
248
+ X-Request-Id:
249
+ - cabaea92fc03f74001752c9ee48838a2
250
+ X-Runtime:
251
+ - '0.011566'
252
+ Connection:
253
+ - close
254
+ Server:
255
+ - thin 1.5.1 codename Straight Razor
256
+ body:
257
+ encoding: UTF-8
258
+ string: '{"id":4}'
259
+ http_version:
260
+ recorded_at: Wed, 15 Apr 2015 15:44:44 GMT
261
+ recorded_with: VCR 2.9.3
@@ -34,4 +34,7 @@ Dummy::Application.configure do
34
34
 
35
35
  # Raises error for missing translations
36
36
  # config.action_view.raise_on_missing_translations = true
37
+
38
+ # Don't error out when trying to connect to external sites
39
+ WebMock.allow_net_connect!
37
40
  end
Binary file
@@ -13,7 +13,7 @@
13
13
 
14
14
  ActiveRecord::Schema.define(version: 6) do
15
15
 
16
- create_table "openstax_accounts_accounts", force: true do |t|
16
+ create_table "openstax_accounts_accounts", force: :cascade do |t|
17
17
  t.integer "openstax_uid", null: false
18
18
  t.string "username", null: false
19
19
  t.string "access_token"
@@ -32,7 +32,7 @@ ActiveRecord::Schema.define(version: 6) do
32
32
  add_index "openstax_accounts_accounts", ["openstax_uid"], name: "index_openstax_accounts_accounts_on_openstax_uid", unique: true
33
33
  add_index "openstax_accounts_accounts", ["username"], name: "index_openstax_accounts_accounts_on_username", unique: true
34
34
 
35
- create_table "openstax_accounts_group_members", force: true do |t|
35
+ create_table "openstax_accounts_group_members", force: :cascade do |t|
36
36
  t.integer "group_id", null: false
37
37
  t.integer "user_id", null: false
38
38
  t.datetime "created_at"
@@ -42,7 +42,7 @@ ActiveRecord::Schema.define(version: 6) do
42
42
  add_index "openstax_accounts_group_members", ["group_id", "user_id"], name: "index_openstax_accounts_group_members_on_group_id_and_user_id", unique: true
43
43
  add_index "openstax_accounts_group_members", ["user_id"], name: "index_openstax_accounts_group_members_on_user_id"
44
44
 
45
- create_table "openstax_accounts_group_nestings", force: true do |t|
45
+ create_table "openstax_accounts_group_nestings", force: :cascade do |t|
46
46
  t.integer "member_group_id", null: false
47
47
  t.integer "container_group_id", null: false
48
48
  t.datetime "created_at"
@@ -52,7 +52,7 @@ ActiveRecord::Schema.define(version: 6) do
52
52
  add_index "openstax_accounts_group_nestings", ["container_group_id"], name: "index_openstax_accounts_group_nestings_on_container_group_id"
53
53
  add_index "openstax_accounts_group_nestings", ["member_group_id"], name: "index_openstax_accounts_group_nestings_on_member_group_id", unique: true
54
54
 
55
- create_table "openstax_accounts_group_owners", force: true do |t|
55
+ create_table "openstax_accounts_group_owners", force: :cascade do |t|
56
56
  t.integer "group_id", null: false
57
57
  t.integer "user_id", null: false
58
58
  t.datetime "created_at"
@@ -62,7 +62,7 @@ ActiveRecord::Schema.define(version: 6) do
62
62
  add_index "openstax_accounts_group_owners", ["group_id", "user_id"], name: "index_openstax_accounts_group_owners_on_group_id_and_user_id", unique: true
63
63
  add_index "openstax_accounts_group_owners", ["user_id"], name: "index_openstax_accounts_group_owners_on_user_id"
64
64
 
65
- create_table "openstax_accounts_groups", force: true do |t|
65
+ create_table "openstax_accounts_groups", force: :cascade do |t|
66
66
  t.integer "openstax_uid", null: false
67
67
  t.boolean "is_public", default: false, null: false
68
68
  t.string "name"
@@ -75,7 +75,7 @@ ActiveRecord::Schema.define(version: 6) do
75
75
  add_index "openstax_accounts_groups", ["is_public"], name: "index_openstax_accounts_groups_on_is_public"
76
76
  add_index "openstax_accounts_groups", ["openstax_uid"], name: "index_openstax_accounts_groups_on_openstax_uid", unique: true
77
77
 
78
- create_table "ownerships", force: true do |t|
78
+ create_table "ownerships", force: :cascade do |t|
79
79
  t.integer "owner_id", null: false
80
80
  t.string "owner_type", null: false
81
81
  t.datetime "created_at"
@@ -84,7 +84,7 @@ ActiveRecord::Schema.define(version: 6) do
84
84
 
85
85
  add_index "ownerships", ["owner_id", "owner_type"], name: "index_ownerships_on_owner_id_and_owner_type", unique: true
86
86
 
87
- create_table "users", force: true do |t|
87
+ create_table "users", force: :cascade do |t|
88
88
  t.integer "account_id", null: false
89
89
  t.datetime "created_at"
90
90
  t.datetime "updated_at"
@@ -5697,3 +5697,1035 @@ Migrating to CreateOwnerships (6)
5697
5697
  FROM sqlite_temp_master
5698
5698
  WHERE name='index_users_on_account_id' AND type='index'
5699
5699
 
5700
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
5701
+  (0.1ms) select sqlite_version(*)
5702
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5703
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5704
+ Migrating to CreateOpenStaxAccountsAccounts (0)
5705
+  (0.0ms) begin transaction
5706
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/0_create_openstax_accounts_accounts.rb:12)
5707
+  (0.3ms) CREATE TABLE "openstax_accounts_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "openstax_uid" integer NOT NULL, "username" varchar NOT NULL, "access_token" varchar, "first_name" varchar, "last_name" varchar, "full_name" varchar, "title" varchar, "created_at" datetime, "updated_at" datetime)
5708
+  (0.8ms) CREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_openstax_uid" ON "openstax_accounts_accounts" ("openstax_uid")
5709
+  (0.1ms) SELECT sql
5710
+ FROM sqlite_master
5711
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
5712
+ UNION ALL
5713
+ SELECT sql
5714
+ FROM sqlite_temp_master
5715
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
5716
+
5717
+  (0.1ms) CREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_username" ON "openstax_accounts_accounts" ("username")
5718
+  (0.0ms) SELECT sql
5719
+ FROM sqlite_master
5720
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
5721
+ UNION ALL
5722
+ SELECT sql
5723
+ FROM sqlite_temp_master
5724
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
5725
+
5726
+  (0.0ms)  SELECT sql
5727
+ FROM sqlite_master
5728
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
5729
+ UNION ALL
5730
+ SELECT sql
5731
+ FROM sqlite_temp_master
5732
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
5733
+ 
5734
+  (0.1ms) CREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_access_token" ON "openstax_accounts_accounts" ("access_token")
5735
+  (0.1ms)  SELECT sql
5736
+ FROM sqlite_master
5737
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
5738
+ UNION ALL
5739
+ SELECT sql
5740
+ FROM sqlite_temp_master
5741
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
5742
+ 
5743
+  (0.0ms) SELECT sql
5744
+ FROM sqlite_master
5745
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
5746
+ UNION ALL
5747
+ SELECT sql
5748
+ FROM sqlite_temp_master
5749
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
5750
+
5751
+  (0.1ms)  SELECT sql
5752
+ FROM sqlite_master
5753
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
5754
+ UNION ALL
5755
+ SELECT sql
5756
+ FROM sqlite_temp_master
5757
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
5758
+ 
5759
+  (0.1ms) CREATE INDEX "index_openstax_accounts_accounts_on_first_name" ON "openstax_accounts_accounts" ("first_name")
5760
+  (0.0ms)  SELECT sql
5761
+ FROM sqlite_master
5762
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
5763
+ UNION ALL
5764
+ SELECT sql
5765
+ FROM sqlite_temp_master
5766
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
5767
+ 
5768
+  (0.0ms) SELECT sql
5769
+ FROM sqlite_master
5770
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
5771
+ UNION ALL
5772
+ SELECT sql
5773
+ FROM sqlite_temp_master
5774
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
5775
+
5776
+  (0.0ms)  SELECT sql
5777
+ FROM sqlite_master
5778
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
5779
+ UNION ALL
5780
+ SELECT sql
5781
+ FROM sqlite_temp_master
5782
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
5783
+ 
5784
+  (0.1ms) SELECT sql
5785
+ FROM sqlite_master
5786
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
5787
+ UNION ALL
5788
+ SELECT sql
5789
+ FROM sqlite_temp_master
5790
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
5791
+
5792
+  (0.1ms) CREATE INDEX "index_openstax_accounts_accounts_on_last_name" ON "openstax_accounts_accounts" ("last_name")
5793
+  (0.0ms) SELECT sql
5794
+ FROM sqlite_master
5795
+ WHERE name='index_openstax_accounts_accounts_on_last_name' AND type='index'
5796
+ UNION ALL
5797
+ SELECT sql
5798
+ FROM sqlite_temp_master
5799
+ WHERE name='index_openstax_accounts_accounts_on_last_name' AND type='index'
5800
+
5801
+  (0.0ms)  SELECT sql
5802
+ FROM sqlite_master
5803
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
5804
+ UNION ALL
5805
+ SELECT sql
5806
+ FROM sqlite_temp_master
5807
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
5808
+ 
5809
+  (0.0ms) SELECT sql
5810
+ FROM sqlite_master
5811
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
5812
+ UNION ALL
5813
+ SELECT sql
5814
+ FROM sqlite_temp_master
5815
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
5816
+
5817
+  (0.0ms)  SELECT sql
5818
+ FROM sqlite_master
5819
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
5820
+ UNION ALL
5821
+ SELECT sql
5822
+ FROM sqlite_temp_master
5823
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
5824
+ 
5825
+  (0.0ms) SELECT sql
5826
+ FROM sqlite_master
5827
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
5828
+ UNION ALL
5829
+ SELECT sql
5830
+ FROM sqlite_temp_master
5831
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
5832
+
5833
+  (0.1ms) CREATE INDEX "index_openstax_accounts_accounts_on_full_name" ON "openstax_accounts_accounts" ("full_name")
5834
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "0"]]
5835
+  (0.8ms) commit transaction
5836
+ Migrating to CreateOpenStaxAccountsGroups (1)
5837
+  (0.0ms) begin transaction
5838
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/1_create_openstax_accounts_groups.rb:10)
5839
+  (0.4ms) CREATE TABLE "openstax_accounts_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "openstax_uid" integer NOT NULL, "is_public" boolean DEFAULT 'f' NOT NULL, "name" varchar, "cached_subtree_group_ids" text, "cached_supertree_group_ids" text, "created_at" datetime, "updated_at" datetime) 
5840
+  (0.3ms) CREATE UNIQUE INDEX "index_openstax_accounts_groups_on_openstax_uid" ON "openstax_accounts_groups" ("openstax_uid")
5841
+  (0.1ms)  SELECT sql
5842
+ FROM sqlite_master
5843
+ WHERE name='index_openstax_accounts_groups_on_openstax_uid' AND type='index'
5844
+ UNION ALL
5845
+ SELECT sql
5846
+ FROM sqlite_temp_master
5847
+ WHERE name='index_openstax_accounts_groups_on_openstax_uid' AND type='index'
5848
+ 
5849
+  (0.1ms) CREATE INDEX "index_openstax_accounts_groups_on_is_public" ON "openstax_accounts_groups" ("is_public")
5850
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1"]]
5851
+  (0.8ms) commit transaction
5852
+ Migrating to CreateOpenStaxAccountsGroupMembers (2)
5853
+  (0.1ms) begin transaction
5854
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/2_create_openstax_accounts_group_members.rb:7)
5855
+  (0.3ms) CREATE TABLE "openstax_accounts_group_members" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group_id" integer NOT NULL, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
5856
+  (0.3ms) CREATE UNIQUE INDEX "index_openstax_accounts_group_members_on_group_id_and_user_id" ON "openstax_accounts_group_members" ("group_id", "user_id")
5857
+  (0.1ms) SELECT sql
5858
+ FROM sqlite_master
5859
+ WHERE name='index_openstax_accounts_group_members_on_group_id_and_user_id' AND type='index'
5860
+ UNION ALL
5861
+ SELECT sql
5862
+ FROM sqlite_temp_master
5863
+ WHERE name='index_openstax_accounts_group_members_on_group_id_and_user_id' AND type='index'
5864
+
5865
+  (0.1ms) CREATE INDEX "index_openstax_accounts_group_members_on_user_id" ON "openstax_accounts_group_members" ("user_id")
5866
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "2"]]
5867
+  (0.6ms) commit transaction
5868
+ Migrating to CreateOpenStaxAccountsGroupOwners (3)
5869
+  (0.0ms) begin transaction
5870
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/3_create_openstax_accounts_group_owners.rb:7)
5871
+  (0.2ms) CREATE TABLE "openstax_accounts_group_owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group_id" integer NOT NULL, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) 
5872
+  (0.2ms) CREATE UNIQUE INDEX "index_openstax_accounts_group_owners_on_group_id_and_user_id" ON "openstax_accounts_group_owners" ("group_id", "user_id")
5873
+  (0.1ms)  SELECT sql
5874
+ FROM sqlite_master
5875
+ WHERE name='index_openstax_accounts_group_owners_on_group_id_and_user_id' AND type='index'
5876
+ UNION ALL
5877
+ SELECT sql
5878
+ FROM sqlite_temp_master
5879
+ WHERE name='index_openstax_accounts_group_owners_on_group_id_and_user_id' AND type='index'
5880
+ 
5881
+  (0.1ms) CREATE INDEX "index_openstax_accounts_group_owners_on_user_id" ON "openstax_accounts_group_owners" ("user_id")
5882
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "3"]]
5883
+  (0.7ms) commit transaction
5884
+ Migrating to CreateOpenStaxAccountsGroupNestings (4)
5885
+  (0.0ms) begin transaction
5886
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/4_create_openstax_accounts_group_nestings.rb:7)
5887
+  (0.2ms) CREATE TABLE "openstax_accounts_group_nestings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "member_group_id" integer NOT NULL, "container_group_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
5888
+  (0.2ms) CREATE UNIQUE INDEX "index_openstax_accounts_group_nestings_on_member_group_id" ON "openstax_accounts_group_nestings" ("member_group_id")
5889
+  (0.1ms) SELECT sql
5890
+ FROM sqlite_master
5891
+ WHERE name='index_openstax_accounts_group_nestings_on_member_group_id' AND type='index'
5892
+ UNION ALL
5893
+ SELECT sql
5894
+ FROM sqlite_temp_master
5895
+ WHERE name='index_openstax_accounts_group_nestings_on_member_group_id' AND type='index'
5896
+
5897
+  (0.1ms) CREATE INDEX "index_openstax_accounts_group_nestings_on_container_group_id" ON "openstax_accounts_group_nestings" ("container_group_id")
5898
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "4"]]
5899
+  (0.6ms) commit transaction
5900
+ Migrating to CreateUsers (5)
5901
+  (0.1ms) begin transaction
5902
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/spec/dummy/db/migrate/5_create_users.rb:6)
5903
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) 
5904
+  (0.3ms) CREATE UNIQUE INDEX "index_users_on_account_id" ON "users" ("account_id")
5905
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "5"]]
5906
+  (0.6ms) commit transaction
5907
+ Migrating to CreateOwnerships (6)
5908
+  (0.0ms) begin transaction
5909
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/spec/dummy/db/migrate/6_create_ownerships.rb:6)
5910
+  (0.3ms) CREATE TABLE "ownerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL, "created_at" datetime, "updated_at" datetime)
5911
+  (0.4ms) CREATE UNIQUE INDEX "index_ownerships_on_owner_id_and_owner_type" ON "ownerships" ("owner_id", "owner_type")
5912
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "6"]]
5913
+  (0.6ms) commit transaction
5914
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5915
+  (0.1ms)  SELECT sql
5916
+ FROM sqlite_master
5917
+ WHERE name='index_openstax_accounts_accounts_on_full_name' AND type='index'
5918
+ UNION ALL
5919
+ SELECT sql
5920
+ FROM sqlite_temp_master
5921
+ WHERE name='index_openstax_accounts_accounts_on_full_name' AND type='index'
5922
+ 
5923
+  (0.1ms) SELECT sql
5924
+ FROM sqlite_master
5925
+ WHERE name='index_openstax_accounts_accounts_on_last_name' AND type='index'
5926
+ UNION ALL
5927
+ SELECT sql
5928
+ FROM sqlite_temp_master
5929
+ WHERE name='index_openstax_accounts_accounts_on_last_name' AND type='index'
5930
+
5931
+  (0.1ms)  SELECT sql
5932
+ FROM sqlite_master
5933
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
5934
+ UNION ALL
5935
+ SELECT sql
5936
+ FROM sqlite_temp_master
5937
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
5938
+ 
5939
+  (0.1ms) SELECT sql
5940
+ FROM sqlite_master
5941
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
5942
+ UNION ALL
5943
+ SELECT sql
5944
+ FROM sqlite_temp_master
5945
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
5946
+
5947
+  (0.1ms)  SELECT sql
5948
+ FROM sqlite_master
5949
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
5950
+ UNION ALL
5951
+ SELECT sql
5952
+ FROM sqlite_temp_master
5953
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
5954
+ 
5955
+  (0.1ms) SELECT sql
5956
+ FROM sqlite_master
5957
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
5958
+ UNION ALL
5959
+ SELECT sql
5960
+ FROM sqlite_temp_master
5961
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
5962
+
5963
+  (0.1ms)  SELECT sql
5964
+ FROM sqlite_master
5965
+ WHERE name='index_openstax_accounts_group_members_on_user_id' AND type='index'
5966
+ UNION ALL
5967
+ SELECT sql
5968
+ FROM sqlite_temp_master
5969
+ WHERE name='index_openstax_accounts_group_members_on_user_id' AND type='index'
5970
+ 
5971
+  (0.1ms) SELECT sql
5972
+ FROM sqlite_master
5973
+ WHERE name='index_openstax_accounts_group_members_on_group_id_and_user_id' AND type='index'
5974
+ UNION ALL
5975
+ SELECT sql
5976
+ FROM sqlite_temp_master
5977
+ WHERE name='index_openstax_accounts_group_members_on_group_id_and_user_id' AND type='index'
5978
+
5979
+  (0.1ms)  SELECT sql
5980
+ FROM sqlite_master
5981
+ WHERE name='index_openstax_accounts_group_nestings_on_container_group_id' AND type='index'
5982
+ UNION ALL
5983
+ SELECT sql
5984
+ FROM sqlite_temp_master
5985
+ WHERE name='index_openstax_accounts_group_nestings_on_container_group_id' AND type='index'
5986
+ 
5987
+  (0.1ms) SELECT sql
5988
+ FROM sqlite_master
5989
+ WHERE name='index_openstax_accounts_group_nestings_on_member_group_id' AND type='index'
5990
+ UNION ALL
5991
+ SELECT sql
5992
+ FROM sqlite_temp_master
5993
+ WHERE name='index_openstax_accounts_group_nestings_on_member_group_id' AND type='index'
5994
+
5995
+  (0.1ms)  SELECT sql
5996
+ FROM sqlite_master
5997
+ WHERE name='index_openstax_accounts_group_owners_on_user_id' AND type='index'
5998
+ UNION ALL
5999
+ SELECT sql
6000
+ FROM sqlite_temp_master
6001
+ WHERE name='index_openstax_accounts_group_owners_on_user_id' AND type='index'
6002
+ 
6003
+  (0.1ms) SELECT sql
6004
+ FROM sqlite_master
6005
+ WHERE name='index_openstax_accounts_group_owners_on_group_id_and_user_id' AND type='index'
6006
+ UNION ALL
6007
+ SELECT sql
6008
+ FROM sqlite_temp_master
6009
+ WHERE name='index_openstax_accounts_group_owners_on_group_id_and_user_id' AND type='index'
6010
+
6011
+  (0.1ms)  SELECT sql
6012
+ FROM sqlite_master
6013
+ WHERE name='index_openstax_accounts_groups_on_is_public' AND type='index'
6014
+ UNION ALL
6015
+ SELECT sql
6016
+ FROM sqlite_temp_master
6017
+ WHERE name='index_openstax_accounts_groups_on_is_public' AND type='index'
6018
+ 
6019
+  (0.1ms) SELECT sql
6020
+ FROM sqlite_master
6021
+ WHERE name='index_openstax_accounts_groups_on_openstax_uid' AND type='index'
6022
+ UNION ALL
6023
+ SELECT sql
6024
+ FROM sqlite_temp_master
6025
+ WHERE name='index_openstax_accounts_groups_on_openstax_uid' AND type='index'
6026
+
6027
+  (0.1ms)  SELECT sql
6028
+ FROM sqlite_master
6029
+ WHERE name='index_ownerships_on_owner_id_and_owner_type' AND type='index'
6030
+ UNION ALL
6031
+ SELECT sql
6032
+ FROM sqlite_temp_master
6033
+ WHERE name='index_ownerships_on_owner_id_and_owner_type' AND type='index'
6034
+ 
6035
+  (0.1ms) SELECT sql
6036
+ FROM sqlite_master
6037
+ WHERE name='index_users_on_account_id' AND type='index'
6038
+ UNION ALL
6039
+ SELECT sql
6040
+ FROM sqlite_temp_master
6041
+ WHERE name='index_users_on_account_id' AND type='index'
6042
+
6043
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6044
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
6045
+  (0.1ms) select sqlite_version(*)
6046
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6047
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6048
+ Migrating to CreateOpenStaxAccountsAccounts (0)
6049
+  (0.0ms) begin transaction
6050
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/0_create_openstax_accounts_accounts.rb:12)
6051
+  (0.3ms) CREATE TABLE "openstax_accounts_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "openstax_uid" integer NOT NULL, "username" varchar NOT NULL, "access_token" varchar, "first_name" varchar, "last_name" varchar, "full_name" varchar, "title" varchar, "created_at" datetime, "updated_at" datetime)
6052
+  (0.8ms) CREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_openstax_uid" ON "openstax_accounts_accounts" ("openstax_uid")
6053
+  (0.1ms) SELECT sql
6054
+ FROM sqlite_master
6055
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6056
+ UNION ALL
6057
+ SELECT sql
6058
+ FROM sqlite_temp_master
6059
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6060
+
6061
+  (0.2ms) CREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_username" ON "openstax_accounts_accounts" ("username")
6062
+  (0.0ms) SELECT sql
6063
+ FROM sqlite_master
6064
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6065
+ UNION ALL
6066
+ SELECT sql
6067
+ FROM sqlite_temp_master
6068
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6069
+
6070
+  (0.0ms)  SELECT sql
6071
+ FROM sqlite_master
6072
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6073
+ UNION ALL
6074
+ SELECT sql
6075
+ FROM sqlite_temp_master
6076
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6077
+ 
6078
+  (0.1ms) CREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_access_token" ON "openstax_accounts_accounts" ("access_token")
6079
+  (0.0ms)  SELECT sql
6080
+ FROM sqlite_master
6081
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6082
+ UNION ALL
6083
+ SELECT sql
6084
+ FROM sqlite_temp_master
6085
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6086
+ 
6087
+  (0.0ms) SELECT sql
6088
+ FROM sqlite_master
6089
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6090
+ UNION ALL
6091
+ SELECT sql
6092
+ FROM sqlite_temp_master
6093
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6094
+
6095
+  (0.0ms)  SELECT sql
6096
+ FROM sqlite_master
6097
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6098
+ UNION ALL
6099
+ SELECT sql
6100
+ FROM sqlite_temp_master
6101
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6102
+ 
6103
+  (0.1ms) CREATE INDEX "index_openstax_accounts_accounts_on_first_name" ON "openstax_accounts_accounts" ("first_name")
6104
+  (0.0ms)  SELECT sql
6105
+ FROM sqlite_master
6106
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
6107
+ UNION ALL
6108
+ SELECT sql
6109
+ FROM sqlite_temp_master
6110
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
6111
+ 
6112
+  (0.0ms) SELECT sql
6113
+ FROM sqlite_master
6114
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6115
+ UNION ALL
6116
+ SELECT sql
6117
+ FROM sqlite_temp_master
6118
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6119
+
6120
+  (0.1ms)  SELECT sql
6121
+ FROM sqlite_master
6122
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6123
+ UNION ALL
6124
+ SELECT sql
6125
+ FROM sqlite_temp_master
6126
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6127
+ 
6128
+  (0.0ms) SELECT sql
6129
+ FROM sqlite_master
6130
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6131
+ UNION ALL
6132
+ SELECT sql
6133
+ FROM sqlite_temp_master
6134
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6135
+
6136
+  (0.1ms) CREATE INDEX "index_openstax_accounts_accounts_on_last_name" ON "openstax_accounts_accounts" ("last_name")
6137
+  (0.0ms) SELECT sql
6138
+ FROM sqlite_master
6139
+ WHERE name='index_openstax_accounts_accounts_on_last_name' AND type='index'
6140
+ UNION ALL
6141
+ SELECT sql
6142
+ FROM sqlite_temp_master
6143
+ WHERE name='index_openstax_accounts_accounts_on_last_name' AND type='index'
6144
+
6145
+  (0.0ms)  SELECT sql
6146
+ FROM sqlite_master
6147
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
6148
+ UNION ALL
6149
+ SELECT sql
6150
+ FROM sqlite_temp_master
6151
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
6152
+ 
6153
+  (0.0ms) SELECT sql
6154
+ FROM sqlite_master
6155
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6156
+ UNION ALL
6157
+ SELECT sql
6158
+ FROM sqlite_temp_master
6159
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6160
+
6161
+  (0.0ms)  SELECT sql
6162
+ FROM sqlite_master
6163
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6164
+ UNION ALL
6165
+ SELECT sql
6166
+ FROM sqlite_temp_master
6167
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6168
+ 
6169
+  (0.0ms) SELECT sql
6170
+ FROM sqlite_master
6171
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6172
+ UNION ALL
6173
+ SELECT sql
6174
+ FROM sqlite_temp_master
6175
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6176
+
6177
+  (0.1ms) CREATE INDEX "index_openstax_accounts_accounts_on_full_name" ON "openstax_accounts_accounts" ("full_name")
6178
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "0"]]
6179
+  (0.9ms) commit transaction
6180
+ Migrating to CreateOpenStaxAccountsGroups (1)
6181
+  (0.1ms) begin transaction
6182
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/1_create_openstax_accounts_groups.rb:10)
6183
+  (0.3ms) CREATE TABLE "openstax_accounts_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "openstax_uid" integer NOT NULL, "is_public" boolean DEFAULT 'f' NOT NULL, "name" varchar, "cached_subtree_group_ids" text, "cached_supertree_group_ids" text, "created_at" datetime, "updated_at" datetime) 
6184
+  (0.3ms) CREATE UNIQUE INDEX "index_openstax_accounts_groups_on_openstax_uid" ON "openstax_accounts_groups" ("openstax_uid")
6185
+  (0.1ms)  SELECT sql
6186
+ FROM sqlite_master
6187
+ WHERE name='index_openstax_accounts_groups_on_openstax_uid' AND type='index'
6188
+ UNION ALL
6189
+ SELECT sql
6190
+ FROM sqlite_temp_master
6191
+ WHERE name='index_openstax_accounts_groups_on_openstax_uid' AND type='index'
6192
+ 
6193
+  (0.1ms) CREATE INDEX "index_openstax_accounts_groups_on_is_public" ON "openstax_accounts_groups" ("is_public")
6194
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1"]]
6195
+  (0.7ms) commit transaction
6196
+ Migrating to CreateOpenStaxAccountsGroupMembers (2)
6197
+  (0.0ms) begin transaction
6198
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/2_create_openstax_accounts_group_members.rb:7)
6199
+  (0.2ms) CREATE TABLE "openstax_accounts_group_members" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group_id" integer NOT NULL, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
6200
+  (0.3ms) CREATE UNIQUE INDEX "index_openstax_accounts_group_members_on_group_id_and_user_id" ON "openstax_accounts_group_members" ("group_id", "user_id")
6201
+  (0.1ms) SELECT sql
6202
+ FROM sqlite_master
6203
+ WHERE name='index_openstax_accounts_group_members_on_group_id_and_user_id' AND type='index'
6204
+ UNION ALL
6205
+ SELECT sql
6206
+ FROM sqlite_temp_master
6207
+ WHERE name='index_openstax_accounts_group_members_on_group_id_and_user_id' AND type='index'
6208
+
6209
+  (0.1ms) CREATE INDEX "index_openstax_accounts_group_members_on_user_id" ON "openstax_accounts_group_members" ("user_id")
6210
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "2"]]
6211
+  (0.7ms) commit transaction
6212
+ Migrating to CreateOpenStaxAccountsGroupOwners (3)
6213
+  (0.0ms) begin transaction
6214
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/3_create_openstax_accounts_group_owners.rb:7)
6215
+  (0.2ms) CREATE TABLE "openstax_accounts_group_owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group_id" integer NOT NULL, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) 
6216
+  (0.2ms) CREATE UNIQUE INDEX "index_openstax_accounts_group_owners_on_group_id_and_user_id" ON "openstax_accounts_group_owners" ("group_id", "user_id")
6217
+  (0.1ms)  SELECT sql
6218
+ FROM sqlite_master
6219
+ WHERE name='index_openstax_accounts_group_owners_on_group_id_and_user_id' AND type='index'
6220
+ UNION ALL
6221
+ SELECT sql
6222
+ FROM sqlite_temp_master
6223
+ WHERE name='index_openstax_accounts_group_owners_on_group_id_and_user_id' AND type='index'
6224
+ 
6225
+  (0.1ms) CREATE INDEX "index_openstax_accounts_group_owners_on_user_id" ON "openstax_accounts_group_owners" ("user_id")
6226
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "3"]]
6227
+  (0.7ms) commit transaction
6228
+ Migrating to CreateOpenStaxAccountsGroupNestings (4)
6229
+  (0.0ms) begin transaction
6230
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/4_create_openstax_accounts_group_nestings.rb:7)
6231
+  (0.2ms) CREATE TABLE "openstax_accounts_group_nestings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "member_group_id" integer NOT NULL, "container_group_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
6232
+  (0.2ms) CREATE UNIQUE INDEX "index_openstax_accounts_group_nestings_on_member_group_id" ON "openstax_accounts_group_nestings" ("member_group_id")
6233
+  (0.0ms) SELECT sql
6234
+ FROM sqlite_master
6235
+ WHERE name='index_openstax_accounts_group_nestings_on_member_group_id' AND type='index'
6236
+ UNION ALL
6237
+ SELECT sql
6238
+ FROM sqlite_temp_master
6239
+ WHERE name='index_openstax_accounts_group_nestings_on_member_group_id' AND type='index'
6240
+
6241
+  (0.1ms) CREATE INDEX "index_openstax_accounts_group_nestings_on_container_group_id" ON "openstax_accounts_group_nestings" ("container_group_id")
6242
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "4"]]
6243
+  (0.6ms) commit transaction
6244
+ Migrating to CreateUsers (5)
6245
+  (0.0ms) begin transaction
6246
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/spec/dummy/db/migrate/5_create_users.rb:6)
6247
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) 
6248
+  (0.2ms) CREATE UNIQUE INDEX "index_users_on_account_id" ON "users" ("account_id")
6249
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "5"]]
6250
+  (0.7ms) commit transaction
6251
+ Migrating to CreateOwnerships (6)
6252
+  (0.0ms) begin transaction
6253
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/spec/dummy/db/migrate/6_create_ownerships.rb:6)
6254
+  (0.2ms) CREATE TABLE "ownerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL, "created_at" datetime, "updated_at" datetime)
6255
+  (0.2ms) CREATE UNIQUE INDEX "index_ownerships_on_owner_id_and_owner_type" ON "ownerships" ("owner_id", "owner_type")
6256
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "6"]]
6257
+  (0.6ms) commit transaction
6258
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6259
+  (0.1ms)  SELECT sql
6260
+ FROM sqlite_master
6261
+ WHERE name='index_openstax_accounts_accounts_on_full_name' AND type='index'
6262
+ UNION ALL
6263
+ SELECT sql
6264
+ FROM sqlite_temp_master
6265
+ WHERE name='index_openstax_accounts_accounts_on_full_name' AND type='index'
6266
+ 
6267
+  (0.1ms) SELECT sql
6268
+ FROM sqlite_master
6269
+ WHERE name='index_openstax_accounts_accounts_on_last_name' AND type='index'
6270
+ UNION ALL
6271
+ SELECT sql
6272
+ FROM sqlite_temp_master
6273
+ WHERE name='index_openstax_accounts_accounts_on_last_name' AND type='index'
6274
+
6275
+  (0.1ms)  SELECT sql
6276
+ FROM sqlite_master
6277
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
6278
+ UNION ALL
6279
+ SELECT sql
6280
+ FROM sqlite_temp_master
6281
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
6282
+ 
6283
+  (0.1ms) SELECT sql
6284
+ FROM sqlite_master
6285
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6286
+ UNION ALL
6287
+ SELECT sql
6288
+ FROM sqlite_temp_master
6289
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6290
+
6291
+  (0.1ms)  SELECT sql
6292
+ FROM sqlite_master
6293
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6294
+ UNION ALL
6295
+ SELECT sql
6296
+ FROM sqlite_temp_master
6297
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6298
+ 
6299
+  (0.1ms) SELECT sql
6300
+ FROM sqlite_master
6301
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6302
+ UNION ALL
6303
+ SELECT sql
6304
+ FROM sqlite_temp_master
6305
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6306
+
6307
+  (0.1ms)  SELECT sql
6308
+ FROM sqlite_master
6309
+ WHERE name='index_openstax_accounts_group_members_on_user_id' AND type='index'
6310
+ UNION ALL
6311
+ SELECT sql
6312
+ FROM sqlite_temp_master
6313
+ WHERE name='index_openstax_accounts_group_members_on_user_id' AND type='index'
6314
+ 
6315
+  (0.1ms) SELECT sql
6316
+ FROM sqlite_master
6317
+ WHERE name='index_openstax_accounts_group_members_on_group_id_and_user_id' AND type='index'
6318
+ UNION ALL
6319
+ SELECT sql
6320
+ FROM sqlite_temp_master
6321
+ WHERE name='index_openstax_accounts_group_members_on_group_id_and_user_id' AND type='index'
6322
+
6323
+  (0.1ms)  SELECT sql
6324
+ FROM sqlite_master
6325
+ WHERE name='index_openstax_accounts_group_nestings_on_container_group_id' AND type='index'
6326
+ UNION ALL
6327
+ SELECT sql
6328
+ FROM sqlite_temp_master
6329
+ WHERE name='index_openstax_accounts_group_nestings_on_container_group_id' AND type='index'
6330
+ 
6331
+  (0.1ms) SELECT sql
6332
+ FROM sqlite_master
6333
+ WHERE name='index_openstax_accounts_group_nestings_on_member_group_id' AND type='index'
6334
+ UNION ALL
6335
+ SELECT sql
6336
+ FROM sqlite_temp_master
6337
+ WHERE name='index_openstax_accounts_group_nestings_on_member_group_id' AND type='index'
6338
+
6339
+  (0.1ms)  SELECT sql
6340
+ FROM sqlite_master
6341
+ WHERE name='index_openstax_accounts_group_owners_on_user_id' AND type='index'
6342
+ UNION ALL
6343
+ SELECT sql
6344
+ FROM sqlite_temp_master
6345
+ WHERE name='index_openstax_accounts_group_owners_on_user_id' AND type='index'
6346
+ 
6347
+  (0.1ms) SELECT sql
6348
+ FROM sqlite_master
6349
+ WHERE name='index_openstax_accounts_group_owners_on_group_id_and_user_id' AND type='index'
6350
+ UNION ALL
6351
+ SELECT sql
6352
+ FROM sqlite_temp_master
6353
+ WHERE name='index_openstax_accounts_group_owners_on_group_id_and_user_id' AND type='index'
6354
+
6355
+  (0.1ms)  SELECT sql
6356
+ FROM sqlite_master
6357
+ WHERE name='index_openstax_accounts_groups_on_is_public' AND type='index'
6358
+ UNION ALL
6359
+ SELECT sql
6360
+ FROM sqlite_temp_master
6361
+ WHERE name='index_openstax_accounts_groups_on_is_public' AND type='index'
6362
+ 
6363
+  (0.1ms) SELECT sql
6364
+ FROM sqlite_master
6365
+ WHERE name='index_openstax_accounts_groups_on_openstax_uid' AND type='index'
6366
+ UNION ALL
6367
+ SELECT sql
6368
+ FROM sqlite_temp_master
6369
+ WHERE name='index_openstax_accounts_groups_on_openstax_uid' AND type='index'
6370
+
6371
+  (0.1ms)  SELECT sql
6372
+ FROM sqlite_master
6373
+ WHERE name='index_ownerships_on_owner_id_and_owner_type' AND type='index'
6374
+ UNION ALL
6375
+ SELECT sql
6376
+ FROM sqlite_temp_master
6377
+ WHERE name='index_ownerships_on_owner_id_and_owner_type' AND type='index'
6378
+ 
6379
+  (0.1ms) SELECT sql
6380
+ FROM sqlite_master
6381
+ WHERE name='index_users_on_account_id' AND type='index'
6382
+ UNION ALL
6383
+ SELECT sql
6384
+ FROM sqlite_temp_master
6385
+ WHERE name='index_users_on_account_id' AND type='index'
6386
+
6387
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
6388
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
6389
+  (0.1ms) select sqlite_version(*)
6390
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6391
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6392
+ Migrating to CreateOpenStaxAccountsAccounts (0)
6393
+  (0.0ms) begin transaction
6394
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/0_create_openstax_accounts_accounts.rb:12)
6395
+  (0.3ms) CREATE TABLE "openstax_accounts_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "openstax_uid" integer NOT NULL, "username" varchar NOT NULL, "access_token" varchar, "first_name" varchar, "last_name" varchar, "full_name" varchar, "title" varchar, "created_at" datetime, "updated_at" datetime)
6396
+  (0.8ms) CREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_openstax_uid" ON "openstax_accounts_accounts" ("openstax_uid")
6397
+  (0.1ms) SELECT sql
6398
+ FROM sqlite_master
6399
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6400
+ UNION ALL
6401
+ SELECT sql
6402
+ FROM sqlite_temp_master
6403
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6404
+
6405
+  (0.1ms) CREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_username" ON "openstax_accounts_accounts" ("username")
6406
+  (0.0ms) SELECT sql
6407
+ FROM sqlite_master
6408
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6409
+ UNION ALL
6410
+ SELECT sql
6411
+ FROM sqlite_temp_master
6412
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6413
+
6414
+  (0.0ms)  SELECT sql
6415
+ FROM sqlite_master
6416
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6417
+ UNION ALL
6418
+ SELECT sql
6419
+ FROM sqlite_temp_master
6420
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6421
+ 
6422
+  (0.1ms) CREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_access_token" ON "openstax_accounts_accounts" ("access_token")
6423
+  (0.0ms)  SELECT sql
6424
+ FROM sqlite_master
6425
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6426
+ UNION ALL
6427
+ SELECT sql
6428
+ FROM sqlite_temp_master
6429
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6430
+ 
6431
+  (0.0ms) SELECT sql
6432
+ FROM sqlite_master
6433
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6434
+ UNION ALL
6435
+ SELECT sql
6436
+ FROM sqlite_temp_master
6437
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6438
+
6439
+  (0.1ms)  SELECT sql
6440
+ FROM sqlite_master
6441
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6442
+ UNION ALL
6443
+ SELECT sql
6444
+ FROM sqlite_temp_master
6445
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6446
+ 
6447
+  (0.1ms) CREATE INDEX "index_openstax_accounts_accounts_on_first_name" ON "openstax_accounts_accounts" ("first_name")
6448
+  (0.0ms)  SELECT sql
6449
+ FROM sqlite_master
6450
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
6451
+ UNION ALL
6452
+ SELECT sql
6453
+ FROM sqlite_temp_master
6454
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
6455
+ 
6456
+  (0.1ms) SELECT sql
6457
+ FROM sqlite_master
6458
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6459
+ UNION ALL
6460
+ SELECT sql
6461
+ FROM sqlite_temp_master
6462
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6463
+
6464
+  (0.0ms)  SELECT sql
6465
+ FROM sqlite_master
6466
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6467
+ UNION ALL
6468
+ SELECT sql
6469
+ FROM sqlite_temp_master
6470
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6471
+ 
6472
+  (0.0ms) SELECT sql
6473
+ FROM sqlite_master
6474
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6475
+ UNION ALL
6476
+ SELECT sql
6477
+ FROM sqlite_temp_master
6478
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6479
+
6480
+  (0.1ms) CREATE INDEX "index_openstax_accounts_accounts_on_last_name" ON "openstax_accounts_accounts" ("last_name")
6481
+  (0.0ms) SELECT sql
6482
+ FROM sqlite_master
6483
+ WHERE name='index_openstax_accounts_accounts_on_last_name' AND type='index'
6484
+ UNION ALL
6485
+ SELECT sql
6486
+ FROM sqlite_temp_master
6487
+ WHERE name='index_openstax_accounts_accounts_on_last_name' AND type='index'
6488
+
6489
+  (0.0ms)  SELECT sql
6490
+ FROM sqlite_master
6491
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
6492
+ UNION ALL
6493
+ SELECT sql
6494
+ FROM sqlite_temp_master
6495
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
6496
+ 
6497
+  (0.0ms) SELECT sql
6498
+ FROM sqlite_master
6499
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6500
+ UNION ALL
6501
+ SELECT sql
6502
+ FROM sqlite_temp_master
6503
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6504
+
6505
+  (0.0ms)  SELECT sql
6506
+ FROM sqlite_master
6507
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6508
+ UNION ALL
6509
+ SELECT sql
6510
+ FROM sqlite_temp_master
6511
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6512
+ 
6513
+  (0.0ms) SELECT sql
6514
+ FROM sqlite_master
6515
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6516
+ UNION ALL
6517
+ SELECT sql
6518
+ FROM sqlite_temp_master
6519
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6520
+
6521
+  (0.1ms) CREATE INDEX "index_openstax_accounts_accounts_on_full_name" ON "openstax_accounts_accounts" ("full_name")
6522
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "0"]]
6523
+  (0.8ms) commit transaction
6524
+ Migrating to CreateOpenStaxAccountsGroups (1)
6525
+  (0.1ms) begin transaction
6526
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/1_create_openstax_accounts_groups.rb:10)
6527
+  (0.3ms) CREATE TABLE "openstax_accounts_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "openstax_uid" integer NOT NULL, "is_public" boolean DEFAULT 'f' NOT NULL, "name" varchar, "cached_subtree_group_ids" text, "cached_supertree_group_ids" text, "created_at" datetime, "updated_at" datetime) 
6528
+  (0.3ms) CREATE UNIQUE INDEX "index_openstax_accounts_groups_on_openstax_uid" ON "openstax_accounts_groups" ("openstax_uid")
6529
+  (0.1ms)  SELECT sql
6530
+ FROM sqlite_master
6531
+ WHERE name='index_openstax_accounts_groups_on_openstax_uid' AND type='index'
6532
+ UNION ALL
6533
+ SELECT sql
6534
+ FROM sqlite_temp_master
6535
+ WHERE name='index_openstax_accounts_groups_on_openstax_uid' AND type='index'
6536
+ 
6537
+  (0.1ms) CREATE INDEX "index_openstax_accounts_groups_on_is_public" ON "openstax_accounts_groups" ("is_public")
6538
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1"]]
6539
+  (0.7ms) commit transaction
6540
+ Migrating to CreateOpenStaxAccountsGroupMembers (2)
6541
+  (0.1ms) begin transaction
6542
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/2_create_openstax_accounts_group_members.rb:7)
6543
+  (0.3ms) CREATE TABLE "openstax_accounts_group_members" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group_id" integer NOT NULL, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
6544
+  (0.2ms) CREATE UNIQUE INDEX "index_openstax_accounts_group_members_on_group_id_and_user_id" ON "openstax_accounts_group_members" ("group_id", "user_id")
6545
+  (0.1ms) SELECT sql
6546
+ FROM sqlite_master
6547
+ WHERE name='index_openstax_accounts_group_members_on_group_id_and_user_id' AND type='index'
6548
+ UNION ALL
6549
+ SELECT sql
6550
+ FROM sqlite_temp_master
6551
+ WHERE name='index_openstax_accounts_group_members_on_group_id_and_user_id' AND type='index'
6552
+
6553
+  (0.1ms) CREATE INDEX "index_openstax_accounts_group_members_on_user_id" ON "openstax_accounts_group_members" ("user_id")
6554
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "2"]]
6555
+  (0.7ms) commit transaction
6556
+ Migrating to CreateOpenStaxAccountsGroupOwners (3)
6557
+  (0.1ms) begin transaction
6558
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/3_create_openstax_accounts_group_owners.rb:7)
6559
+  (0.2ms) CREATE TABLE "openstax_accounts_group_owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group_id" integer NOT NULL, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) 
6560
+  (0.2ms) CREATE UNIQUE INDEX "index_openstax_accounts_group_owners_on_group_id_and_user_id" ON "openstax_accounts_group_owners" ("group_id", "user_id")
6561
+  (0.1ms)  SELECT sql
6562
+ FROM sqlite_master
6563
+ WHERE name='index_openstax_accounts_group_owners_on_group_id_and_user_id' AND type='index'
6564
+ UNION ALL
6565
+ SELECT sql
6566
+ FROM sqlite_temp_master
6567
+ WHERE name='index_openstax_accounts_group_owners_on_group_id_and_user_id' AND type='index'
6568
+ 
6569
+  (0.1ms) CREATE INDEX "index_openstax_accounts_group_owners_on_user_id" ON "openstax_accounts_group_owners" ("user_id")
6570
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "3"]]
6571
+  (0.6ms) commit transaction
6572
+ Migrating to CreateOpenStaxAccountsGroupNestings (4)
6573
+  (0.0ms) begin transaction
6574
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/db/migrate/4_create_openstax_accounts_group_nestings.rb:7)
6575
+  (0.2ms) CREATE TABLE "openstax_accounts_group_nestings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "member_group_id" integer NOT NULL, "container_group_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
6576
+  (0.2ms) CREATE UNIQUE INDEX "index_openstax_accounts_group_nestings_on_member_group_id" ON "openstax_accounts_group_nestings" ("member_group_id")
6577
+  (0.0ms) SELECT sql
6578
+ FROM sqlite_master
6579
+ WHERE name='index_openstax_accounts_group_nestings_on_member_group_id' AND type='index'
6580
+ UNION ALL
6581
+ SELECT sql
6582
+ FROM sqlite_temp_master
6583
+ WHERE name='index_openstax_accounts_group_nestings_on_member_group_id' AND type='index'
6584
+
6585
+  (0.1ms) CREATE INDEX "index_openstax_accounts_group_nestings_on_container_group_id" ON "openstax_accounts_group_nestings" ("container_group_id")
6586
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "4"]]
6587
+  (0.6ms) commit transaction
6588
+ Migrating to CreateUsers (5)
6589
+  (0.0ms) begin transaction
6590
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/spec/dummy/db/migrate/5_create_users.rb:6)
6591
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) 
6592
+  (0.2ms) CREATE UNIQUE INDEX "index_users_on_account_id" ON "users" ("account_id")
6593
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "5"]]
6594
+  (0.7ms) commit transaction
6595
+ Migrating to CreateOwnerships (6)
6596
+  (0.0ms) begin transaction
6597
+ DEPRECATION WARNING: `#timestamp` 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/dante/Desktop/accounts-rails/spec/dummy/db/migrate/6_create_ownerships.rb:6)
6598
+  (0.2ms) CREATE TABLE "ownerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL, "created_at" datetime, "updated_at" datetime)
6599
+  (0.2ms) CREATE UNIQUE INDEX "index_ownerships_on_owner_id_and_owner_type" ON "ownerships" ("owner_id", "owner_type")
6600
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "6"]]
6601
+  (0.6ms) commit transaction
6602
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6603
+  (0.1ms)  SELECT sql
6604
+ FROM sqlite_master
6605
+ WHERE name='index_openstax_accounts_accounts_on_full_name' AND type='index'
6606
+ UNION ALL
6607
+ SELECT sql
6608
+ FROM sqlite_temp_master
6609
+ WHERE name='index_openstax_accounts_accounts_on_full_name' AND type='index'
6610
+ 
6611
+  (0.1ms) SELECT sql
6612
+ FROM sqlite_master
6613
+ WHERE name='index_openstax_accounts_accounts_on_last_name' AND type='index'
6614
+ UNION ALL
6615
+ SELECT sql
6616
+ FROM sqlite_temp_master
6617
+ WHERE name='index_openstax_accounts_accounts_on_last_name' AND type='index'
6618
+
6619
+  (0.1ms)  SELECT sql
6620
+ FROM sqlite_master
6621
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
6622
+ UNION ALL
6623
+ SELECT sql
6624
+ FROM sqlite_temp_master
6625
+ WHERE name='index_openstax_accounts_accounts_on_first_name' AND type='index'
6626
+ 
6627
+  (0.1ms) SELECT sql
6628
+ FROM sqlite_master
6629
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6630
+ UNION ALL
6631
+ SELECT sql
6632
+ FROM sqlite_temp_master
6633
+ WHERE name='index_openstax_accounts_accounts_on_access_token' AND type='index'
6634
+
6635
+  (0.1ms)  SELECT sql
6636
+ FROM sqlite_master
6637
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6638
+ UNION ALL
6639
+ SELECT sql
6640
+ FROM sqlite_temp_master
6641
+ WHERE name='index_openstax_accounts_accounts_on_username' AND type='index'
6642
+ 
6643
+  (0.1ms) SELECT sql
6644
+ FROM sqlite_master
6645
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6646
+ UNION ALL
6647
+ SELECT sql
6648
+ FROM sqlite_temp_master
6649
+ WHERE name='index_openstax_accounts_accounts_on_openstax_uid' AND type='index'
6650
+
6651
+  (0.1ms)  SELECT sql
6652
+ FROM sqlite_master
6653
+ WHERE name='index_openstax_accounts_group_members_on_user_id' AND type='index'
6654
+ UNION ALL
6655
+ SELECT sql
6656
+ FROM sqlite_temp_master
6657
+ WHERE name='index_openstax_accounts_group_members_on_user_id' AND type='index'
6658
+ 
6659
+  (0.1ms) SELECT sql
6660
+ FROM sqlite_master
6661
+ WHERE name='index_openstax_accounts_group_members_on_group_id_and_user_id' AND type='index'
6662
+ UNION ALL
6663
+ SELECT sql
6664
+ FROM sqlite_temp_master
6665
+ WHERE name='index_openstax_accounts_group_members_on_group_id_and_user_id' AND type='index'
6666
+
6667
+  (0.1ms)  SELECT sql
6668
+ FROM sqlite_master
6669
+ WHERE name='index_openstax_accounts_group_nestings_on_container_group_id' AND type='index'
6670
+ UNION ALL
6671
+ SELECT sql
6672
+ FROM sqlite_temp_master
6673
+ WHERE name='index_openstax_accounts_group_nestings_on_container_group_id' AND type='index'
6674
+ 
6675
+  (0.1ms) SELECT sql
6676
+ FROM sqlite_master
6677
+ WHERE name='index_openstax_accounts_group_nestings_on_member_group_id' AND type='index'
6678
+ UNION ALL
6679
+ SELECT sql
6680
+ FROM sqlite_temp_master
6681
+ WHERE name='index_openstax_accounts_group_nestings_on_member_group_id' AND type='index'
6682
+
6683
+  (0.1ms)  SELECT sql
6684
+ FROM sqlite_master
6685
+ WHERE name='index_openstax_accounts_group_owners_on_user_id' AND type='index'
6686
+ UNION ALL
6687
+ SELECT sql
6688
+ FROM sqlite_temp_master
6689
+ WHERE name='index_openstax_accounts_group_owners_on_user_id' AND type='index'
6690
+ 
6691
+  (0.1ms) SELECT sql
6692
+ FROM sqlite_master
6693
+ WHERE name='index_openstax_accounts_group_owners_on_group_id_and_user_id' AND type='index'
6694
+ UNION ALL
6695
+ SELECT sql
6696
+ FROM sqlite_temp_master
6697
+ WHERE name='index_openstax_accounts_group_owners_on_group_id_and_user_id' AND type='index'
6698
+
6699
+  (0.1ms)  SELECT sql
6700
+ FROM sqlite_master
6701
+ WHERE name='index_openstax_accounts_groups_on_is_public' AND type='index'
6702
+ UNION ALL
6703
+ SELECT sql
6704
+ FROM sqlite_temp_master
6705
+ WHERE name='index_openstax_accounts_groups_on_is_public' AND type='index'
6706
+ 
6707
+  (0.1ms) SELECT sql
6708
+ FROM sqlite_master
6709
+ WHERE name='index_openstax_accounts_groups_on_openstax_uid' AND type='index'
6710
+ UNION ALL
6711
+ SELECT sql
6712
+ FROM sqlite_temp_master
6713
+ WHERE name='index_openstax_accounts_groups_on_openstax_uid' AND type='index'
6714
+
6715
+  (0.1ms)  SELECT sql
6716
+ FROM sqlite_master
6717
+ WHERE name='index_ownerships_on_owner_id_and_owner_type' AND type='index'
6718
+ UNION ALL
6719
+ SELECT sql
6720
+ FROM sqlite_temp_master
6721
+ WHERE name='index_ownerships_on_owner_id_and_owner_type' AND type='index'
6722
+ 
6723
+  (0.1ms) SELECT sql
6724
+ FROM sqlite_master
6725
+ WHERE name='index_users_on_account_id' AND type='index'
6726
+ UNION ALL
6727
+ SELECT sql
6728
+ FROM sqlite_temp_master
6729
+ WHERE name='index_users_on_account_id' AND type='index'
6730
+
6731
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"