openstax_api 2.3.1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -7
- data/app/controllers/openstax/api/v1/api_controller.rb +0 -12
- data/lib/openstax/api/version.rb +1 -1
- data/spec/dummy/log/test.log +225 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b54c98562d6256845ee88aace52efde4b5c6e43
|
4
|
+
data.tar.gz: df03792d31e741ee88caaed9f7e2165a2debe7c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85871dbc9dd7de450049c4639e6dc31fc2e8c6bcfff3dc7af1ec4bb0d43031fde25b0ec00cdcae3e9303e9bb14aaaab8730000f799d17f03f96c96cad16d4a91
|
7
|
+
data.tar.gz: 2b8cc6ecd5a772b5e9650a61bf646384ef35b749c48678edbc58205076388b08a1bcf7381f61c7a344386217ccc8a1bc57cbe60c19583f240aa25aadcf65d880
|
data/README.md
CHANGED
@@ -24,19 +24,22 @@ $ bundle
|
|
24
24
|
|
25
25
|
This gem includes the following classes, all under the OpenStax::Api namespace:
|
26
26
|
|
27
|
-
###
|
27
|
+
### Controller
|
28
28
|
|
29
|
-
`ApiController`
|
29
|
+
`OpenStax::Api::V1::ApiController`
|
30
30
|
|
31
|
-
|
31
|
+
Your API controllers should inherit from ApiController.
|
32
32
|
|
33
|
-
Your
|
33
|
+
Your `current_user` method will not be available in ApiController.
|
34
|
+
Instead, use the current_api_user, current_human_user and current_application methods.
|
34
35
|
|
35
|
-
###
|
36
|
+
### Model
|
36
37
|
|
37
|
-
`ApiUser`
|
38
|
+
`OpenStax::Api::V1::ApiUser`
|
38
39
|
|
39
|
-
|
40
|
+
Your users should NOT inherit from ApiUser. It is used only by ApiController.
|
41
|
+
|
42
|
+
ApiUser represents either a signed in user, a doorkeeper application, or a combination of both.
|
40
43
|
|
41
44
|
## Doorkeeper Extensions
|
42
45
|
|
@@ -8,15 +8,9 @@ module OpenStax
|
|
8
8
|
include OpenStax::Api::Roar
|
9
9
|
include OpenStax::Api::Apipie
|
10
10
|
|
11
|
-
skip_protect_beta if respond_to? :skip_protect_beta
|
12
|
-
|
13
|
-
skip_before_filter :authenticate_user!
|
14
11
|
doorkeeper_for :all, :unless => :session_user?
|
15
12
|
skip_before_filter :verify_authenticity_token, :unless => :session_user?
|
16
13
|
|
17
|
-
# This filter can wait until the user signs in again
|
18
|
-
skip_interception :expired_password if respond_to? :skip_interception
|
19
|
-
|
20
14
|
respond_to :json
|
21
15
|
|
22
16
|
# Keep old current_user method so we can use it
|
@@ -40,12 +34,6 @@ module OpenStax
|
|
40
34
|
current_api_user.human_user
|
41
35
|
end
|
42
36
|
|
43
|
-
# JSON can't really redirect
|
44
|
-
# Redirect from a filter effectively means "deny access"
|
45
|
-
def redirect_to(options = {}, response_status = {})
|
46
|
-
head :forbidden
|
47
|
-
end
|
48
|
-
|
49
37
|
protected
|
50
38
|
|
51
39
|
def session_user?
|
data/lib/openstax/api/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -4075,3 +4075,228 @@ Connecting to database specified by database.yml
|
|
4075
4075
|
[1m[35m (0.0ms)[0m rollback transaction
|
4076
4076
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4077
4077
|
[1m[35m (0.0ms)[0m rollback transaction
|
4078
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "password_hash" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
4079
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "oauth_access_grants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer NOT NULL, "application_id" integer NOT NULL, "token" varchar(255) NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "revoked_at" datetime, "scopes" varchar(255))
|
4080
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
4081
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
|
4082
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "oauth_access_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer, "application_id" integer, "token" varchar(255) NOT NULL, "refresh_token" varchar(255), "expires_in" integer, "revoked_at" datetime, "created_at" datetime NOT NULL, "scopes" varchar(255)) [0m
|
4083
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
|
4084
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
4085
|
+
FROM sqlite_master
|
4086
|
+
WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
|
4087
|
+
UNION ALL
|
4088
|
+
SELECT sql
|
4089
|
+
FROM sqlite_temp_master
|
4090
|
+
WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
|
4091
|
+
[0m
|
4092
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
|
4093
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
4094
|
+
FROM sqlite_master
|
4095
|
+
WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
|
4096
|
+
UNION ALL
|
4097
|
+
SELECT sql
|
4098
|
+
FROM sqlite_temp_master
|
4099
|
+
WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
|
4100
|
+
[0m
|
4101
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4102
|
+
FROM sqlite_master
|
4103
|
+
WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
|
4104
|
+
UNION ALL
|
4105
|
+
SELECT sql
|
4106
|
+
FROM sqlite_temp_master
|
4107
|
+
WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
|
4108
|
+
|
4109
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")[0m
|
4110
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "oauth_applications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "secret" varchar(255) NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
4111
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
4112
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
4113
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4114
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
4115
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m
|
4116
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
4117
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
4118
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4119
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4120
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4121
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4122
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4123
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4124
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4125
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4126
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4127
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4128
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4129
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4130
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4131
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4132
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4133
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4134
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4135
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4136
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4137
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-09-26 19:51:34.303942"], ["updated_at", "2014-09-26 19:51:34.303942"]]
|
4138
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4139
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
4140
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4141
|
+
[1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" IS NULL ORDER BY "dummy_users"."id" ASC LIMIT 1[0m
|
4142
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4143
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4144
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4145
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-09-26 19:51:34.312967"], ["updated_at", "2014-09-26 19:51:34.312967"]]
|
4146
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4147
|
+
[1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 1 ORDER BY "dummy_users"."id" ASC LIMIT 1[0m
|
4148
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
4149
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4150
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4151
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4152
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4153
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "password_hash" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
4154
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "oauth_access_grants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer NOT NULL, "application_id" integer NOT NULL, "token" varchar(255) NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "revoked_at" datetime, "scopes" varchar(255))
|
4155
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
4156
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
|
4157
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "oauth_access_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer, "application_id" integer, "token" varchar(255) NOT NULL, "refresh_token" varchar(255), "expires_in" integer, "revoked_at" datetime, "created_at" datetime NOT NULL, "scopes" varchar(255)) [0m
|
4158
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
|
4159
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
4160
|
+
FROM sqlite_master
|
4161
|
+
WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
|
4162
|
+
UNION ALL
|
4163
|
+
SELECT sql
|
4164
|
+
FROM sqlite_temp_master
|
4165
|
+
WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
|
4166
|
+
[0m
|
4167
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
|
4168
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
4169
|
+
FROM sqlite_master
|
4170
|
+
WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
|
4171
|
+
UNION ALL
|
4172
|
+
SELECT sql
|
4173
|
+
FROM sqlite_temp_master
|
4174
|
+
WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
|
4175
|
+
[0m
|
4176
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4177
|
+
FROM sqlite_master
|
4178
|
+
WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
|
4179
|
+
UNION ALL
|
4180
|
+
SELECT sql
|
4181
|
+
FROM sqlite_temp_master
|
4182
|
+
WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
|
4183
|
+
|
4184
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")[0m
|
4185
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "oauth_applications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "secret" varchar(255) NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
4186
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
4187
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
4188
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4189
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
4190
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m
|
4191
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
4192
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
4193
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4194
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4195
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4196
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4197
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4198
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4199
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4200
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4201
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4202
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4203
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4204
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4205
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4206
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4207
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4208
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4209
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4210
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4211
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4212
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4213
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4214
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4215
|
+
[1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" IS NULL ORDER BY "dummy_users"."id" ASC LIMIT 1
|
4216
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4217
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4218
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4219
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-09-26 23:18:58.756166"], ["updated_at", "2014-09-26 23:18:58.756166"]]
|
4220
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4221
|
+
[1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 1 ORDER BY "dummy_users"."id" ASC LIMIT 1
|
4222
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
4223
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4224
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4225
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-09-26 23:18:58.762926"], ["updated_at", "2014-09-26 23:18:58.762926"]]
|
4226
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4227
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
4228
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "password_hash" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
4229
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "oauth_access_grants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer NOT NULL, "application_id" integer NOT NULL, "token" varchar(255) NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "revoked_at" datetime, "scopes" varchar(255))
|
4230
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
4231
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
|
4232
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "oauth_access_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer, "application_id" integer, "token" varchar(255) NOT NULL, "refresh_token" varchar(255), "expires_in" integer, "revoked_at" datetime, "created_at" datetime NOT NULL, "scopes" varchar(255)) [0m
|
4233
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
|
4234
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
4235
|
+
FROM sqlite_master
|
4236
|
+
WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
|
4237
|
+
UNION ALL
|
4238
|
+
SELECT sql
|
4239
|
+
FROM sqlite_temp_master
|
4240
|
+
WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
|
4241
|
+
[0m
|
4242
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
|
4243
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
4244
|
+
FROM sqlite_master
|
4245
|
+
WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
|
4246
|
+
UNION ALL
|
4247
|
+
SELECT sql
|
4248
|
+
FROM sqlite_temp_master
|
4249
|
+
WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
|
4250
|
+
[0m
|
4251
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
4252
|
+
FROM sqlite_master
|
4253
|
+
WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
|
4254
|
+
UNION ALL
|
4255
|
+
SELECT sql
|
4256
|
+
FROM sqlite_temp_master
|
4257
|
+
WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
|
4258
|
+
|
4259
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")[0m
|
4260
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "oauth_applications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "secret" varchar(255) NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
4261
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
4262
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
4263
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4264
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
4265
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m
|
4266
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
4267
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
4268
|
+
[1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" IS NULL ORDER BY "dummy_users"."id" ASC LIMIT 1
|
4269
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4270
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4271
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4272
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-09-26 23:38:10.372836"], ["updated_at", "2014-09-26 23:38:10.372836"]]
|
4273
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4274
|
+
[1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 1 ORDER BY "dummy_users"."id" ASC LIMIT 1
|
4275
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
4276
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4277
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4278
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-09-26 23:38:10.383475"], ["updated_at", "2014-09-26 23:38:10.383475"]]
|
4279
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4280
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
4281
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4282
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4283
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4284
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4285
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4286
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4287
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4288
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4289
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4290
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4291
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4292
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4293
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4294
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4295
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4296
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4297
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4298
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4299
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4300
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4301
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4302
|
+
[1m[35m (0.0ms)[0m rollback transaction
|