find_cache 0.1.8 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGE-LOG +4 -0
- data/README.rdoc +6 -2
- data/lib/find_cache/cacheable.rb +12 -12
- data/lib/find_cache/version.rb +1 -1
- data/test/dummy/config/environments/test.rb +3 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +1229 -0
- data/test/dummy/tmp/cache/275/6E0/Post%2F1 +0 -0
- data/test/dummy/tmp/cache/29F/F40/User%2F20 +0 -0
- data/test/dummy/tmp/cache/2A0/F40/User%2F12 +0 -0
- data/test/dummy/tmp/cache/2A1/F50/User%2F13 +0 -0
- data/test/dummy/tmp/cache/2A2/F60/User%2F14 +0 -0
- data/test/dummy/tmp/cache/2A3/F70/User%2F15 +0 -0
- data/test/dummy/tmp/cache/2A4/F80/User%2F16 +0 -0
- data/test/dummy/tmp/cache/2A5/F90/User%2F17 +0 -0
- data/test/dummy/tmp/cache/2A6/FA0/User%2F18 +0 -0
- data/test/dummy/tmp/cache/2A7/FB0/User%2F19 +0 -0
- data/test/dummy/tmp/cache/3D6/DB0/Comment%2F50 +0 -0
- data/test/dummy/tmp/cache/3D7/DB0/Comment%2F42 +0 -0
- data/test/dummy/tmp/cache/3D7/DD0/Comment%2F60 +0 -0
- data/test/dummy/tmp/cache/3D8/DC0/Comment%2F43 +0 -0
- data/test/dummy/tmp/cache/3D8/DD0/Comment%2F52 +0 -0
- data/test/dummy/tmp/cache/3D8/DF0/Comment%2F70 +0 -0
- data/test/dummy/tmp/cache/3D9/DD0/Comment%2F44 +0 -0
- data/test/dummy/tmp/cache/3D9/DE0/Comment%2F53 +0 -0
- data/test/dummy/tmp/cache/3D9/DF0/Comment%2F62 +0 -0
- data/test/dummy/tmp/cache/3D9/E10/Comment%2F80 +0 -0
- data/test/dummy/tmp/cache/3DA/DE0/Comment%2F45 +0 -0
- data/test/dummy/tmp/cache/3DA/DF0/Comment%2F54 +0 -0
- data/test/dummy/tmp/cache/3DA/E00/Comment%2F63 +0 -0
- data/test/dummy/tmp/cache/3DA/E10/Comment%2F72 +0 -0
- data/test/dummy/tmp/cache/3DB/E00/Comment%2F55 +0 -0
- data/test/dummy/tmp/cache/3DB/E10/Comment%2F64 +0 -0
- data/test/dummy/tmp/cache/3DB/E20/Comment%2F73 +0 -0
- data/test/dummy/tmp/cache/3DB/E30/Comment%2F82 +0 -0
- data/test/dummy/tmp/cache/3DC/E00/Comment%2F47 +0 -0
- data/test/dummy/tmp/cache/3DC/E20/Comment%2F65 +0 -0
- data/test/dummy/tmp/cache/3DC/E30/Comment%2F74 +0 -0
- data/test/dummy/tmp/cache/3DC/E40/Comment%2F83 +0 -0
- data/test/dummy/tmp/cache/3DD/E10/Comment%2F48 +0 -0
- data/test/dummy/tmp/cache/3DD/E20/Comment%2F57 +0 -0
- data/test/dummy/tmp/cache/3DD/E40/Comment%2F75 +0 -0
- data/test/dummy/tmp/cache/3DD/E50/Comment%2F84 +0 -0
- data/test/dummy/tmp/cache/3DE/E20/Comment%2F49 +0 -0
- data/test/dummy/tmp/cache/3DE/E30/Comment%2F58 +0 -0
- data/test/dummy/tmp/cache/3DE/E40/Comment%2F67 +0 -0
- data/test/dummy/tmp/cache/3DE/E60/Comment%2F85 +0 -0
- data/test/dummy/tmp/cache/3DF/E40/Comment%2F59 +0 -0
- data/test/dummy/tmp/cache/3DF/E50/Comment%2F68 +0 -0
- data/test/dummy/tmp/cache/3DF/E60/Comment%2F77 +0 -0
- data/test/dummy/tmp/cache/3E0/E60/Comment%2F69 +0 -0
- data/test/dummy/tmp/cache/3E0/E70/Comment%2F78 +0 -0
- data/test/dummy/tmp/cache/3E1/E80/Comment%2F79 +0 -0
- data/test/find_cache_test.rb +6 -0
- metadata +98 -10
- data/test/dummy/log/development.log +0 -498
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/find_cache_test.rb
CHANGED
@@ -5,6 +5,7 @@ class FindCacheTest < Test::Unit::TestCase
|
|
5
5
|
|
6
6
|
# record test
|
7
7
|
def test_user_find_by_id_should_be_find_cache
|
8
|
+
Rails.cache.clear
|
8
9
|
user = User.create email: "test@videofork.com", password: "test1234"
|
9
10
|
id = user.id
|
10
11
|
assert_equal User.find_by_id(id), User.find_cache(id)
|
@@ -12,18 +13,21 @@ class FindCacheTest < Test::Unit::TestCase
|
|
12
13
|
|
13
14
|
# find_cache_has_one test
|
14
15
|
def test_user_post_should_be_user_post_cache
|
16
|
+
Rails.cache.clear
|
15
17
|
user = User.first
|
16
18
|
assert_equal user.post, user.post_cache
|
17
19
|
end
|
18
20
|
|
19
21
|
# find_cache_belongs_to test
|
20
22
|
def test_post_user_should_be_post_user_cache
|
23
|
+
Rails.cache.clear
|
21
24
|
post = Post.first
|
22
25
|
assert_equal post.user, post.user_cache
|
23
26
|
end
|
24
27
|
|
25
28
|
# record update test
|
26
29
|
def test_post_update_should_expire_the_post_cache
|
30
|
+
Rails.cache.clear
|
27
31
|
post = Post.first
|
28
32
|
Post.find_cache(post.id) # to cache the post
|
29
33
|
post.update_attributes(title: "test", body: "hello world!")
|
@@ -32,6 +36,7 @@ class FindCacheTest < Test::Unit::TestCase
|
|
32
36
|
|
33
37
|
# counter cache fix test
|
34
38
|
def test_after_adding_comment_post_should_expire_the_post_cache
|
39
|
+
Rails.cache.clear
|
35
40
|
post = Post.first
|
36
41
|
Post.find_cache(post.id) # to cache the post
|
37
42
|
Comment.create post_id: post.id, content: "test content for comment"
|
@@ -40,6 +45,7 @@ class FindCacheTest < Test::Unit::TestCase
|
|
40
45
|
|
41
46
|
# find_all_cache test
|
42
47
|
def test_find_all_by_id_should_be_find_all_cache
|
48
|
+
Rails.cache.clear
|
43
49
|
c1 = Comment.create post_id: Post.first.id, content: "test 1 content for comment"
|
44
50
|
c2 = Comment.create post_id: Post.first.id, content: "test 2 content for comment"
|
45
51
|
c3 = Comment.create post_id: Post.first.id, content: "test 3 content for comment"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: find_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -108,10 +108,10 @@ dependencies:
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: 2.1.0
|
110
110
|
description: ! 'Makes ActiveRecord >=3.0.0 ''find_by_id, find_by_(attr)'' methods
|
111
|
-
and ''has_one, belongs_to relations'' cacheable by id or any referenced columns
|
112
|
-
using Rails.cache methods. It also supports fetching multiple records using ids
|
111
|
+
and ''has_one, belongs_to relations'' cacheable by PK(id) or any referenced columns
|
112
|
+
using Rails.cache methods. It also supports fetching multiple records using PKs(ids)
|
113
113
|
with find_all_cache method(if cache store supports multiple reads [hint: memcache_store,
|
114
|
-
dalli_store
|
114
|
+
dalli_store support.]).'
|
115
115
|
email:
|
116
116
|
- mustafaturan.net@gmail.com
|
117
117
|
executables: []
|
@@ -159,7 +159,6 @@ files:
|
|
159
159
|
- test/dummy/db/migrate/20120824210927_create_posts.rb
|
160
160
|
- test/dummy/db/schema.rb
|
161
161
|
- test/dummy/db/test.sqlite3
|
162
|
-
- test/dummy/log/development.log
|
163
162
|
- test/dummy/log/test.log
|
164
163
|
- test/dummy/public/404.html
|
165
164
|
- test/dummy/public/422.html
|
@@ -188,6 +187,15 @@ files:
|
|
188
187
|
- test/dummy/tmp/cache/277/700/Post%2F3
|
189
188
|
- test/dummy/tmp/cache/29E/F20/User%2F10
|
190
189
|
- test/dummy/tmp/cache/29F/F30/User%2F11
|
190
|
+
- test/dummy/tmp/cache/29F/F40/User%2F20
|
191
|
+
- test/dummy/tmp/cache/2A0/F40/User%2F12
|
192
|
+
- test/dummy/tmp/cache/2A1/F50/User%2F13
|
193
|
+
- test/dummy/tmp/cache/2A2/F60/User%2F14
|
194
|
+
- test/dummy/tmp/cache/2A3/F70/User%2F15
|
195
|
+
- test/dummy/tmp/cache/2A4/F80/User%2F16
|
196
|
+
- test/dummy/tmp/cache/2A5/F90/User%2F17
|
197
|
+
- test/dummy/tmp/cache/2A6/FA0/User%2F18
|
198
|
+
- test/dummy/tmp/cache/2A7/FB0/User%2F19
|
191
199
|
- test/dummy/tmp/cache/3A8/070/Comment%2F7
|
192
200
|
- test/dummy/tmp/cache/3A9/080/Comment%2F8
|
193
201
|
- test/dummy/tmp/cache/3AA/090/Comment%2F9
|
@@ -201,21 +209,57 @@ files:
|
|
201
209
|
- test/dummy/tmp/cache/3D6/D70/Comment%2F14
|
202
210
|
- test/dummy/tmp/cache/3D6/D80/Comment%2F23
|
203
211
|
- test/dummy/tmp/cache/3D6/D90/Comment%2F32
|
212
|
+
- test/dummy/tmp/cache/3D6/DB0/Comment%2F50
|
204
213
|
- test/dummy/tmp/cache/3D7/D80/Comment%2F15
|
205
214
|
- test/dummy/tmp/cache/3D7/D90/Comment%2F24
|
206
215
|
- test/dummy/tmp/cache/3D7/DA0/Comment%2F33
|
216
|
+
- test/dummy/tmp/cache/3D7/DB0/Comment%2F42
|
217
|
+
- test/dummy/tmp/cache/3D7/DD0/Comment%2F60
|
207
218
|
- test/dummy/tmp/cache/3D8/DA0/Comment%2F25
|
208
219
|
- test/dummy/tmp/cache/3D8/DB0/Comment%2F34
|
220
|
+
- test/dummy/tmp/cache/3D8/DC0/Comment%2F43
|
221
|
+
- test/dummy/tmp/cache/3D8/DD0/Comment%2F52
|
222
|
+
- test/dummy/tmp/cache/3D8/DF0/Comment%2F70
|
209
223
|
- test/dummy/tmp/cache/3D9/DA0/Comment%2F17
|
210
224
|
- test/dummy/tmp/cache/3D9/DC0/Comment%2F35
|
225
|
+
- test/dummy/tmp/cache/3D9/DD0/Comment%2F44
|
226
|
+
- test/dummy/tmp/cache/3D9/DE0/Comment%2F53
|
227
|
+
- test/dummy/tmp/cache/3D9/DF0/Comment%2F62
|
228
|
+
- test/dummy/tmp/cache/3D9/E10/Comment%2F80
|
211
229
|
- test/dummy/tmp/cache/3DA/DB0/Comment%2F18
|
212
230
|
- test/dummy/tmp/cache/3DA/DC0/Comment%2F27
|
231
|
+
- test/dummy/tmp/cache/3DA/DE0/Comment%2F45
|
232
|
+
- test/dummy/tmp/cache/3DA/DF0/Comment%2F54
|
233
|
+
- test/dummy/tmp/cache/3DA/E00/Comment%2F63
|
234
|
+
- test/dummy/tmp/cache/3DA/E10/Comment%2F72
|
213
235
|
- test/dummy/tmp/cache/3DB/DC0/Comment%2F19
|
214
236
|
- test/dummy/tmp/cache/3DB/DD0/Comment%2F28
|
215
237
|
- test/dummy/tmp/cache/3DB/DE0/Comment%2F37
|
238
|
+
- test/dummy/tmp/cache/3DB/E00/Comment%2F55
|
239
|
+
- test/dummy/tmp/cache/3DB/E10/Comment%2F64
|
240
|
+
- test/dummy/tmp/cache/3DB/E20/Comment%2F73
|
241
|
+
- test/dummy/tmp/cache/3DB/E30/Comment%2F82
|
216
242
|
- test/dummy/tmp/cache/3DC/DE0/Comment%2F29
|
217
243
|
- test/dummy/tmp/cache/3DC/DF0/Comment%2F38
|
244
|
+
- test/dummy/tmp/cache/3DC/E00/Comment%2F47
|
245
|
+
- test/dummy/tmp/cache/3DC/E20/Comment%2F65
|
246
|
+
- test/dummy/tmp/cache/3DC/E30/Comment%2F74
|
247
|
+
- test/dummy/tmp/cache/3DC/E40/Comment%2F83
|
218
248
|
- test/dummy/tmp/cache/3DD/E00/Comment%2F39
|
249
|
+
- test/dummy/tmp/cache/3DD/E10/Comment%2F48
|
250
|
+
- test/dummy/tmp/cache/3DD/E20/Comment%2F57
|
251
|
+
- test/dummy/tmp/cache/3DD/E40/Comment%2F75
|
252
|
+
- test/dummy/tmp/cache/3DD/E50/Comment%2F84
|
253
|
+
- test/dummy/tmp/cache/3DE/E20/Comment%2F49
|
254
|
+
- test/dummy/tmp/cache/3DE/E30/Comment%2F58
|
255
|
+
- test/dummy/tmp/cache/3DE/E40/Comment%2F67
|
256
|
+
- test/dummy/tmp/cache/3DE/E60/Comment%2F85
|
257
|
+
- test/dummy/tmp/cache/3DF/E40/Comment%2F59
|
258
|
+
- test/dummy/tmp/cache/3DF/E50/Comment%2F68
|
259
|
+
- test/dummy/tmp/cache/3DF/E60/Comment%2F77
|
260
|
+
- test/dummy/tmp/cache/3E0/E60/Comment%2F69
|
261
|
+
- test/dummy/tmp/cache/3E0/E70/Comment%2F78
|
262
|
+
- test/dummy/tmp/cache/3E1/E80/Comment%2F79
|
219
263
|
- test/dummy/tmp/cache/58D/B70/Post%2Fuser_id-1
|
220
264
|
- test/find_cache_test.rb
|
221
265
|
- test/test_helper.rb
|
@@ -239,10 +283,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
283
|
version: '0'
|
240
284
|
requirements: []
|
241
285
|
rubyforge_project:
|
242
|
-
rubygems_version: 1.8.
|
286
|
+
rubygems_version: 1.8.23
|
243
287
|
signing_key:
|
244
288
|
specification_version: 3
|
245
|
-
summary: Cache for ActiveRecord >=3.0.0
|
289
|
+
summary: Cache for ActiveRecord >=3.0.0 find_by_PrimaryKey(id) and find_by_(attr)
|
290
|
+
methods based on Rails.cache methods.
|
246
291
|
test_files:
|
247
292
|
- test/dummy/app/assets/javascripts/application.js
|
248
293
|
- test/dummy/app/assets/stylesheets/application.css
|
@@ -275,7 +320,6 @@ test_files:
|
|
275
320
|
- test/dummy/db/migrate/20120824210927_create_posts.rb
|
276
321
|
- test/dummy/db/schema.rb
|
277
322
|
- test/dummy/db/test.sqlite3
|
278
|
-
- test/dummy/log/development.log
|
279
323
|
- test/dummy/log/test.log
|
280
324
|
- test/dummy/public/404.html
|
281
325
|
- test/dummy/public/422.html
|
@@ -304,6 +348,15 @@ test_files:
|
|
304
348
|
- test/dummy/tmp/cache/277/700/Post%2F3
|
305
349
|
- test/dummy/tmp/cache/29E/F20/User%2F10
|
306
350
|
- test/dummy/tmp/cache/29F/F30/User%2F11
|
351
|
+
- test/dummy/tmp/cache/29F/F40/User%2F20
|
352
|
+
- test/dummy/tmp/cache/2A0/F40/User%2F12
|
353
|
+
- test/dummy/tmp/cache/2A1/F50/User%2F13
|
354
|
+
- test/dummy/tmp/cache/2A2/F60/User%2F14
|
355
|
+
- test/dummy/tmp/cache/2A3/F70/User%2F15
|
356
|
+
- test/dummy/tmp/cache/2A4/F80/User%2F16
|
357
|
+
- test/dummy/tmp/cache/2A5/F90/User%2F17
|
358
|
+
- test/dummy/tmp/cache/2A6/FA0/User%2F18
|
359
|
+
- test/dummy/tmp/cache/2A7/FB0/User%2F19
|
307
360
|
- test/dummy/tmp/cache/3A8/070/Comment%2F7
|
308
361
|
- test/dummy/tmp/cache/3A9/080/Comment%2F8
|
309
362
|
- test/dummy/tmp/cache/3AA/090/Comment%2F9
|
@@ -317,22 +370,57 @@ test_files:
|
|
317
370
|
- test/dummy/tmp/cache/3D6/D70/Comment%2F14
|
318
371
|
- test/dummy/tmp/cache/3D6/D80/Comment%2F23
|
319
372
|
- test/dummy/tmp/cache/3D6/D90/Comment%2F32
|
373
|
+
- test/dummy/tmp/cache/3D6/DB0/Comment%2F50
|
320
374
|
- test/dummy/tmp/cache/3D7/D80/Comment%2F15
|
321
375
|
- test/dummy/tmp/cache/3D7/D90/Comment%2F24
|
322
376
|
- test/dummy/tmp/cache/3D7/DA0/Comment%2F33
|
377
|
+
- test/dummy/tmp/cache/3D7/DB0/Comment%2F42
|
378
|
+
- test/dummy/tmp/cache/3D7/DD0/Comment%2F60
|
323
379
|
- test/dummy/tmp/cache/3D8/DA0/Comment%2F25
|
324
380
|
- test/dummy/tmp/cache/3D8/DB0/Comment%2F34
|
381
|
+
- test/dummy/tmp/cache/3D8/DC0/Comment%2F43
|
382
|
+
- test/dummy/tmp/cache/3D8/DD0/Comment%2F52
|
383
|
+
- test/dummy/tmp/cache/3D8/DF0/Comment%2F70
|
325
384
|
- test/dummy/tmp/cache/3D9/DA0/Comment%2F17
|
326
385
|
- test/dummy/tmp/cache/3D9/DC0/Comment%2F35
|
386
|
+
- test/dummy/tmp/cache/3D9/DD0/Comment%2F44
|
387
|
+
- test/dummy/tmp/cache/3D9/DE0/Comment%2F53
|
388
|
+
- test/dummy/tmp/cache/3D9/DF0/Comment%2F62
|
389
|
+
- test/dummy/tmp/cache/3D9/E10/Comment%2F80
|
327
390
|
- test/dummy/tmp/cache/3DA/DB0/Comment%2F18
|
328
391
|
- test/dummy/tmp/cache/3DA/DC0/Comment%2F27
|
392
|
+
- test/dummy/tmp/cache/3DA/DE0/Comment%2F45
|
393
|
+
- test/dummy/tmp/cache/3DA/DF0/Comment%2F54
|
394
|
+
- test/dummy/tmp/cache/3DA/E00/Comment%2F63
|
395
|
+
- test/dummy/tmp/cache/3DA/E10/Comment%2F72
|
329
396
|
- test/dummy/tmp/cache/3DB/DC0/Comment%2F19
|
330
397
|
- test/dummy/tmp/cache/3DB/DD0/Comment%2F28
|
331
398
|
- test/dummy/tmp/cache/3DB/DE0/Comment%2F37
|
399
|
+
- test/dummy/tmp/cache/3DB/E00/Comment%2F55
|
400
|
+
- test/dummy/tmp/cache/3DB/E10/Comment%2F64
|
401
|
+
- test/dummy/tmp/cache/3DB/E20/Comment%2F73
|
402
|
+
- test/dummy/tmp/cache/3DB/E30/Comment%2F82
|
332
403
|
- test/dummy/tmp/cache/3DC/DE0/Comment%2F29
|
333
404
|
- test/dummy/tmp/cache/3DC/DF0/Comment%2F38
|
405
|
+
- test/dummy/tmp/cache/3DC/E00/Comment%2F47
|
406
|
+
- test/dummy/tmp/cache/3DC/E20/Comment%2F65
|
407
|
+
- test/dummy/tmp/cache/3DC/E30/Comment%2F74
|
408
|
+
- test/dummy/tmp/cache/3DC/E40/Comment%2F83
|
334
409
|
- test/dummy/tmp/cache/3DD/E00/Comment%2F39
|
410
|
+
- test/dummy/tmp/cache/3DD/E10/Comment%2F48
|
411
|
+
- test/dummy/tmp/cache/3DD/E20/Comment%2F57
|
412
|
+
- test/dummy/tmp/cache/3DD/E40/Comment%2F75
|
413
|
+
- test/dummy/tmp/cache/3DD/E50/Comment%2F84
|
414
|
+
- test/dummy/tmp/cache/3DE/E20/Comment%2F49
|
415
|
+
- test/dummy/tmp/cache/3DE/E30/Comment%2F58
|
416
|
+
- test/dummy/tmp/cache/3DE/E40/Comment%2F67
|
417
|
+
- test/dummy/tmp/cache/3DE/E60/Comment%2F85
|
418
|
+
- test/dummy/tmp/cache/3DF/E40/Comment%2F59
|
419
|
+
- test/dummy/tmp/cache/3DF/E50/Comment%2F68
|
420
|
+
- test/dummy/tmp/cache/3DF/E60/Comment%2F77
|
421
|
+
- test/dummy/tmp/cache/3E0/E60/Comment%2F69
|
422
|
+
- test/dummy/tmp/cache/3E0/E70/Comment%2F78
|
423
|
+
- test/dummy/tmp/cache/3E1/E80/Comment%2F79
|
335
424
|
- test/dummy/tmp/cache/58D/B70/Post%2Fuser_id-1
|
336
425
|
- test/find_cache_test.rb
|
337
426
|
- test/test_helper.rb
|
338
|
-
has_rdoc:
|
@@ -1,498 +0,0 @@
|
|
1
|
-
Connecting to database specified by database.yml
|
2
|
-
Connecting to database specified by database.yml
|
3
|
-
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
4
|
-
[1m[35m (1.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
5
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
6
|
-
[1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
8
|
-
Migrating to CreatePosts (20120824142626)
|
9
|
-
[1m[35m (0.0ms)[0m begin transaction
|
10
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
11
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824142626')
|
12
|
-
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
13
|
-
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
14
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
15
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
16
|
-
Connecting to database specified by database.yml
|
17
|
-
Connecting to database specified by database.yml
|
18
|
-
Connecting to database specified by database.yml
|
19
|
-
Connecting to database specified by database.yml
|
20
|
-
Connecting to database specified by database.yml
|
21
|
-
Connecting to database specified by database.yml
|
22
|
-
Connecting to database specified by database.yml
|
23
|
-
Connecting to database specified by database.yml
|
24
|
-
Connecting to database specified by database.yml
|
25
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
26
|
-
Migrating to CreateUsers (20120824144824)
|
27
|
-
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
28
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
29
|
-
[1m[35m (0.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "username" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
30
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')[0m
|
31
|
-
[1m[35m (2.8ms)[0m commit transaction
|
32
|
-
Migrating to CreateUserDetails (20120824144920)
|
33
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34
|
-
[1m[35m (0.4ms)[0m CREATE TABLE "user_details" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "age" integer, "location" varchar(255), "bio" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
35
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("user_details")[0m
|
36
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")
|
37
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')[0m
|
38
|
-
[1m[35m (1.9ms)[0m commit transaction
|
39
|
-
[1m[36m (0.4ms)[0m [1mselect sqlite_version(*)[0m
|
40
|
-
[1m[35m (0.2ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
41
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
42
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
43
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_details_on_user_id')[0m
|
44
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
45
|
-
Connecting to database specified by database.yml
|
46
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
47
|
-
[1m[35m (1.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
48
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
49
|
-
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
50
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
51
|
-
Migrating to CreateUsers (20120824144824)
|
52
|
-
[1m[35m (0.0ms)[0m begin transaction
|
53
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "username" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
54
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')
|
55
|
-
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
56
|
-
Migrating to CreateUserDetails (20120824144920)
|
57
|
-
[1m[35m (0.0ms)[0m begin transaction
|
58
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "user_details" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "age" integer, "location" varchar(255), "bio" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
59
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
60
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")[0m
|
61
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')
|
62
|
-
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
63
|
-
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
64
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
65
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
66
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_details_on_user_id')[0m
|
67
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
68
|
-
Connecting to database specified by database.yml
|
69
|
-
Connecting to database specified by database.yml
|
70
|
-
Connecting to database specified by database.yml
|
71
|
-
Connecting to database specified by database.yml
|
72
|
-
Connecting to database specified by database.yml
|
73
|
-
Connecting to database specified by database.yml
|
74
|
-
Cache read_multi: ["User/1", "User/2", "User/3"]
|
75
|
-
Dalli::Server#connect 127.0.0.1:11211
|
76
|
-
Cache write: User/1
|
77
|
-
Cache read_multi: ["User/1", "User/2", "User/3"]
|
78
|
-
Cache read_multi: ["User/1", "User/2", "User/3"]
|
79
|
-
Cache read_multi: ["User/1", "User/2", "User/3"]
|
80
|
-
Cache read_multi: ["User/1", "User/2", "User/3"]
|
81
|
-
Connecting to database specified by database.yml
|
82
|
-
Connecting to database specified by database.yml
|
83
|
-
Cache read_multi: ["User/1", "User/2", "User/3"]
|
84
|
-
Dalli::Server#connect localhost:11211
|
85
|
-
Cache read_multi: ["User/1", "User/2", "User/3"]
|
86
|
-
Cache read: asd
|
87
|
-
Cache read: User71
|
88
|
-
Cache read: User/1
|
89
|
-
Connecting to database specified by database.yml
|
90
|
-
Dalli::Server#connect localhost:11211
|
91
|
-
Connecting to database specified by database.yml
|
92
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
93
|
-
[1m[35m (2.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
94
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
95
|
-
[1m[35m (1.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
96
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
97
|
-
Migrating to CreateUsers (20120824144824)
|
98
|
-
[1m[35m (0.0ms)[0m begin transaction
|
99
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "username" varchar(255), "user_details_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
100
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')
|
101
|
-
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
102
|
-
Migrating to CreateUserDetails (20120824144920)
|
103
|
-
[1m[35m (0.1ms)[0m begin transaction
|
104
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "user_details" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "age" integer, "location" varchar(255), "bio" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
105
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
106
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")[0m
|
107
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')
|
108
|
-
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
109
|
-
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
110
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
111
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
112
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_details_on_user_id')[0m
|
113
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
114
|
-
Connecting to database specified by database.yml
|
115
|
-
Dalli::Server#connect localhost:11211
|
116
|
-
Cache read: UserDetail/user_id-1
|
117
|
-
Cache read: User/user_id-1
|
118
|
-
Cache read: User/user_id-1
|
119
|
-
Cache read: User/user_id-1
|
120
|
-
Cache read: User/user_id-1
|
121
|
-
Connecting to database specified by database.yml
|
122
|
-
Cache read: UserDetail/user_id-1
|
123
|
-
Dalli::Server#connect localhost:11211
|
124
|
-
Cache read: UserDetail/user_id-1
|
125
|
-
Cache read: User/
|
126
|
-
Cache generate: User/
|
127
|
-
Cache write: User/
|
128
|
-
Connecting to database specified by database.yml
|
129
|
-
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
130
|
-
[1m[35m (2.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
131
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
132
|
-
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
133
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
134
|
-
Migrating to CreateUsers (20120824144824)
|
135
|
-
[1m[35m (0.0ms)[0m begin transaction
|
136
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "username" varchar(255), "user_detail_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
137
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')
|
138
|
-
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
139
|
-
Migrating to CreateUserDetails (20120824144920)
|
140
|
-
[1m[35m (0.1ms)[0m begin transaction
|
141
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "user_details" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "age" integer, "location" varchar(255), "bio" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
142
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
143
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")[0m
|
144
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')
|
145
|
-
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
146
|
-
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
147
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
148
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
149
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_details_on_user_id')[0m
|
150
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
151
|
-
Connecting to database specified by database.yml
|
152
|
-
Dalli::Server#connect localhost:11211
|
153
|
-
Cache read: User/1
|
154
|
-
Cache generate: User/1
|
155
|
-
Cache write: User/1
|
156
|
-
Connecting to database specified by database.yml
|
157
|
-
Cache read: User/1
|
158
|
-
Dalli::Server#connect localhost:11211
|
159
|
-
Cache fetch_hit: User/1
|
160
|
-
Connecting to database specified by database.yml
|
161
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
162
|
-
[1m[35m (2.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
163
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
164
|
-
[1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
165
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
166
|
-
Migrating to CreateUsers (20120824144824)
|
167
|
-
[1m[35m (0.0ms)[0m begin transaction
|
168
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "username" varchar(255), "user_details_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
169
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')
|
170
|
-
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
171
|
-
Migrating to CreateUserDetails (20120824144920)
|
172
|
-
[1m[35m (0.0ms)[0m begin transaction
|
173
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "user_details" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "age" integer, "location" varchar(255), "bio" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
174
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
175
|
-
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")[0m
|
176
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')
|
177
|
-
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
178
|
-
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
179
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
180
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
181
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_details_on_user_id')[0m
|
182
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
183
|
-
Connecting to database specified by database.yml
|
184
|
-
Dalli::Server#connect localhost:11211
|
185
|
-
Cache read: User/1
|
186
|
-
Cache generate: User/1
|
187
|
-
Cache write: User/1
|
188
|
-
Connecting to database specified by database.yml
|
189
|
-
Cache read: User/1
|
190
|
-
Dalli::Server#connect localhost:11211
|
191
|
-
Cache fetch_hit: User/1
|
192
|
-
SQLite3::SQLException: no such column: true: UPDATE "users" SET "true" = COALESCE("true", 0) + 1 WHERE "users"."id" = 1
|
193
|
-
Connecting to database specified by database.yml
|
194
|
-
Cache read: User/1
|
195
|
-
Dalli::Server#connect localhost:11211
|
196
|
-
Cache fetch_hit: User/1
|
197
|
-
Connecting to database specified by database.yml
|
198
|
-
Dalli::Server#connect localhost:11211
|
199
|
-
Cache read: User/1
|
200
|
-
Cache fetch_hit: User/1
|
201
|
-
Connecting to database specified by database.yml
|
202
|
-
Dalli::Server#connect localhost:11211
|
203
|
-
Cache read: User/1
|
204
|
-
Cache fetch_hit: User/1
|
205
|
-
Connecting to database specified by database.yml
|
206
|
-
Cache read: UserDetail/user_id-1
|
207
|
-
Dalli::Server#connect localhost:11211
|
208
|
-
Cache read: UserDetail/user_id-1
|
209
|
-
Cache read: UserDetail/user_id-1
|
210
|
-
Cache read: UserDetail/user_id-1
|
211
|
-
Cache read: UserDetail/user_id-1
|
212
|
-
Cache read: UserDetail/user_id-1
|
213
|
-
Cache read: UserDetail/user_id-1
|
214
|
-
Cache read: User/4
|
215
|
-
Cache generate: User/4
|
216
|
-
Cache write: User/4
|
217
|
-
Cache read: User/4
|
218
|
-
Cache generate: User/4
|
219
|
-
Cache write: User/4
|
220
|
-
Cache read: User/4
|
221
|
-
Cache generate: User/4
|
222
|
-
Cache write: User/4
|
223
|
-
Cache read: User/1
|
224
|
-
Cache generate: User/1
|
225
|
-
Cache write: User/1
|
226
|
-
Cache read: User/2
|
227
|
-
Cache generate: User/2
|
228
|
-
Cache write: User/2
|
229
|
-
Cache read: User/2
|
230
|
-
Cache generate: User/2
|
231
|
-
Cache write: User/2
|
232
|
-
Cache read: User/2
|
233
|
-
Cache generate: User/2
|
234
|
-
Cache write: User/2
|
235
|
-
Cache read: User/2
|
236
|
-
Cache generate: User/2
|
237
|
-
Cache write: User/2
|
238
|
-
Cache read: User/2
|
239
|
-
Cache generate: User/2
|
240
|
-
Cache write: User/2
|
241
|
-
Connecting to database specified by database.yml
|
242
|
-
Dalli::Server#connect localhost:11211
|
243
|
-
Cache read: User/2
|
244
|
-
Cache generate: User/2
|
245
|
-
Cache write: User/2
|
246
|
-
Cache read: User/3
|
247
|
-
Cache generate: User/3
|
248
|
-
Cache write: User/3
|
249
|
-
Cache read: User/4
|
250
|
-
Cache generate: User/4
|
251
|
-
Cache write: User/4
|
252
|
-
Cache read: UserDetail/user_id-1
|
253
|
-
Cache write: UserDetail/user_id-1
|
254
|
-
Cache write: UserDetail/3
|
255
|
-
Cache read: User/3
|
256
|
-
Cache generate: User/3
|
257
|
-
Cache write: User/3
|
258
|
-
Cache read: User/4
|
259
|
-
Cache generate: User/4
|
260
|
-
Cache write: User/4
|
261
|
-
Connecting to database specified by database.yml
|
262
|
-
Cache read: UserDetail/user_id-1
|
263
|
-
Dalli::Server#connect localhost:11211
|
264
|
-
Cache read: UserDetail/3
|
265
|
-
Cache generate: UserDetail/3
|
266
|
-
Cache write: UserDetail/3
|
267
|
-
Cache read: User/5
|
268
|
-
Cache generate: User/5
|
269
|
-
Cache write: User/5
|
270
|
-
Cache read: User/6
|
271
|
-
Cache generate: User/6
|
272
|
-
Cache write: User/6
|
273
|
-
Cache read: UserDetail/user_id-2
|
274
|
-
Cache write: UserDetail/user_id-2
|
275
|
-
Cache write: UserDetail/6
|
276
|
-
Cache read: User/6
|
277
|
-
Cache generate: User/6
|
278
|
-
Cache write: User/6
|
279
|
-
Connecting to database specified by database.yml
|
280
|
-
Dalli::Server#connect localhost:11211
|
281
|
-
Cache read: User/5
|
282
|
-
Cache generate: User/5
|
283
|
-
Cache write: User/5
|
284
|
-
Cache read: UserDetail/user_id-1
|
285
|
-
Cache read: UserDetail/3
|
286
|
-
Cache generate: UserDetail/3
|
287
|
-
Cache write: UserDetail/3
|
288
|
-
Cache read: User/7
|
289
|
-
Cache generate: User/7
|
290
|
-
Cache write: User/7
|
291
|
-
Connecting to database specified by database.yml
|
292
|
-
Connecting to database specified by database.yml
|
293
|
-
Connecting to database specified by database.yml
|
294
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
295
|
-
Migrating to CreateUsers (20120824144824)
|
296
|
-
Migrating to CreateUserDetails (20120824144920)
|
297
|
-
Migrating to CreatePosts (20120824174737)
|
298
|
-
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
299
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
300
|
-
[1m[35m (0.5ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "body" text, "comments_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
301
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120824174737')[0m
|
302
|
-
[1m[35m (2.5ms)[0m commit transaction
|
303
|
-
Migrating to CreateComments (20120824174752)
|
304
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
305
|
-
[1m[35m (0.6ms)[0m CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
306
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("comments")[0m
|
307
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
|
308
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120824174752')[0m
|
309
|
-
[1m[35m (2.2ms)[0m commit transaction
|
310
|
-
[1m[36m (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
311
|
-
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
312
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("comments")[0m
|
313
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_comments_on_post_id')
|
314
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
315
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
316
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_details_on_user_id')[0m
|
317
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
318
|
-
Connecting to database specified by database.yml
|
319
|
-
Dalli::Server#connect localhost:11211
|
320
|
-
Cache read: Post/1
|
321
|
-
Cache generate: Post/1
|
322
|
-
Cache write: Post/1
|
323
|
-
Connecting to database specified by database.yml
|
324
|
-
Connecting to database specified by database.yml
|
325
|
-
Dalli::Server#connect localhost:11211
|
326
|
-
Connecting to database specified by database.yml
|
327
|
-
Dalli::Server#connect localhost:11211
|
328
|
-
Cache read: Post/1
|
329
|
-
Cache generate: Post/1
|
330
|
-
Cache write: Post/1
|
331
|
-
Cache read: Comment/1
|
332
|
-
Cache generate: Comment/1
|
333
|
-
Cache write: Comment/1
|
334
|
-
Cache read: Comment/2
|
335
|
-
Cache generate: Comment/2
|
336
|
-
Cache write: Comment/2
|
337
|
-
Cache read: Comment/[1, 2, 3]
|
338
|
-
Cache generate: Comment/[1, 2, 3]
|
339
|
-
Cache write: Comment/[1, 2, 3]
|
340
|
-
Cache read_multi: ["Comment/1", "Comment/2", "Comment/3"]
|
341
|
-
Cache write: Comment/3
|
342
|
-
Cache read: Post/1
|
343
|
-
Cache generate: Post/1
|
344
|
-
Cache write: Post/1
|
345
|
-
Connecting to database specified by database.yml
|
346
|
-
Cache read: Post/1
|
347
|
-
Dalli::Server#connect localhost:11211
|
348
|
-
Cache generate: Post/1
|
349
|
-
Cache write: Post/1
|
350
|
-
Connecting to database specified by database.yml
|
351
|
-
Cache read: Post/1
|
352
|
-
Dalli::Server#connect localhost:11211
|
353
|
-
Cache fetch_hit: Post/1
|
354
|
-
Cache read: Post/1
|
355
|
-
Cache generate: Post/1
|
356
|
-
Cache write: Post/1
|
357
|
-
Connecting to database specified by database.yml
|
358
|
-
Cache read: Post/1
|
359
|
-
Dalli::Server#connect localhost:11211
|
360
|
-
Cache fetch_hit: Post/1
|
361
|
-
Cache read: Post/1
|
362
|
-
Cache generate: Post/1
|
363
|
-
Cache write: Post/1
|
364
|
-
Cache read: Comment/post_id-1
|
365
|
-
Cache write: Comment/post_id-1
|
366
|
-
Cache write: Comment/1
|
367
|
-
Cache read: Comment/post_id-1
|
368
|
-
Cache read: Comment/1
|
369
|
-
Cache fetch_hit: Comment/1
|
370
|
-
Cache read: Comment/post_id-1
|
371
|
-
Connecting to database specified by database.yml
|
372
|
-
Connecting to database specified by database.yml
|
373
|
-
Connecting to database specified by database.yml
|
374
|
-
Connecting to database specified by database.yml
|
375
|
-
Connecting to database specified by database.yml
|
376
|
-
Connecting to database specified by database.yml
|
377
|
-
Connecting to database specified by database.yml
|
378
|
-
Connecting to database specified by database.yml
|
379
|
-
Connecting to database specified by database.yml
|
380
|
-
Connecting to database specified by database.yml
|
381
|
-
Connecting to database specified by database.yml
|
382
|
-
Connecting to database specified by database.yml
|
383
|
-
Connecting to database specified by database.yml
|
384
|
-
Connecting to database specified by database.yml
|
385
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
386
|
-
[1m[35m (2.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
387
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
388
|
-
[1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
389
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
390
|
-
Migrating to CreateUsers (20120824210455)
|
391
|
-
[1m[35m (0.0ms)[0m begin transaction
|
392
|
-
[1m[36m (0.6ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "password" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
393
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210455')
|
394
|
-
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
395
|
-
Migrating to CreateUserDetails (20120824210529)
|
396
|
-
[1m[35m (0.0ms)[0m begin transaction
|
397
|
-
[1m[36m (0.6ms)[0m [1mCREATE TABLE "user_details" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "name" varchar(255), "age" integer, "sex" varchar(255), "location" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
398
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
399
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")[0m
|
400
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210529')
|
401
|
-
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
402
|
-
Migrating to CreatePosts (20120824210653)
|
403
|
-
[1m[35m (0.0ms)[0m begin transaction
|
404
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "comments_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
405
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210653')
|
406
|
-
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
407
|
-
Migrating to CreateComments (20120824210731)
|
408
|
-
[1m[35m (0.0ms)[0m begin transaction
|
409
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
410
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("comments")
|
411
|
-
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
412
|
-
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210731')
|
413
|
-
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
414
|
-
[1m[35m (0.5ms)[0m select sqlite_version(*)
|
415
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
416
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("comments")
|
417
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_comments_on_post_id')[0m
|
418
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
419
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("user_details")[0m
|
420
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_user_details_on_user_id')
|
421
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
422
|
-
Connecting to database specified by database.yml
|
423
|
-
Connecting to database specified by database.yml
|
424
|
-
Connecting to database specified by database.yml
|
425
|
-
Connecting to database specified by database.yml
|
426
|
-
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
427
|
-
[1m[35m (2.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
428
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
429
|
-
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
430
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
431
|
-
Migrating to CreateUsers (20120824210455)
|
432
|
-
[1m[35m (0.0ms)[0m begin transaction
|
433
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "password" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
434
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210455')
|
435
|
-
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
436
|
-
Migrating to CreateComments (20120824210731)
|
437
|
-
[1m[35m (0.0ms)[0m begin transaction
|
438
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
439
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("comments")
|
440
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
441
|
-
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210731')
|
442
|
-
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
443
|
-
Migrating to CreatePosts (20120824210927)
|
444
|
-
[1m[35m (0.1ms)[0m begin transaction
|
445
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "title" varchar(255), "body" text, "comments_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
446
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
447
|
-
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")[0m
|
448
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210927')
|
449
|
-
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
450
|
-
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
451
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
452
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("comments")
|
453
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_comments_on_post_id')[0m
|
454
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
455
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_posts_on_user_id')[0m
|
456
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
457
|
-
Connecting to database specified by database.yml
|
458
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
459
|
-
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
460
|
-
[1m[36m (2.2ms)[0m [1mCREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
461
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("comments")
|
462
|
-
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
463
|
-
[1m[35m (1.5ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "title" varchar(255), "body" text, "comments_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
464
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
465
|
-
[1m[35m (1.8ms)[0m CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
|
466
|
-
[1m[36m (1.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "password" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
467
|
-
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
468
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
469
|
-
[1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
470
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
471
|
-
[1m[35m (2.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120824210927')
|
472
|
-
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120824210455')[0m
|
473
|
-
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120824210731')
|
474
|
-
Connecting to database specified by database.yml
|
475
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
476
|
-
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
477
|
-
[1m[36m (2.7ms)[0m [1mCREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
478
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("comments")
|
479
|
-
[1m[36m (1.6ms)[0m [1mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
480
|
-
[1m[35m (1.6ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "title" varchar(255), "body" text, "comments_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
481
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
482
|
-
[1m[35m (1.4ms)[0m CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
|
483
|
-
[1m[36m (1.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "password" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
484
|
-
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
485
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
486
|
-
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
487
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
488
|
-
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120824210927')
|
489
|
-
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120824210455')[0m
|
490
|
-
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120824210731')
|
491
|
-
Connecting to database specified by database.yml
|
492
|
-
Dalli::Server#connect localhost:11211
|
493
|
-
Cache read: User/1
|
494
|
-
Cache generate: User/1
|
495
|
-
Cache write: User/1
|
496
|
-
Cache read: Post/user_id-1
|
497
|
-
Cache write: Post/user_id-1
|
498
|
-
Cache write: Post/1
|