devise-ios-rails 1.0.0 → 1.0.1
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 +39 -0
- data/app/controllers/devise_ios_rails/oauth_controller.rb +20 -0
- data/app/validators/oauth_token_validator.rb +25 -0
- data/lib/devise-ios-rails/engine.rb +3 -1
- data/lib/devise-ios-rails/oauth.rb +29 -0
- data/lib/devise-ios-rails/version.rb +1 -1
- data/spec/dummy/Gemfile +0 -1
- data/spec/dummy/Gemfile.lock +0 -7
- data/spec/dummy/app/models/user.rb +2 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/db/migrate/20150224102948_add_oauth_to_users.rb +6 -0
- data/spec/dummy/db/migrate/20150225123829_change_user_email_to_nullable.rb +5 -0
- data/spec/dummy/db/migrate/20150226101912_add_oauth_token_to_users.rb +5 -0
- data/spec/dummy/db/migrate/20150304131205_add_index_to_user_uid_and_provider.rb +5 -0
- data/spec/dummy/db/migrate/20150305154646_add_oauth_email_to_users.rb +21 -0
- data/spec/dummy/db/saaskit_development.sqlite3 +0 -0
- data/spec/dummy/db/saaskit_test.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +7 -2
- data/spec/dummy/log/test.log +615 -9436
- data/spec/dummy/spec/api/v1/oauth_spec.rb +49 -0
- data/spec/dummy/spec/factories/users.rb +6 -0
- data/spec/dummy/spec/factories_spec.rb +2 -0
- data/spec/dummy/spec/support/helpers/oauth.rb +28 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/validators/oauth_token_validator_spec.rb +25 -0
- metadata +51 -6
- data/spec/dummy/log/development.log +0 -610
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe 'OAuth' do
|
4
|
+
include Rack::Test::Methods
|
5
|
+
include_context 'format: json'
|
6
|
+
|
7
|
+
describe 'user registration' do
|
8
|
+
context 'with valid oauth_token' do
|
9
|
+
let(:params) do
|
10
|
+
{
|
11
|
+
user: {
|
12
|
+
provider: 'facebook',
|
13
|
+
oauth_token: 'valid_token',
|
14
|
+
uid: '1234'
|
15
|
+
}
|
16
|
+
}
|
17
|
+
end
|
18
|
+
|
19
|
+
before { stub_successful_facebook_request }
|
20
|
+
|
21
|
+
it 'creates a new user' do
|
22
|
+
expect do
|
23
|
+
post 'v1/auth/facebook', params
|
24
|
+
end.to change(User, :count).by(1)
|
25
|
+
end
|
26
|
+
|
27
|
+
context 'with existing provider and uid' do
|
28
|
+
let!(:user) { create(:oauth_user) }
|
29
|
+
|
30
|
+
it 'returns the existing user' do
|
31
|
+
expect do
|
32
|
+
post 'v1/auth/facebook', user: user.attributes
|
33
|
+
end.not_to change(User, :count)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
context 'with invalid oauth_token' do
|
39
|
+
before { stub_unsuccessful_facebook_request }
|
40
|
+
|
41
|
+
it 'responds with error message' do
|
42
|
+
user = build(:oauth_user, oauth_token: 'invalid_token')
|
43
|
+
expect(
|
44
|
+
post('v1/auth/facebook', user: user.attributes).body
|
45
|
+
).to include 'Error message.'
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
def stub_successful_facebook_request
|
2
|
+
stub_request(
|
3
|
+
:get,
|
4
|
+
"https://graph.facebook.com/me?access_token=valid_token"
|
5
|
+
).to_return(
|
6
|
+
:status => 200,
|
7
|
+
:body => '',
|
8
|
+
:headers => {}
|
9
|
+
)
|
10
|
+
end
|
11
|
+
|
12
|
+
def stub_unsuccessful_facebook_request
|
13
|
+
stub_request(
|
14
|
+
:get,
|
15
|
+
"https://graph.facebook.com/me?access_token=invalid_token"
|
16
|
+
).to_return(
|
17
|
+
:status => 400,
|
18
|
+
:body => '{
|
19
|
+
"error": {
|
20
|
+
"message": "Error message.",
|
21
|
+
"type": "OAuthException",
|
22
|
+
"code": 190,
|
23
|
+
"error_subcode": 463
|
24
|
+
}
|
25
|
+
}',
|
26
|
+
:headers => {}
|
27
|
+
)
|
28
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'webmock/rspec'
|
1
2
|
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
|
2
3
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
4
|
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe OauthTokenValidator do
|
4
|
+
let(:facebook_url) do
|
5
|
+
'https://graph.facebook.com/me?access_token=valid_token'
|
6
|
+
end
|
7
|
+
|
8
|
+
context 'connection timeout' do
|
9
|
+
it 'adds error on oauth_token' do
|
10
|
+
stub_request(:any, facebook_url).to_timeout
|
11
|
+
user = build :oauth_user
|
12
|
+
expect(user).not_to be_valid
|
13
|
+
expect(user.errors[:oauth_token].size).to eq(1)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
context 'no connection' do
|
18
|
+
it 'adds error on oauth_token' do
|
19
|
+
stub_request(:any, facebook_url).to_raise(Faraday::ConnectionFailed)
|
20
|
+
user = build :oauth_user
|
21
|
+
expect(user).not_to be_valid
|
22
|
+
expect(user.errors[:oauth_token].size).to eq(1)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise-ios-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Netguru
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: webmock
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rails
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,7 +61,7 @@ dependencies:
|
|
47
61
|
version: 4.0.0
|
48
62
|
- - "<"
|
49
63
|
- !ruby/object:Gem::Version
|
50
|
-
version: 4.
|
64
|
+
version: 4.3.0
|
51
65
|
type: :runtime
|
52
66
|
prerelease: false
|
53
67
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +71,7 @@ dependencies:
|
|
57
71
|
version: 4.0.0
|
58
72
|
- - "<"
|
59
73
|
- !ruby/object:Gem::Version
|
60
|
-
version: 4.
|
74
|
+
version: 4.3.0
|
61
75
|
- !ruby/object:Gem::Dependency
|
62
76
|
name: devise
|
63
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,6 +114,20 @@ dependencies:
|
|
100
114
|
- - "~>"
|
101
115
|
- !ruby/object:Gem::Version
|
102
116
|
version: '0.9'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: koala
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 1.11.1
|
124
|
+
type: :runtime
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 1.11.1
|
103
131
|
description: Integrates devise authentication with iOS
|
104
132
|
email:
|
105
133
|
- netguru@netguru.co
|
@@ -109,12 +137,15 @@ extra_rdoc_files: []
|
|
109
137
|
files:
|
110
138
|
- README.md
|
111
139
|
- Rakefile
|
140
|
+
- app/controllers/devise_ios_rails/oauth_controller.rb
|
112
141
|
- app/controllers/devise_ios_rails/passwords_controller.rb
|
113
142
|
- app/controllers/devise_ios_rails/registrations_controller.rb
|
114
143
|
- app/serializers/errors_serializer.rb
|
115
144
|
- app/services/devise_ios_rails/change_password_service.rb
|
145
|
+
- app/validators/oauth_token_validator.rb
|
116
146
|
- lib/devise-ios-rails.rb
|
117
147
|
- lib/devise-ios-rails/engine.rb
|
148
|
+
- lib/devise-ios-rails/oauth.rb
|
118
149
|
- lib/devise-ios-rails/rails/routes.rb
|
119
150
|
- lib/devise-ios-rails/version.rb
|
120
151
|
- lib/tasks/devise-ios-rails_tasks.rake
|
@@ -185,14 +216,19 @@ files:
|
|
185
216
|
- spec/dummy/db/migrate/20141201111915_remove_username_from_users.rb
|
186
217
|
- spec/dummy/db/migrate/20141208080520_create_secret_spaces.rb
|
187
218
|
- spec/dummy/db/migrate/20141215153026_create_active_admin_comments.rb
|
219
|
+
- spec/dummy/db/migrate/20150224102948_add_oauth_to_users.rb
|
220
|
+
- spec/dummy/db/migrate/20150225123829_change_user_email_to_nullable.rb
|
221
|
+
- spec/dummy/db/migrate/20150226101912_add_oauth_token_to_users.rb
|
222
|
+
- spec/dummy/db/migrate/20150304131205_add_index_to_user_uid_and_provider.rb
|
223
|
+
- spec/dummy/db/migrate/20150305154646_add_oauth_email_to_users.rb
|
188
224
|
- spec/dummy/db/saaskit_development.sqlite3
|
189
225
|
- spec/dummy/db/saaskit_test.sqlite3
|
190
226
|
- spec/dummy/db/schema.rb
|
191
227
|
- spec/dummy/db/seeds.rb
|
192
|
-
- spec/dummy/log/development.log
|
193
228
|
- spec/dummy/log/test.log
|
194
229
|
- spec/dummy/spec/api/v1/authorized_users_spec.rb
|
195
230
|
- spec/dummy/spec/api/v1/login_spec.rb
|
231
|
+
- spec/dummy/spec/api/v1/oauth_spec.rb
|
196
232
|
- spec/dummy/spec/api/v1/request_password_reset_spec.rb
|
197
233
|
- spec/dummy/spec/api/v1/unauthorized_users_spec.rb
|
198
234
|
- spec/dummy/spec/factories/authentications.rb
|
@@ -206,6 +242,7 @@ files:
|
|
206
242
|
- spec/dummy/spec/support/devise.rb
|
207
243
|
- spec/dummy/spec/support/factory_girl.rb
|
208
244
|
- spec/dummy/spec/support/helpers/json.rb
|
245
|
+
- spec/dummy/spec/support/helpers/oauth.rb
|
209
246
|
- spec/dummy/spec/support/shared_contexts/authenticated.rb
|
210
247
|
- spec/dummy/spec/support/shared_contexts/json_format.rb
|
211
248
|
- spec/dummy/spec/support/shared_examples/authorized.rb
|
@@ -213,6 +250,7 @@ files:
|
|
213
250
|
- spec/rails_helper.rb
|
214
251
|
- spec/serializers/errors_serializer_spec.rb
|
215
252
|
- spec/spec_helper.rb
|
253
|
+
- spec/validators/oauth_token_validator_spec.rb
|
216
254
|
homepage: http://github.com/netguru/devise-ios-rails
|
217
255
|
licenses:
|
218
256
|
- MIT
|
@@ -301,18 +339,23 @@ test_files:
|
|
301
339
|
- spec/dummy/db/migrate/20141201111915_remove_username_from_users.rb
|
302
340
|
- spec/dummy/db/migrate/20141208080520_create_secret_spaces.rb
|
303
341
|
- spec/dummy/db/migrate/20141215153026_create_active_admin_comments.rb
|
342
|
+
- spec/dummy/db/migrate/20150224102948_add_oauth_to_users.rb
|
343
|
+
- spec/dummy/db/migrate/20150225123829_change_user_email_to_nullable.rb
|
344
|
+
- spec/dummy/db/migrate/20150226101912_add_oauth_token_to_users.rb
|
345
|
+
- spec/dummy/db/migrate/20150304131205_add_index_to_user_uid_and_provider.rb
|
346
|
+
- spec/dummy/db/migrate/20150305154646_add_oauth_email_to_users.rb
|
304
347
|
- spec/dummy/db/saaskit_development.sqlite3
|
305
348
|
- spec/dummy/db/saaskit_test.sqlite3
|
306
349
|
- spec/dummy/db/schema.rb
|
307
350
|
- spec/dummy/db/seeds.rb
|
308
351
|
- spec/dummy/Gemfile
|
309
352
|
- spec/dummy/Gemfile.lock
|
310
|
-
- spec/dummy/log/development.log
|
311
353
|
- spec/dummy/log/test.log
|
312
354
|
- spec/dummy/Rakefile
|
313
355
|
- spec/dummy/README.md
|
314
356
|
- spec/dummy/spec/api/v1/authorized_users_spec.rb
|
315
357
|
- spec/dummy/spec/api/v1/login_spec.rb
|
358
|
+
- spec/dummy/spec/api/v1/oauth_spec.rb
|
316
359
|
- spec/dummy/spec/api/v1/request_password_reset_spec.rb
|
317
360
|
- spec/dummy/spec/api/v1/unauthorized_users_spec.rb
|
318
361
|
- spec/dummy/spec/factories/authentications.rb
|
@@ -326,6 +369,7 @@ test_files:
|
|
326
369
|
- spec/dummy/spec/support/devise.rb
|
327
370
|
- spec/dummy/spec/support/factory_girl.rb
|
328
371
|
- spec/dummy/spec/support/helpers/json.rb
|
372
|
+
- spec/dummy/spec/support/helpers/oauth.rb
|
329
373
|
- spec/dummy/spec/support/shared_contexts/authenticated.rb
|
330
374
|
- spec/dummy/spec/support/shared_contexts/json_format.rb
|
331
375
|
- spec/dummy/spec/support/shared_examples/authorized.rb
|
@@ -333,4 +377,5 @@ test_files:
|
|
333
377
|
- spec/rails_helper.rb
|
334
378
|
- spec/serializers/errors_serializer_spec.rb
|
335
379
|
- spec/spec_helper.rb
|
380
|
+
- spec/validators/oauth_token_validator_spec.rb
|
336
381
|
has_rdoc:
|
@@ -1,610 +0,0 @@
|
|
1
|
-
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
-
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
-
Migrating to DeviseCreateUsers (20141127081722)
|
6
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
-
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime, "updated_at" datetime)
|
8
|
-
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")[0m
|
9
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
10
|
-
FROM sqlite_master
|
11
|
-
WHERE name='index_users_on_username' AND type='index'
|
12
|
-
UNION ALL
|
13
|
-
SELECT sql
|
14
|
-
FROM sqlite_temp_master
|
15
|
-
WHERE name='index_users_on_username' AND type='index'
|
16
|
-
|
17
|
-
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
18
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141127081722"]]
|
19
|
-
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
20
|
-
Migrating to AddAuthenticationTokenToUsers (20141127114158)
|
21
|
-
[1m[35m (0.0ms)[0m begin transaction
|
22
|
-
[1m[36m (0.3ms)[0m [1mALTER TABLE "users" ADD "authentication_token" varchar(255)[0m
|
23
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
24
|
-
FROM sqlite_master
|
25
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
26
|
-
UNION ALL
|
27
|
-
SELECT sql
|
28
|
-
FROM sqlite_temp_master
|
29
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
30
|
-
|
31
|
-
[1m[36m (0.0ms)[0m [1m SELECT sql
|
32
|
-
FROM sqlite_master
|
33
|
-
WHERE name='index_users_on_username' AND type='index'
|
34
|
-
UNION ALL
|
35
|
-
SELECT sql
|
36
|
-
FROM sqlite_temp_master
|
37
|
-
WHERE name='index_users_on_username' AND type='index'
|
38
|
-
[0m
|
39
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
|
40
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141127114158"]]
|
41
|
-
[1m[35m (0.8ms)[0m commit transaction
|
42
|
-
Migrating to AddUniqueIndexToAuthenticationTokenInUsers (20141201085308)
|
43
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
44
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
45
|
-
FROM sqlite_master
|
46
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
47
|
-
UNION ALL
|
48
|
-
SELECT sql
|
49
|
-
FROM sqlite_temp_master
|
50
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
51
|
-
|
52
|
-
[1m[36m (0.0ms)[0m [1m SELECT sql
|
53
|
-
FROM sqlite_master
|
54
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
55
|
-
UNION ALL
|
56
|
-
SELECT sql
|
57
|
-
FROM sqlite_temp_master
|
58
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
59
|
-
[0m
|
60
|
-
[1m[35m (0.0ms)[0m SELECT sql
|
61
|
-
FROM sqlite_master
|
62
|
-
WHERE name='index_users_on_username' AND type='index'
|
63
|
-
UNION ALL
|
64
|
-
SELECT sql
|
65
|
-
FROM sqlite_temp_master
|
66
|
-
WHERE name='index_users_on_username' AND type='index'
|
67
|
-
|
68
|
-
[1m[36m (0.3ms)[0m [1mDROP INDEX "index_users_on_authentication_token"[0m
|
69
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
70
|
-
FROM sqlite_master
|
71
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
72
|
-
UNION ALL
|
73
|
-
SELECT sql
|
74
|
-
FROM sqlite_temp_master
|
75
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
76
|
-
|
77
|
-
[1m[36m (0.0ms)[0m [1m SELECT sql
|
78
|
-
FROM sqlite_master
|
79
|
-
WHERE name='index_users_on_username' AND type='index'
|
80
|
-
UNION ALL
|
81
|
-
SELECT sql
|
82
|
-
FROM sqlite_temp_master
|
83
|
-
WHERE name='index_users_on_username' AND type='index'
|
84
|
-
[0m
|
85
|
-
[1m[35m (0.3ms)[0m CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
|
86
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141201085308"]]
|
87
|
-
[1m[35m (0.9ms)[0m commit transaction
|
88
|
-
Migrating to RemoveUsernameFromUsers (20141201111915)
|
89
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
90
|
-
[1m[35m (0.4ms)[0m CREATE TEMPORARY TABLE "ausers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime, "updated_at" datetime, "authentication_token" varchar(255))
|
91
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
92
|
-
FROM sqlite_master
|
93
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
94
|
-
UNION ALL
|
95
|
-
SELECT sql
|
96
|
-
FROM sqlite_temp_master
|
97
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
98
|
-
[0m
|
99
|
-
[1m[35m (0.0ms)[0m SELECT sql
|
100
|
-
FROM sqlite_master
|
101
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
102
|
-
UNION ALL
|
103
|
-
SELECT sql
|
104
|
-
FROM sqlite_temp_master
|
105
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
106
|
-
|
107
|
-
[1m[36m (0.0ms)[0m [1m SELECT sql
|
108
|
-
FROM sqlite_master
|
109
|
-
WHERE name='index_users_on_username' AND type='index'
|
110
|
-
UNION ALL
|
111
|
-
SELECT sql
|
112
|
-
FROM sqlite_temp_master
|
113
|
-
WHERE name='index_users_on_username' AND type='index'
|
114
|
-
[0m
|
115
|
-
[1m[35m (0.5ms)[0m CREATE UNIQUE INDEX "tindex_ausers_on_authentication_token" ON "ausers" ("authentication_token")
|
116
|
-
[1m[36m (0.0ms)[0m [1m SELECT sql
|
117
|
-
FROM sqlite_master
|
118
|
-
WHERE name='tindex_ausers_on_authentication_token' AND type='index'
|
119
|
-
UNION ALL
|
120
|
-
SELECT sql
|
121
|
-
FROM sqlite_temp_master
|
122
|
-
WHERE name='tindex_ausers_on_authentication_token' AND type='index'
|
123
|
-
[0m
|
124
|
-
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "tindex_ausers_on_reset_password_token" ON "ausers" ("reset_password_token")
|
125
|
-
[1m[36m (0.0ms)[0m [1m SELECT sql
|
126
|
-
FROM sqlite_master
|
127
|
-
WHERE name='tindex_ausers_on_reset_password_token' AND type='index'
|
128
|
-
UNION ALL
|
129
|
-
SELECT sql
|
130
|
-
FROM sqlite_temp_master
|
131
|
-
WHERE name='tindex_ausers_on_reset_password_token' AND type='index'
|
132
|
-
[0m
|
133
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
134
|
-
FROM sqlite_master
|
135
|
-
WHERE name='tindex_ausers_on_authentication_token' AND type='index'
|
136
|
-
UNION ALL
|
137
|
-
SELECT sql
|
138
|
-
FROM sqlite_temp_master
|
139
|
-
WHERE name='tindex_ausers_on_authentication_token' AND type='index'
|
140
|
-
|
141
|
-
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "tindex_ausers_on_username" ON "ausers" ("username")[0m
|
142
|
-
[1m[35m (0.1ms)[0m SELECT * FROM "users"
|
143
|
-
[1m[36m (0.3ms)[0m [1mDROP TABLE "users"[0m
|
144
|
-
[1m[35m (0.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime, "updated_at" datetime, "authentication_token" varchar(255))
|
145
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
146
|
-
FROM sqlite_master
|
147
|
-
WHERE name='tindex_ausers_on_username' AND type='index'
|
148
|
-
UNION ALL
|
149
|
-
SELECT sql
|
150
|
-
FROM sqlite_temp_master
|
151
|
-
WHERE name='tindex_ausers_on_username' AND type='index'
|
152
|
-
[0m
|
153
|
-
[1m[35m (0.0ms)[0m SELECT sql
|
154
|
-
FROM sqlite_master
|
155
|
-
WHERE name='tindex_ausers_on_reset_password_token' AND type='index'
|
156
|
-
UNION ALL
|
157
|
-
SELECT sql
|
158
|
-
FROM sqlite_temp_master
|
159
|
-
WHERE name='tindex_ausers_on_reset_password_token' AND type='index'
|
160
|
-
|
161
|
-
[1m[36m (0.0ms)[0m [1m SELECT sql
|
162
|
-
FROM sqlite_master
|
163
|
-
WHERE name='tindex_ausers_on_authentication_token' AND type='index'
|
164
|
-
UNION ALL
|
165
|
-
SELECT sql
|
166
|
-
FROM sqlite_temp_master
|
167
|
-
WHERE name='tindex_ausers_on_authentication_token' AND type='index'
|
168
|
-
[0m
|
169
|
-
[1m[35m (0.3ms)[0m CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
|
170
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
171
|
-
FROM sqlite_master
|
172
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
173
|
-
UNION ALL
|
174
|
-
SELECT sql
|
175
|
-
FROM sqlite_temp_master
|
176
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
177
|
-
[0m
|
178
|
-
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
|
179
|
-
[1m[36m (0.0ms)[0m [1mSELECT * FROM "ausers"[0m
|
180
|
-
[1m[35m (0.1ms)[0m DROP TABLE "ausers"
|
181
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141201111915"]]
|
182
|
-
[1m[35m (1.2ms)[0m commit transaction
|
183
|
-
Migrating to CreateSecretSpaces (20141208080520)
|
184
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
185
|
-
[1m[35m (0.5ms)[0m CREATE TABLE "secret_spaces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
186
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141208080520"]]
|
187
|
-
[1m[35m (0.6ms)[0m commit transaction
|
188
|
-
Migrating to CreateActiveAdminComments (20141215153026)
|
189
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
190
|
-
[1m[35m (0.4ms)[0m CREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "namespace" varchar(255), "body" text, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
191
|
-
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")[0m
|
192
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
193
|
-
FROM sqlite_master
|
194
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
195
|
-
UNION ALL
|
196
|
-
SELECT sql
|
197
|
-
FROM sqlite_temp_master
|
198
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
199
|
-
|
200
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")[0m
|
201
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
202
|
-
FROM sqlite_master
|
203
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
204
|
-
UNION ALL
|
205
|
-
SELECT sql
|
206
|
-
FROM sqlite_temp_master
|
207
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
208
|
-
|
209
|
-
[1m[36m (0.0ms)[0m [1m SELECT sql
|
210
|
-
FROM sqlite_master
|
211
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
212
|
-
UNION ALL
|
213
|
-
SELECT sql
|
214
|
-
FROM sqlite_temp_master
|
215
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
216
|
-
[0m
|
217
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
|
218
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141215153026"]]
|
219
|
-
[1m[35m (0.7ms)[0m commit transaction
|
220
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
221
|
-
[1m[35m (0.2ms)[0m SELECT sql
|
222
|
-
FROM sqlite_master
|
223
|
-
WHERE name='index_active_admin_comments_on_resource_type_and_resource_id' AND type='index'
|
224
|
-
UNION ALL
|
225
|
-
SELECT sql
|
226
|
-
FROM sqlite_temp_master
|
227
|
-
WHERE name='index_active_admin_comments_on_resource_type_and_resource_id' AND type='index'
|
228
|
-
|
229
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
230
|
-
FROM sqlite_master
|
231
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
232
|
-
UNION ALL
|
233
|
-
SELECT sql
|
234
|
-
FROM sqlite_temp_master
|
235
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
236
|
-
[0m
|
237
|
-
[1m[35m (0.4ms)[0m SELECT sql
|
238
|
-
FROM sqlite_master
|
239
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
240
|
-
UNION ALL
|
241
|
-
SELECT sql
|
242
|
-
FROM sqlite_temp_master
|
243
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
244
|
-
|
245
|
-
[1m[36m (0.6ms)[0m [1m SELECT sql
|
246
|
-
FROM sqlite_master
|
247
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
248
|
-
UNION ALL
|
249
|
-
SELECT sql
|
250
|
-
FROM sqlite_temp_master
|
251
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
252
|
-
[0m
|
253
|
-
[1m[35m (0.5ms)[0m SELECT sql
|
254
|
-
FROM sqlite_master
|
255
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
256
|
-
UNION ALL
|
257
|
-
SELECT sql
|
258
|
-
FROM sqlite_temp_master
|
259
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
260
|
-
|
261
|
-
[1m[36m (1.3ms)[0m [1mCREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "namespace" varchar(255), "body" text, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
262
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
263
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")[0m
|
264
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
265
|
-
FROM sqlite_master
|
266
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
267
|
-
UNION ALL
|
268
|
-
SELECT sql
|
269
|
-
FROM sqlite_temp_master
|
270
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
271
|
-
|
272
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")[0m
|
273
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
274
|
-
FROM sqlite_master
|
275
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
276
|
-
UNION ALL
|
277
|
-
SELECT sql
|
278
|
-
FROM sqlite_temp_master
|
279
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
280
|
-
|
281
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
282
|
-
FROM sqlite_master
|
283
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
284
|
-
UNION ALL
|
285
|
-
SELECT sql
|
286
|
-
FROM sqlite_temp_master
|
287
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
288
|
-
[0m
|
289
|
-
[1m[35m (0.7ms)[0m CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
|
290
|
-
[1m[36m (0.8ms)[0m [1mCREATE TABLE "secret_spaces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
291
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime, "updated_at" datetime, "authentication_token" varchar(255))
|
292
|
-
[1m[36m (1.9ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")[0m
|
293
|
-
[1m[35m (0.2ms)[0m SELECT sql
|
294
|
-
FROM sqlite_master
|
295
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
296
|
-
UNION ALL
|
297
|
-
SELECT sql
|
298
|
-
FROM sqlite_temp_master
|
299
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
300
|
-
|
301
|
-
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
302
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
303
|
-
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
304
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
305
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141215153026')[0m
|
306
|
-
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141127081722')
|
307
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141127114158')[0m
|
308
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141201085308')
|
309
|
-
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141201111915')[0m
|
310
|
-
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141208080520')
|
311
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "namespace" varchar(255), "body" text, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
312
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
313
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")[0m
|
314
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
315
|
-
FROM sqlite_master
|
316
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
317
|
-
UNION ALL
|
318
|
-
SELECT sql
|
319
|
-
FROM sqlite_temp_master
|
320
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
321
|
-
|
322
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")[0m
|
323
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
324
|
-
FROM sqlite_master
|
325
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
326
|
-
UNION ALL
|
327
|
-
SELECT sql
|
328
|
-
FROM sqlite_temp_master
|
329
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
330
|
-
|
331
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
332
|
-
FROM sqlite_master
|
333
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
334
|
-
UNION ALL
|
335
|
-
SELECT sql
|
336
|
-
FROM sqlite_temp_master
|
337
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
338
|
-
[0m
|
339
|
-
[1m[35m (1.0ms)[0m CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
|
340
|
-
[1m[36m (0.8ms)[0m [1mCREATE TABLE "secret_spaces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
341
|
-
[1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime, "updated_at" datetime, "authentication_token" varchar(255))
|
342
|
-
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")[0m
|
343
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
344
|
-
FROM sqlite_master
|
345
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
346
|
-
UNION ALL
|
347
|
-
SELECT sql
|
348
|
-
FROM sqlite_temp_master
|
349
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
350
|
-
|
351
|
-
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
352
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
353
|
-
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
354
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
355
|
-
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141215153026')[0m
|
356
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141127081722')
|
357
|
-
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141127114158')[0m
|
358
|
-
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141201085308')
|
359
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141201111915')[0m
|
360
|
-
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141208080520')
|
361
|
-
[1m[36m (1.8ms)[0m [1mCREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "namespace" varchar(255), "body" text, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
362
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
363
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")[0m
|
364
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
365
|
-
FROM sqlite_master
|
366
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
367
|
-
UNION ALL
|
368
|
-
SELECT sql
|
369
|
-
FROM sqlite_temp_master
|
370
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
371
|
-
|
372
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")[0m
|
373
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
374
|
-
FROM sqlite_master
|
375
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
376
|
-
UNION ALL
|
377
|
-
SELECT sql
|
378
|
-
FROM sqlite_temp_master
|
379
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
380
|
-
|
381
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
382
|
-
FROM sqlite_master
|
383
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
384
|
-
UNION ALL
|
385
|
-
SELECT sql
|
386
|
-
FROM sqlite_temp_master
|
387
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
388
|
-
[0m
|
389
|
-
[1m[35m (0.8ms)[0m CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
|
390
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "secret_spaces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
391
|
-
[1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime, "updated_at" datetime, "authentication_token" varchar(255))
|
392
|
-
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")[0m
|
393
|
-
[1m[35m (0.2ms)[0m SELECT sql
|
394
|
-
FROM sqlite_master
|
395
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
396
|
-
UNION ALL
|
397
|
-
SELECT sql
|
398
|
-
FROM sqlite_temp_master
|
399
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
400
|
-
|
401
|
-
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
402
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
403
|
-
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
404
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
405
|
-
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141215153026')[0m
|
406
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141127081722')
|
407
|
-
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141127114158')[0m
|
408
|
-
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141201085308')
|
409
|
-
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141201111915')[0m
|
410
|
-
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141208080520')
|
411
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "namespace" varchar(255), "body" text, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
412
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
413
|
-
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")[0m
|
414
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
415
|
-
FROM sqlite_master
|
416
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
417
|
-
UNION ALL
|
418
|
-
SELECT sql
|
419
|
-
FROM sqlite_temp_master
|
420
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
421
|
-
|
422
|
-
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")[0m
|
423
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
424
|
-
FROM sqlite_master
|
425
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
426
|
-
UNION ALL
|
427
|
-
SELECT sql
|
428
|
-
FROM sqlite_temp_master
|
429
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
430
|
-
|
431
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
432
|
-
FROM sqlite_master
|
433
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
434
|
-
UNION ALL
|
435
|
-
SELECT sql
|
436
|
-
FROM sqlite_temp_master
|
437
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
438
|
-
[0m
|
439
|
-
[1m[35m (0.9ms)[0m CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
|
440
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "secret_spaces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
441
|
-
[1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime, "updated_at" datetime, "authentication_token" varchar(255))
|
442
|
-
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")[0m
|
443
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
444
|
-
FROM sqlite_master
|
445
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
446
|
-
UNION ALL
|
447
|
-
SELECT sql
|
448
|
-
FROM sqlite_temp_master
|
449
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
450
|
-
|
451
|
-
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
452
|
-
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
453
|
-
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
454
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
455
|
-
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141215153026')[0m
|
456
|
-
[1m[35m (2.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141127081722')
|
457
|
-
[1m[36m (2.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141127114158')[0m
|
458
|
-
[1m[35m (2.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141201085308')
|
459
|
-
[1m[36m (2.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141201111915')[0m
|
460
|
-
[1m[35m (2.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141208080520')
|
461
|
-
[1m[36m (1.7ms)[0m [1mCREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "namespace" varchar(255), "body" text, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
462
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
463
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")[0m
|
464
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
465
|
-
FROM sqlite_master
|
466
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
467
|
-
UNION ALL
|
468
|
-
SELECT sql
|
469
|
-
FROM sqlite_temp_master
|
470
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
471
|
-
|
472
|
-
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")[0m
|
473
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
474
|
-
FROM sqlite_master
|
475
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
476
|
-
UNION ALL
|
477
|
-
SELECT sql
|
478
|
-
FROM sqlite_temp_master
|
479
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
480
|
-
|
481
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
482
|
-
FROM sqlite_master
|
483
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
484
|
-
UNION ALL
|
485
|
-
SELECT sql
|
486
|
-
FROM sqlite_temp_master
|
487
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
488
|
-
[0m
|
489
|
-
[1m[35m (1.0ms)[0m CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
|
490
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "secret_spaces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
491
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime, "updated_at" datetime, "authentication_token" varchar(255))
|
492
|
-
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")[0m
|
493
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
494
|
-
FROM sqlite_master
|
495
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
496
|
-
UNION ALL
|
497
|
-
SELECT sql
|
498
|
-
FROM sqlite_temp_master
|
499
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
500
|
-
|
501
|
-
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
502
|
-
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
503
|
-
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
504
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
505
|
-
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141215153026')[0m
|
506
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141127081722')
|
507
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141127114158')[0m
|
508
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141201085308')
|
509
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141201111915')[0m
|
510
|
-
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141208080520')
|
511
|
-
[1m[36m (0.8ms)[0m [1mCREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "namespace" varchar(255), "body" text, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
512
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
513
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")[0m
|
514
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
515
|
-
FROM sqlite_master
|
516
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
517
|
-
UNION ALL
|
518
|
-
SELECT sql
|
519
|
-
FROM sqlite_temp_master
|
520
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
521
|
-
|
522
|
-
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")[0m
|
523
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
524
|
-
FROM sqlite_master
|
525
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
526
|
-
UNION ALL
|
527
|
-
SELECT sql
|
528
|
-
FROM sqlite_temp_master
|
529
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
530
|
-
|
531
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
532
|
-
FROM sqlite_master
|
533
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
534
|
-
UNION ALL
|
535
|
-
SELECT sql
|
536
|
-
FROM sqlite_temp_master
|
537
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
538
|
-
[0m
|
539
|
-
[1m[35m (0.9ms)[0m CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
|
540
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "secret_spaces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
541
|
-
[1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "created_at" datetime, "updated_at" datetime, "authentication_token" varchar(255))
|
542
|
-
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")[0m
|
543
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
544
|
-
FROM sqlite_master
|
545
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
546
|
-
UNION ALL
|
547
|
-
SELECT sql
|
548
|
-
FROM sqlite_temp_master
|
549
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
550
|
-
|
551
|
-
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
552
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
553
|
-
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
554
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
555
|
-
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141215153026')[0m
|
556
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141127081722')
|
557
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141127114158')[0m
|
558
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141201085308')
|
559
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141201111915')[0m
|
560
|
-
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141208080520')
|
561
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
562
|
-
[1m[35mUser Load (0.7ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
563
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
564
|
-
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'ios@example.com' LIMIT 1
|
565
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE "users"."authentication_token" = 'M9h8yNixmx-cRSzCkZsx'[0m
|
566
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
567
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("authentication_token", "created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?, ?) [["authentication_token", "M9h8yNixmx-cRSzCkZsx"], ["created_at", "2015-02-18 18:39:28.661533"], ["email", "ios@example.com"], ["encrypted_password", "$2a$10$TUcUDHTXbzFwqNPf/uZAYOGNvljN/GXiXa9wtYiWiqQnVKaLjpCwm"], ["updated_at", "2015-02-18 18:39:28.661533"]]
|
568
|
-
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
569
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
570
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
571
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
572
|
-
FROM sqlite_master
|
573
|
-
WHERE name='index_active_admin_comments_on_resource_type_and_resource_id' AND type='index'
|
574
|
-
UNION ALL
|
575
|
-
SELECT sql
|
576
|
-
FROM sqlite_temp_master
|
577
|
-
WHERE name='index_active_admin_comments_on_resource_type_and_resource_id' AND type='index'
|
578
|
-
[0m
|
579
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
580
|
-
FROM sqlite_master
|
581
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
582
|
-
UNION ALL
|
583
|
-
SELECT sql
|
584
|
-
FROM sqlite_temp_master
|
585
|
-
WHERE name='index_active_admin_comments_on_namespace' AND type='index'
|
586
|
-
|
587
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
588
|
-
FROM sqlite_master
|
589
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
590
|
-
UNION ALL
|
591
|
-
SELECT sql
|
592
|
-
FROM sqlite_temp_master
|
593
|
-
WHERE name='index_active_admin_comments_on_author_type_and_author_id' AND type='index'
|
594
|
-
[0m
|
595
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
596
|
-
FROM sqlite_master
|
597
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
598
|
-
UNION ALL
|
599
|
-
SELECT sql
|
600
|
-
FROM sqlite_temp_master
|
601
|
-
WHERE name='index_users_on_reset_password_token' AND type='index'
|
602
|
-
|
603
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
604
|
-
FROM sqlite_master
|
605
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
606
|
-
UNION ALL
|
607
|
-
SELECT sql
|
608
|
-
FROM sqlite_temp_master
|
609
|
-
WHERE name='index_users_on_authentication_token' AND type='index'
|
610
|
-
[0m
|