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.
@@ -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
@@ -10,4 +10,10 @@ FactoryGirl.define do
10
10
  remember_created_at { Time.now }
11
11
  end
12
12
  end
13
+
14
+ factory :oauth_user, class: User do
15
+ provider 'facebook'
16
+ oauth_token 'valid_token'
17
+ uid { rand(1000..9999) }
18
+ end
13
19
  end
@@ -1,5 +1,7 @@
1
1
  FactoryGirl.factories.each do |factory|
2
2
  describe "The #{factory.name} factory" do
3
+ before { stub_successful_facebook_request }
4
+
3
5
  it 'is valid' do
4
6
  object = build(factory.name)
5
7
  if object.methods.include? :valid?
@@ -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
@@ -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.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-02-18 00:00:00.000000000 Z
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.2.0
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.2.0
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
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
-  (0.1ms) select sqlite_version(*)
3
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
- Migrating to DeviseCreateUsers (20141127081722)
6
-  (0.1ms) begin transaction
7
-  (0.4ms) 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
-  (0.4ms) CREATE UNIQUE INDEX "index_users_on_username" ON "users" ("username")
9
-  (0.1ms) 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
-  (0.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
18
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141127081722"]]
19
-  (0.9ms) commit transaction
20
- Migrating to AddAuthenticationTokenToUsers (20141127114158)
21
-  (0.0ms) begin transaction
22
-  (0.3ms) ALTER TABLE "users" ADD "authentication_token" varchar(255)
23
-  (0.1ms) 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
-  (0.0ms)  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
- 
39
-  (0.1ms) CREATE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
40
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141127114158"]]
41
-  (0.8ms) commit transaction
42
- Migrating to AddUniqueIndexToAuthenticationTokenInUsers (20141201085308)
43
-  (0.0ms) begin transaction
44
-  (0.1ms) 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
-  (0.0ms)  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
- 
60
-  (0.0ms) 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
-  (0.3ms) DROP INDEX "index_users_on_authentication_token"
69
-  (0.1ms) 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
-  (0.0ms)  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
- 
85
-  (0.3ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
86
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141201085308"]]
87
-  (0.9ms) commit transaction
88
- Migrating to RemoveUsernameFromUsers (20141201111915)
89
-  (0.0ms) begin transaction
90
-  (0.4ms) 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
-  (0.1ms)  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
- 
99
-  (0.0ms) 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
-  (0.0ms)  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
- 
115
-  (0.5ms) CREATE UNIQUE INDEX "tindex_ausers_on_authentication_token" ON "ausers" ("authentication_token")
116
-  (0.0ms)  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
- 
124
-  (0.1ms) CREATE UNIQUE INDEX "tindex_ausers_on_reset_password_token" ON "ausers" ("reset_password_token")
125
-  (0.0ms)  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
- 
133
-  (0.1ms) 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
-  (0.1ms) CREATE UNIQUE INDEX "tindex_ausers_on_username" ON "ausers" ("username")
142
-  (0.1ms) SELECT * FROM "users"
143
-  (0.3ms) DROP TABLE "users"
144
-  (0.1ms) 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
-  (0.1ms)  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
- 
153
-  (0.0ms) 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
-  (0.0ms)  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
- 
169
-  (0.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
170
-  (0.1ms)  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
- 
178
-  (0.1ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
179
-  (0.0ms) SELECT * FROM "ausers"
180
-  (0.1ms) DROP TABLE "ausers"
181
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141201111915"]]
182
-  (1.2ms) commit transaction
183
- Migrating to CreateSecretSpaces (20141208080520)
184
-  (0.0ms) begin transaction
185
-  (0.5ms) 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
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141208080520"]]
187
-  (0.6ms) commit transaction
188
- Migrating to CreateActiveAdminComments (20141215153026)
189
-  (0.1ms) begin transaction
190
-  (0.4ms) 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
-  (0.2ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
192
-  (0.1ms) 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
-  (0.1ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
201
-  (0.1ms) 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
-  (0.0ms)  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
- 
217
-  (0.1ms) CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
218
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141215153026"]]
219
-  (0.7ms) commit transaction
220
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
221
-  (0.2ms) 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
-  (0.1ms)  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
- 
237
-  (0.4ms) 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
-  (0.6ms)  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
- 
253
-  (0.5ms) 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
-  (1.3ms) 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) 
262
-  (0.1ms) select sqlite_version(*)
263
-  (0.9ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
264
-  (0.1ms) 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
-  (0.9ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
273
-  (0.1ms) 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
-  (0.1ms)  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
- 
289
-  (0.7ms) CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
290
-  (0.8ms) CREATE TABLE "secret_spaces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
291
-  (0.8ms) 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
-  (1.9ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
293
-  (0.2ms) 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
-  (1.4ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
302
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
303
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
304
-  (0.1ms) SELECT version FROM "schema_migrations"
305
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141215153026')
306
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141127081722')
307
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141127114158')
308
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201085308')
309
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201111915')
310
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141208080520')
311
-  (1.0ms) 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) 
312
-  (0.1ms) select sqlite_version(*)
313
-  (0.9ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
314
-  (0.1ms) 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
-  (0.9ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
323
-  (0.1ms) 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
-  (0.1ms)  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
- 
339
-  (1.0ms) CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
340
-  (0.8ms) CREATE TABLE "secret_spaces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
341
-  (1.1ms) 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
-  (1.0ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
343
-  (0.1ms) 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
-  (0.8ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
352
-  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
353
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
354
-  (0.1ms) SELECT version FROM "schema_migrations"
355
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141215153026')
356
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141127081722')
357
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141127114158')
358
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201085308')
359
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201111915')
360
-  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141208080520')
361
-  (1.8ms) 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) 
362
-  (0.1ms) select sqlite_version(*)
363
-  (0.9ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
364
-  (0.1ms) 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
-  (0.9ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
373
-  (0.1ms) 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
-  (0.1ms)  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
- 
389
-  (0.8ms) CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
390
-  (0.9ms) CREATE TABLE "secret_spaces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
391
-  (1.1ms) 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
-  (1.0ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
393
-  (0.2ms) 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
-  (1.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
402
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
403
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
404
-  (0.1ms) SELECT version FROM "schema_migrations"
405
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141215153026')
406
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141127081722')
407
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141127114158')
408
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201085308')
409
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201111915')
410
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141208080520')
411
-  (0.9ms) 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) 
412
-  (0.1ms) select sqlite_version(*)
413
-  (0.8ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
414
-  (0.1ms) 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
-  (0.7ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
423
-  (0.1ms) 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
-  (0.1ms)  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
- 
439
-  (0.9ms) CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
440
-  (1.0ms) CREATE TABLE "secret_spaces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
441
-  (1.2ms) 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
-  (0.9ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
443
-  (0.1ms) 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
-  (0.7ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
452
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
453
-  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
454
-  (0.1ms) SELECT version FROM "schema_migrations"
455
-  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141215153026')
456
-  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141127081722')
457
-  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141127114158')
458
-  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201085308')
459
-  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201111915')
460
-  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141208080520')
461
-  (1.7ms) 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) 
462
-  (0.1ms) select sqlite_version(*)
463
-  (0.9ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
464
-  (0.1ms) 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
-  (0.8ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
473
-  (0.1ms) 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
-  (0.1ms)  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
- 
489
-  (1.0ms) CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
490
-  (0.9ms) CREATE TABLE "secret_spaces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
491
-  (0.8ms) 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
-  (0.8ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
493
-  (0.1ms) 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
-  (0.8ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
502
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
503
-  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
504
-  (0.1ms) SELECT version FROM "schema_migrations"
505
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141215153026')
506
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141127081722')
507
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141127114158')
508
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201085308')
509
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201111915')
510
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141208080520')
511
-  (0.8ms) 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) 
512
-  (0.1ms) select sqlite_version(*)
513
-  (0.9ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
514
-  (0.1ms) 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
-  (0.8ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
523
-  (0.1ms) 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
-  (0.1ms)  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
- 
539
-  (0.9ms) CREATE INDEX "index_active_admin_comments_on_resource_type_and_resource_id" ON "active_admin_comments" ("resource_type", "resource_id")
540
-  (1.0ms) CREATE TABLE "secret_spaces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
541
-  (1.0ms) 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
-  (0.8ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
543
-  (0.1ms) 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
-  (0.8ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
552
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
553
-  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
554
-  (0.1ms) SELECT version FROM "schema_migrations"
555
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141215153026')
556
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141127081722')
557
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141127114158')
558
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201085308')
559
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201111915')
560
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141208080520')
561
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
562
- User Load (0.7ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
563
-  (0.1ms) begin transaction
564
- User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'ios@example.com' LIMIT 1
565
-  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."authentication_token" = 'M9h8yNixmx-cRSzCkZsx'
566
- Binary data inserted for `string` type on column `encrypted_password`
567
- SQL (0.3ms) 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
-  (1.4ms) commit transaction
569
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
570
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
571
-  (0.1ms)  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
- 
579
-  (0.1ms) 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
-  (0.1ms)  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
- 
595
-  (0.1ms) 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
-  (0.1ms)  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
-