openstax_accounts 5.0.1 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/representers/openstax/accounts/api/v1/unclaimed_account_representer.rb +16 -0
- data/app/routines/openstax/accounts/create_temp_account.rb +36 -0
- data/lib/openstax/accounts/version.rb +1 -1
- data/spec/cassettes/OpenStax_Accounts_CreateTempAccount/can_create_temp_users.yml +261 -0
- data/spec/dummy/config/environments/development.rb +3 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +7 -7
- data/spec/dummy/log/development.log +1032 -0
- data/spec/dummy/log/test.log +78859 -0
- data/spec/routines/openstax/accounts/create_temp_account_spec.rb +37 -0
- data/spec/vcr_helper.rb +13 -0
- metadata +40 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bae41d11d6554047d7d2fb3bca92474c72badffd
|
4
|
+
data.tar.gz: 5141d9ff8cada7d933cf4e430fb26f260769c08f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7b1cce9d3922eb6e09f5bd21893192b35570500e49758a6fb419a640717f907ea25ed3ca47557d374af776d6dc5bb362b2bd4a69b5cb846b04e0dc9eec115d5
|
7
|
+
data.tar.gz: c359ae438aa9cbd212b9181fe1d5affb24d7ab65a0c70f1964033c1875fc44d4c447e1243e661c0557340e766b9881133a8f4b58b29287fc3bcb9d2adfd026a8
|
@@ -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
|
@@ -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
|
Binary file
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
14
|
ActiveRecord::Schema.define(version: 6) do
|
15
15
|
|
16
|
-
create_table "openstax_accounts_accounts", force:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
5701
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5702
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5703
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5704
|
+
Migrating to CreateOpenStaxAccountsAccounts (0)
|
5705
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_openstax_uid" ON "openstax_accounts_accounts" ("openstax_uid")[0m
|
5709
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_username" ON "openstax_accounts_accounts" ("username")[0m
|
5718
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
5734
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_access_token" ON "openstax_accounts_accounts" ("access_token")
|
5735
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5743
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5759
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_openstax_accounts_accounts_on_first_name" ON "openstax_accounts_accounts" ("first_name")
|
5760
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
5768
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
5784
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_openstax_accounts_accounts_on_last_name" ON "openstax_accounts_accounts" ("last_name")[0m
|
5793
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
5809
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
5825
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_openstax_accounts_accounts_on_full_name" ON "openstax_accounts_accounts" ("full_name")[0m
|
5834
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "0"]]
|
5835
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
5836
|
+
Migrating to CreateOpenStaxAccountsGroups (1)
|
5837
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
5840
|
+
[1m[35m (0.3ms)[0m CREATE UNIQUE INDEX "index_openstax_accounts_groups_on_openstax_uid" ON "openstax_accounts_groups" ("openstax_uid")
|
5841
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5849
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_openstax_accounts_groups_on_is_public" ON "openstax_accounts_groups" ("is_public")
|
5850
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "1"]]
|
5851
|
+
[1m[35m (0.8ms)[0m commit transaction
|
5852
|
+
Migrating to CreateOpenStaxAccountsGroupMembers (2)
|
5853
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_openstax_accounts_group_members_on_group_id_and_user_id" ON "openstax_accounts_group_members" ("group_id", "user_id")[0m
|
5857
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_openstax_accounts_group_members_on_user_id" ON "openstax_accounts_group_members" ("user_id")[0m
|
5866
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "2"]]
|
5867
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5868
|
+
Migrating to CreateOpenStaxAccountsGroupOwners (3)
|
5869
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
5872
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_openstax_accounts_group_owners_on_group_id_and_user_id" ON "openstax_accounts_group_owners" ("group_id", "user_id")
|
5873
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5881
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_openstax_accounts_group_owners_on_user_id" ON "openstax_accounts_group_owners" ("user_id")
|
5882
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "3"]]
|
5883
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5884
|
+
Migrating to CreateOpenStaxAccountsGroupNestings (4)
|
5885
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE UNIQUE INDEX "index_openstax_accounts_group_nestings_on_member_group_id" ON "openstax_accounts_group_nestings" ("member_group_id")[0m
|
5889
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_openstax_accounts_group_nestings_on_container_group_id" ON "openstax_accounts_group_nestings" ("container_group_id")[0m
|
5898
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "4"]]
|
5899
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5900
|
+
Migrating to CreateUsers (5)
|
5901
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
5904
|
+
[1m[35m (0.3ms)[0m CREATE UNIQUE INDEX "index_users_on_account_id" ON "users" ("account_id")
|
5905
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "5"]]
|
5906
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5907
|
+
Migrating to CreateOwnerships (6)
|
5908
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_ownerships_on_owner_id_and_owner_type" ON "ownerships" ("owner_id", "owner_type")[0m
|
5912
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "6"]]
|
5913
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5914
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5915
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5923
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5939
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5955
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5971
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5987
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6003
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6019
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6035
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6044
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6045
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6046
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6047
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6048
|
+
Migrating to CreateOpenStaxAccountsAccounts (0)
|
6049
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_openstax_uid" ON "openstax_accounts_accounts" ("openstax_uid")[0m
|
6053
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_username" ON "openstax_accounts_accounts" ("username")[0m
|
6062
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
6078
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_access_token" ON "openstax_accounts_accounts" ("access_token")
|
6079
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
6087
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
6103
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_openstax_accounts_accounts_on_first_name" ON "openstax_accounts_accounts" ("first_name")
|
6104
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
6112
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6128
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_openstax_accounts_accounts_on_last_name" ON "openstax_accounts_accounts" ("last_name")[0m
|
6137
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
6153
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
6169
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_openstax_accounts_accounts_on_full_name" ON "openstax_accounts_accounts" ("full_name")[0m
|
6178
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "0"]]
|
6179
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
6180
|
+
Migrating to CreateOpenStaxAccountsGroups (1)
|
6181
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
|
6184
|
+
[1m[35m (0.3ms)[0m CREATE UNIQUE INDEX "index_openstax_accounts_groups_on_openstax_uid" ON "openstax_accounts_groups" ("openstax_uid")
|
6185
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6193
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_openstax_accounts_groups_on_is_public" ON "openstax_accounts_groups" ("is_public")
|
6194
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "1"]]
|
6195
|
+
[1m[35m (0.7ms)[0m commit transaction
|
6196
|
+
Migrating to CreateOpenStaxAccountsGroupMembers (2)
|
6197
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_openstax_accounts_group_members_on_group_id_and_user_id" ON "openstax_accounts_group_members" ("group_id", "user_id")[0m
|
6201
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_openstax_accounts_group_members_on_user_id" ON "openstax_accounts_group_members" ("user_id")[0m
|
6210
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "2"]]
|
6211
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
6212
|
+
Migrating to CreateOpenStaxAccountsGroupOwners (3)
|
6213
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
6216
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_openstax_accounts_group_owners_on_group_id_and_user_id" ON "openstax_accounts_group_owners" ("group_id", "user_id")
|
6217
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6225
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_openstax_accounts_group_owners_on_user_id" ON "openstax_accounts_group_owners" ("user_id")
|
6226
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "3"]]
|
6227
|
+
[1m[35m (0.7ms)[0m commit transaction
|
6228
|
+
Migrating to CreateOpenStaxAccountsGroupNestings (4)
|
6229
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE UNIQUE INDEX "index_openstax_accounts_group_nestings_on_member_group_id" ON "openstax_accounts_group_nestings" ("member_group_id")[0m
|
6233
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_openstax_accounts_group_nestings_on_container_group_id" ON "openstax_accounts_group_nestings" ("container_group_id")[0m
|
6242
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "4"]]
|
6243
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6244
|
+
Migrating to CreateUsers (5)
|
6245
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6248
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_users_on_account_id" ON "users" ("account_id")
|
6249
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "5"]]
|
6250
|
+
[1m[35m (0.7ms)[0m commit transaction
|
6251
|
+
Migrating to CreateOwnerships (6)
|
6252
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE UNIQUE INDEX "index_ownerships_on_owner_id_and_owner_type" ON "ownerships" ("owner_id", "owner_type")[0m
|
6256
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "6"]]
|
6257
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6258
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6259
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6267
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6283
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6299
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6315
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6331
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6347
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6363
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6379
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6388
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6389
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6390
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6391
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6392
|
+
Migrating to CreateOpenStaxAccountsAccounts (0)
|
6393
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_openstax_uid" ON "openstax_accounts_accounts" ("openstax_uid")[0m
|
6397
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_username" ON "openstax_accounts_accounts" ("username")[0m
|
6406
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
6422
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_openstax_accounts_accounts_on_access_token" ON "openstax_accounts_accounts" ("access_token")
|
6423
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
6431
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6447
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_openstax_accounts_accounts_on_first_name" ON "openstax_accounts_accounts" ("first_name")
|
6448
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
6456
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
6472
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_openstax_accounts_accounts_on_last_name" ON "openstax_accounts_accounts" ("last_name")[0m
|
6481
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
6497
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1m 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
|
+
[0m
|
6513
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_openstax_accounts_accounts_on_full_name" ON "openstax_accounts_accounts" ("full_name")[0m
|
6522
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "0"]]
|
6523
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
6524
|
+
Migrating to CreateOpenStaxAccountsGroups (1)
|
6525
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
|
6528
|
+
[1m[35m (0.3ms)[0m CREATE UNIQUE INDEX "index_openstax_accounts_groups_on_openstax_uid" ON "openstax_accounts_groups" ("openstax_uid")
|
6529
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6537
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_openstax_accounts_groups_on_is_public" ON "openstax_accounts_groups" ("is_public")
|
6538
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "1"]]
|
6539
|
+
[1m[35m (0.7ms)[0m commit transaction
|
6540
|
+
Migrating to CreateOpenStaxAccountsGroupMembers (2)
|
6541
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE UNIQUE INDEX "index_openstax_accounts_group_members_on_group_id_and_user_id" ON "openstax_accounts_group_members" ("group_id", "user_id")[0m
|
6545
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_openstax_accounts_group_members_on_user_id" ON "openstax_accounts_group_members" ("user_id")[0m
|
6554
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "2"]]
|
6555
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
6556
|
+
Migrating to CreateOpenStaxAccountsGroupOwners (3)
|
6557
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
6560
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_openstax_accounts_group_owners_on_group_id_and_user_id" ON "openstax_accounts_group_owners" ("group_id", "user_id")
|
6561
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6569
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_openstax_accounts_group_owners_on_user_id" ON "openstax_accounts_group_owners" ("user_id")
|
6570
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "3"]]
|
6571
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6572
|
+
Migrating to CreateOpenStaxAccountsGroupNestings (4)
|
6573
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE UNIQUE INDEX "index_openstax_accounts_group_nestings_on_member_group_id" ON "openstax_accounts_group_nestings" ("member_group_id")[0m
|
6577
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_openstax_accounts_group_nestings_on_container_group_id" ON "openstax_accounts_group_nestings" ("container_group_id")[0m
|
6586
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "4"]]
|
6587
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6588
|
+
Migrating to CreateUsers (5)
|
6589
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6592
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_users_on_account_id" ON "users" ("account_id")
|
6593
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "5"]]
|
6594
|
+
[1m[35m (0.7ms)[0m commit transaction
|
6595
|
+
Migrating to CreateOwnerships (6)
|
6596
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE UNIQUE INDEX "index_ownerships_on_owner_id_and_owner_type" ON "ownerships" ("owner_id", "owner_type")[0m
|
6600
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "6"]]
|
6601
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6602
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6603
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6611
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6627
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6643
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6659
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6675
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6691
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6707
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6723
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|