openstax_api 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/controllers/openstax/api/v1/api_controller.rb +143 -3
- data/lib/openstax_api/doorkeeper_extensions.rb +1 -0
- data/lib/openstax_api/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +139 -0
- data/spec/dummy/log/test.log +252 -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: cce40c843b8d217abd9a7474b34217a10f380468
|
4
|
+
data.tar.gz: ae159bd0eda6a2191a5dfb3d8ac6b14f504b1df3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7416764ded4187e6dde991c812339d9c370a426ef7ca928807edbb9be0d86aa591d12b01660868066527c2dfb2df84322bdb2da1acbecddc6dade5e218cf4860
|
7
|
+
data.tar.gz: b714b80dbd734dd882eeb2a28442835f66372d9f5b32e920258e7291b90e536154c9e883de04b72b1a913991d6082763479e4a87dfabc3950527894e03d6b72f
|
data/README.md
CHANGED
@@ -59,7 +59,7 @@ If the boolean is true, that version is the default (latest) and will always mat
|
|
59
59
|
|
60
60
|
## Testing
|
61
61
|
|
62
|
-
From the gem's main folder, run `bundle`, and then `rake` to run all the specs.
|
62
|
+
From the gem's main folder, run `bundle`, `rake db:migrate` and then `rake` to run all the specs.
|
63
63
|
|
64
64
|
## Contributing
|
65
65
|
|
@@ -30,9 +30,21 @@ module OpenStax
|
|
30
30
|
"#{url_base}/#{options[:url_end] || ''}"
|
31
31
|
end
|
32
32
|
|
33
|
-
|
34
|
-
|
33
|
+
# TODO doorkeeper users (or rather users who have doorkeeper
|
34
|
+
# applications) need to agree to API terms of use (need to have agreed
|
35
|
+
# to it at one time, can't require them to agree when terms change since
|
36
|
+
# their apps are doing the talking) -- this needs more thought
|
37
|
+
|
38
|
+
def current_user
|
39
|
+
@current_user ||= doorkeeper_token ?
|
40
|
+
User.find(doorkeeper_token.resource_owner_id) :
|
41
|
+
super
|
42
|
+
# TODO maybe freak out if current user is anonymous (require we know
|
43
|
+
# who person/app is so we can do things like throttling, API terms
|
44
|
+
# agreement, etc)
|
35
45
|
end
|
46
|
+
|
47
|
+
|
36
48
|
|
37
49
|
protected
|
38
50
|
|
@@ -54,7 +66,7 @@ module OpenStax
|
|
54
66
|
end
|
55
67
|
|
56
68
|
if notify
|
57
|
-
# Not yet in OSU
|
69
|
+
# TODO: Not yet in OSU
|
58
70
|
=begin
|
59
71
|
ExceptionNotifier.notify_exception(
|
60
72
|
exception,
|
@@ -67,6 +79,134 @@ module OpenStax
|
|
67
79
|
|
68
80
|
head error
|
69
81
|
end
|
82
|
+
|
83
|
+
def self.json_schema(representer, options={})
|
84
|
+
RepresentableSchemaPrinter.json(representer, options)
|
85
|
+
end
|
86
|
+
|
87
|
+
# A hack at a conversion from a Representer to a series of Apipie declarations
|
88
|
+
# Can call it like any Apipie DSL method,
|
89
|
+
#
|
90
|
+
# example "blah"
|
91
|
+
# representer Api::V1::ExerciseRepresenter
|
92
|
+
# def update ...
|
93
|
+
#
|
94
|
+
def self.representer(representer)
|
95
|
+
representer.representable_attrs.each do |attr|
|
96
|
+
schema_info = attr.options[:schema_info] || {}
|
97
|
+
param attr.name, (attr.options[:type] || Object), required: schema_info[:required]
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
def get_representer(represent_with, model=nil)
|
102
|
+
return nil if represent_with.nil?
|
103
|
+
if represent_with.is_a? Proc
|
104
|
+
represent_with.call(model)
|
105
|
+
else
|
106
|
+
represent_with
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
def rest_get(model_klass, id, represent_with=nil)
|
111
|
+
@model = model_klass.find(id)
|
112
|
+
raise SecurityTransgression unless current_user.can_read?(@model)
|
113
|
+
respond_with @model, represent_with: get_representer(represent_with, @model)
|
114
|
+
end
|
115
|
+
|
116
|
+
def rest_update(model_klass, id, represent_with=nil)
|
117
|
+
@model = model_klass.find(id)
|
118
|
+
raise SecurityTransgression unless current_user.can_update?(@model)
|
119
|
+
consume!(@model, represent_with: get_representer(represent_with, @model))
|
120
|
+
|
121
|
+
if @model.save
|
122
|
+
head :no_content
|
123
|
+
else
|
124
|
+
render json: @model.errors, status: :unprocessable_entity
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
def rest_create(model_klass)
|
129
|
+
@model = model_klass.new()
|
130
|
+
|
131
|
+
# Unlike the implications of the representable README, "consume!" can
|
132
|
+
# actually make changes to the database. See http://goo.gl/WVLBqA.
|
133
|
+
# We do want to consume before checking the permissions so we can know
|
134
|
+
# what we're dealing with, but if user doesn't have permission we don't
|
135
|
+
# want to have changed the DB. Wrap in a transaction to protect ourselves.
|
136
|
+
|
137
|
+
model_klass.transaction do
|
138
|
+
consume!(@model)
|
139
|
+
raise SecurityTransgression unless current_user.can_create?(@model)
|
140
|
+
end
|
141
|
+
|
142
|
+
if @model.save
|
143
|
+
respond_with @model
|
144
|
+
else
|
145
|
+
render json: @model.errors, status: :unprocessable_entity
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
def rest_destroy(model_klass, id)
|
150
|
+
@model = model_klass.find(id)
|
151
|
+
raise SecurityTransgression unless current_user.can_destroy?(@model)
|
152
|
+
|
153
|
+
if @model.destroy
|
154
|
+
head :no_content
|
155
|
+
else
|
156
|
+
render json: @model.errors, status: :unprocessable_entity
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
def standard_sort(model_klass)
|
161
|
+
# take array of all IDs or hash of id => position,
|
162
|
+
# regardless build up an array of all IDs in the right order and pass those to sort
|
163
|
+
|
164
|
+
new_positions = params['newPositions']
|
165
|
+
return head :no_content if new_positions.length == 0
|
166
|
+
|
167
|
+
# Can't have duplicate positions or IDs
|
168
|
+
unique_ids = new_positions.collect{|np| np['id']}.uniq
|
169
|
+
unique_positions = new_positions.collect{|np| np['position']}.uniq
|
170
|
+
|
171
|
+
return head :bad_request if unique_ids.length != new_positions.length
|
172
|
+
return head :bad_request if unique_positions.length != new_positions.length
|
173
|
+
|
174
|
+
first = model_klass.where(:id => new_positions[0]['id']).first
|
175
|
+
|
176
|
+
return head :not_found if first.blank?
|
177
|
+
|
178
|
+
originalOrdered = first.me_and_peers.ordered.all
|
179
|
+
|
180
|
+
originalOrdered.each do |item|
|
181
|
+
raise SecurityTransgression unless item.send(:container_column) == originalOrdered[0].send(:container_column) \
|
182
|
+
if item.respond_to?(:container_column)
|
183
|
+
raise SecurityTransgression unless current_user.can_sort?(item)
|
184
|
+
end
|
185
|
+
|
186
|
+
originalOrderedIds = originalOrdered.collect{|sc| sc.id}
|
187
|
+
|
188
|
+
newOrderedIds = Array.new(originalOrderedIds.size)
|
189
|
+
|
190
|
+
new_positions.each do |newPosition|
|
191
|
+
id = newPosition['id'].to_i
|
192
|
+
newOrderedIds[newPosition['position']] = id
|
193
|
+
originalOrderedIds.delete(id)
|
194
|
+
end
|
195
|
+
|
196
|
+
ptr = 0
|
197
|
+
for oldId in originalOrderedIds
|
198
|
+
while !newOrderedIds[ptr].nil?; ptr += 1; end
|
199
|
+
newOrderedIds[ptr] = oldId
|
200
|
+
end
|
201
|
+
|
202
|
+
begin
|
203
|
+
model_klass.sort!(newOrderedIds)
|
204
|
+
rescue Exception => e
|
205
|
+
return head :internal_server_error
|
206
|
+
end
|
207
|
+
|
208
|
+
head :no_content
|
209
|
+
end
|
70
210
|
|
71
211
|
end
|
72
212
|
|
data/lib/openstax_api/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -539,3 +539,142 @@ Connecting to database specified by database.yml
|
|
539
539
|
[1m[35m (0.7ms)[0m DROP TABLE "users"
|
540
540
|
[1m[36m (0.8ms)[0m [1mCREATE TABLE "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
|
541
541
|
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
542
|
+
Connecting to database specified by database.yml
|
543
|
+
Connecting to database specified by database.yml
|
544
|
+
Connecting to database specified by database.yml
|
545
|
+
Connecting to database specified by database.yml
|
546
|
+
Connecting to database specified by database.yml
|
547
|
+
Connecting to database specified by database.yml
|
548
|
+
Connecting to database specified by database.yml
|
549
|
+
Connecting to database specified by database.yml
|
550
|
+
Connecting to database specified by database.yml
|
551
|
+
Connecting to database specified by database.yml
|
552
|
+
Connecting to database specified by database.yml
|
553
|
+
Connecting to database specified by database.yml
|
554
|
+
Connecting to database specified by database.yml
|
555
|
+
Connecting to database specified by database.yml
|
556
|
+
Connecting to database specified by database.yml
|
557
|
+
Connecting to database specified by database.yml
|
558
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
559
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
560
|
+
[1m[36m (1.0ms)[0m [1mDROP TABLE "oauth_access_grants"[0m
|
561
|
+
[1m[35m (1.1ms)[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))
|
562
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")[0m
|
563
|
+
[1m[35m (0.9ms)[0m DROP TABLE "oauth_access_tokens"
|
564
|
+
[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
|
565
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
|
566
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")[0m
|
567
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
|
568
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "oauth_applications"[0m
|
569
|
+
[1m[35m (0.8ms)[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)
|
570
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
571
|
+
[1m[35m (0.7ms)[0m DROP TABLE "users"
|
572
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "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
|
573
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
574
|
+
Connecting to database specified by database.yml
|
575
|
+
Connecting to database specified by database.yml
|
576
|
+
Connecting to database specified by database.yml
|
577
|
+
Connecting to database specified by database.yml
|
578
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
579
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
580
|
+
[1m[36m (1.6ms)[0m [1mDROP TABLE "oauth_access_grants"[0m
|
581
|
+
[1m[35m (0.9ms)[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))
|
582
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")[0m
|
583
|
+
[1m[35m (1.0ms)[0m DROP TABLE "oauth_access_tokens"
|
584
|
+
[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
|
585
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
|
586
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")[0m
|
587
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
|
588
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "oauth_applications"[0m
|
589
|
+
[1m[35m (0.8ms)[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)
|
590
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
591
|
+
[1m[35m (0.7ms)[0m DROP TABLE "users"
|
592
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "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
|
593
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
594
|
+
Connecting to database specified by database.yml
|
595
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
596
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
597
|
+
[1m[36m (1.8ms)[0m [1mDROP TABLE "oauth_access_grants"[0m
|
598
|
+
[1m[35m (1.1ms)[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))
|
599
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")[0m
|
600
|
+
[1m[35m (0.9ms)[0m DROP TABLE "oauth_access_tokens"
|
601
|
+
[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
|
602
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
|
603
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")[0m
|
604
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
|
605
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "oauth_applications"[0m
|
606
|
+
[1m[35m (0.8ms)[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)
|
607
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
608
|
+
[1m[35m (0.8ms)[0m DROP TABLE "users"
|
609
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "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
|
610
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
611
|
+
Connecting to database specified by database.yml
|
612
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
613
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
614
|
+
[1m[36m (1.7ms)[0m [1mDROP TABLE "oauth_access_grants"[0m
|
615
|
+
[1m[35m (0.9ms)[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))
|
616
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")[0m
|
617
|
+
[1m[35m (0.8ms)[0m DROP TABLE "oauth_access_tokens"
|
618
|
+
[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
|
619
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
|
620
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")[0m
|
621
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
|
622
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "oauth_applications"[0m
|
623
|
+
[1m[35m (0.8ms)[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)
|
624
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
625
|
+
[1m[35m (0.7ms)[0m DROP TABLE "users"
|
626
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "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
|
627
|
+
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
628
|
+
Connecting to database specified by database.yml
|
629
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
630
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
631
|
+
[1m[36m (1.6ms)[0m [1mDROP TABLE "oauth_access_grants"[0m
|
632
|
+
[1m[35m (0.9ms)[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))
|
633
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")[0m
|
634
|
+
[1m[35m (0.8ms)[0m DROP TABLE "oauth_access_tokens"
|
635
|
+
[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
|
636
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
|
637
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")[0m
|
638
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
|
639
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "oauth_applications"[0m
|
640
|
+
[1m[35m (0.8ms)[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)
|
641
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
642
|
+
[1m[35m (0.7ms)[0m DROP TABLE "users"
|
643
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "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
|
644
|
+
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
645
|
+
Connecting to database specified by database.yml
|
646
|
+
Connecting to database specified by database.yml
|
647
|
+
Connecting to database specified by database.yml
|
648
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
649
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
650
|
+
[1m[36m (1.9ms)[0m [1mDROP TABLE "oauth_access_grants"[0m
|
651
|
+
[1m[35m (1.1ms)[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))
|
652
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")[0m
|
653
|
+
[1m[35m (0.8ms)[0m DROP TABLE "oauth_access_tokens"
|
654
|
+
[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
|
655
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
|
656
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")[0m
|
657
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
|
658
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "oauth_applications"[0m
|
659
|
+
[1m[35m (0.8ms)[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)
|
660
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
661
|
+
[1m[35m (0.7ms)[0m DROP TABLE "users"
|
662
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "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
|
663
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
664
|
+
Connecting to database specified by database.yml
|
665
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
666
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
667
|
+
[1m[36m (1.8ms)[0m [1mDROP TABLE "oauth_access_grants"[0m
|
668
|
+
[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))
|
669
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")[0m
|
670
|
+
[1m[35m (0.9ms)[0m DROP TABLE "oauth_access_tokens"
|
671
|
+
[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
|
672
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
|
673
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")[0m
|
674
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
|
675
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "oauth_applications"[0m
|
676
|
+
[1m[35m (0.8ms)[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)
|
677
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
678
|
+
[1m[35m (0.7ms)[0m DROP TABLE "users"
|
679
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "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
|
680
|
+
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
data/spec/dummy/log/test.log
CHANGED
@@ -3181,3 +3181,255 @@ Connecting to database specified by database.yml
|
|
3181
3181
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3182
3182
|
[1m[35m (0.0ms)[0m begin transaction
|
3183
3183
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3184
|
+
Connecting to database specified by database.yml
|
3185
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
3186
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3187
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3188
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3189
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3190
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3191
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3192
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3193
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3194
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3195
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3196
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3197
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3198
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3199
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3200
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3201
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3202
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3203
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3204
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3205
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3206
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3207
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3208
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3209
|
+
[1m[36mSQL (5.2ms)[0m [1mINSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 26 Mar 2014 20:21:13 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 20:21:13 UTC +00:00], ["username", nil]]
|
3210
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3211
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3212
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
3213
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3214
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3215
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 26 Mar 2014 20:21:13 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 20:21:13 UTC +00:00], ["username", nil]]
|
3216
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3217
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
3218
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3219
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3220
|
+
Connecting to database specified by database.yml
|
3221
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
3222
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3223
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3224
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3225
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3226
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3227
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3228
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3229
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3230
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3231
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3232
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3233
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3234
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3235
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3236
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3237
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3238
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3239
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3240
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3241
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3242
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3243
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3244
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3245
|
+
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 26 Mar 2014 20:40:46 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 20:40:46 UTC +00:00], ["username", nil]]
|
3246
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3247
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
3248
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3249
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3250
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Mar 2014 20:40:46 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 20:40:46 UTC +00:00], ["username", nil]]
|
3251
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3252
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3253
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
3254
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3255
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3256
|
+
Connecting to database specified by database.yml
|
3257
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
3258
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3259
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3260
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3261
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3262
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3263
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 26 Mar 2014 20:40:56 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 20:40:56 UTC +00:00], ["username", nil]]
|
3264
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3265
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
3266
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3267
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3268
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Mar 2014 20:40:56 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 20:40:56 UTC +00:00], ["username", nil]]
|
3269
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3270
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3271
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
3272
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3273
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3274
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3275
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3276
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3277
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3278
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3279
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3280
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3281
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3282
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3283
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3284
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3285
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3286
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3287
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3288
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3289
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3290
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3291
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3292
|
+
Connecting to database specified by database.yml
|
3293
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
3294
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3295
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3296
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3297
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 26 Mar 2014 20:41:44 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 20:41:44 UTC +00:00], ["username", nil]]
|
3298
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3299
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
3300
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3301
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3302
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3303
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3304
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Mar 2014 20:41:44 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 20:41:44 UTC +00:00], ["username", nil]]
|
3305
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3306
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3307
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
3308
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3309
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3310
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3311
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3312
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3313
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3314
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3315
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3316
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3317
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3318
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3319
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3320
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3321
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3322
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3323
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3324
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3325
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3326
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3327
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3328
|
+
Connecting to database specified by database.yml
|
3329
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
3330
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3331
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3332
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3333
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 26 Mar 2014 20:42:07 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 20:42:07 UTC +00:00], ["username", nil]]
|
3334
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3335
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
3336
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3337
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3338
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Mar 2014 20:42:07 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 20:42:07 UTC +00:00], ["username", nil]]
|
3339
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3340
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3341
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
3342
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3343
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3344
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3345
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3346
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3347
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3348
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3349
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3350
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3351
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3352
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3353
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3354
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3355
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3356
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3357
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3358
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3359
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3360
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3361
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3362
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3363
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3364
|
+
Connecting to database specified by database.yml
|
3365
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
3366
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3367
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3368
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3369
|
+
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 26 Mar 2014 20:59:20 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 20:59:20 UTC +00:00], ["username", nil]]
|
3370
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3371
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
3372
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3373
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3374
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3375
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3376
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Mar 2014 20:59:20 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 20:59:20 UTC +00:00], ["username", nil]]
|
3377
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3378
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3379
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
3380
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3381
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3382
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3383
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3384
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3385
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3386
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3387
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3388
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3389
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3390
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3391
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3392
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3393
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3394
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3395
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3396
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3397
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3398
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3399
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3400
|
+
Connecting to database specified by database.yml
|
3401
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
3402
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3403
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3404
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3405
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3406
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3407
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3408
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3409
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3410
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3411
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 26 Mar 2014 21:03:04 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 21:03:04 UTC +00:00], ["username", nil]]
|
3412
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3413
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
3414
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3415
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3416
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?) [["created_at", Wed, 26 Mar 2014 21:03:04 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 26 Mar 2014 21:03:04 UTC +00:00], ["username", nil]]
|
3417
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3418
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3419
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
3420
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3421
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3422
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3423
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3424
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3425
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3426
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3427
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3428
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3429
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3430
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3431
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3432
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3433
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3434
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3435
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|