find_cache 0.1.8 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/CHANGE-LOG +4 -0
  2. data/README.rdoc +6 -2
  3. data/lib/find_cache/cacheable.rb +12 -12
  4. data/lib/find_cache/version.rb +1 -1
  5. data/test/dummy/config/environments/test.rb +3 -0
  6. data/test/dummy/db/test.sqlite3 +0 -0
  7. data/test/dummy/log/test.log +1229 -0
  8. data/test/dummy/tmp/cache/275/6E0/Post%2F1 +0 -0
  9. data/test/dummy/tmp/cache/29F/F40/User%2F20 +0 -0
  10. data/test/dummy/tmp/cache/2A0/F40/User%2F12 +0 -0
  11. data/test/dummy/tmp/cache/2A1/F50/User%2F13 +0 -0
  12. data/test/dummy/tmp/cache/2A2/F60/User%2F14 +0 -0
  13. data/test/dummy/tmp/cache/2A3/F70/User%2F15 +0 -0
  14. data/test/dummy/tmp/cache/2A4/F80/User%2F16 +0 -0
  15. data/test/dummy/tmp/cache/2A5/F90/User%2F17 +0 -0
  16. data/test/dummy/tmp/cache/2A6/FA0/User%2F18 +0 -0
  17. data/test/dummy/tmp/cache/2A7/FB0/User%2F19 +0 -0
  18. data/test/dummy/tmp/cache/3D6/DB0/Comment%2F50 +0 -0
  19. data/test/dummy/tmp/cache/3D7/DB0/Comment%2F42 +0 -0
  20. data/test/dummy/tmp/cache/3D7/DD0/Comment%2F60 +0 -0
  21. data/test/dummy/tmp/cache/3D8/DC0/Comment%2F43 +0 -0
  22. data/test/dummy/tmp/cache/3D8/DD0/Comment%2F52 +0 -0
  23. data/test/dummy/tmp/cache/3D8/DF0/Comment%2F70 +0 -0
  24. data/test/dummy/tmp/cache/3D9/DD0/Comment%2F44 +0 -0
  25. data/test/dummy/tmp/cache/3D9/DE0/Comment%2F53 +0 -0
  26. data/test/dummy/tmp/cache/3D9/DF0/Comment%2F62 +0 -0
  27. data/test/dummy/tmp/cache/3D9/E10/Comment%2F80 +0 -0
  28. data/test/dummy/tmp/cache/3DA/DE0/Comment%2F45 +0 -0
  29. data/test/dummy/tmp/cache/3DA/DF0/Comment%2F54 +0 -0
  30. data/test/dummy/tmp/cache/3DA/E00/Comment%2F63 +0 -0
  31. data/test/dummy/tmp/cache/3DA/E10/Comment%2F72 +0 -0
  32. data/test/dummy/tmp/cache/3DB/E00/Comment%2F55 +0 -0
  33. data/test/dummy/tmp/cache/3DB/E10/Comment%2F64 +0 -0
  34. data/test/dummy/tmp/cache/3DB/E20/Comment%2F73 +0 -0
  35. data/test/dummy/tmp/cache/3DB/E30/Comment%2F82 +0 -0
  36. data/test/dummy/tmp/cache/3DC/E00/Comment%2F47 +0 -0
  37. data/test/dummy/tmp/cache/3DC/E20/Comment%2F65 +0 -0
  38. data/test/dummy/tmp/cache/3DC/E30/Comment%2F74 +0 -0
  39. data/test/dummy/tmp/cache/3DC/E40/Comment%2F83 +0 -0
  40. data/test/dummy/tmp/cache/3DD/E10/Comment%2F48 +0 -0
  41. data/test/dummy/tmp/cache/3DD/E20/Comment%2F57 +0 -0
  42. data/test/dummy/tmp/cache/3DD/E40/Comment%2F75 +0 -0
  43. data/test/dummy/tmp/cache/3DD/E50/Comment%2F84 +0 -0
  44. data/test/dummy/tmp/cache/3DE/E20/Comment%2F49 +0 -0
  45. data/test/dummy/tmp/cache/3DE/E30/Comment%2F58 +0 -0
  46. data/test/dummy/tmp/cache/3DE/E40/Comment%2F67 +0 -0
  47. data/test/dummy/tmp/cache/3DE/E60/Comment%2F85 +0 -0
  48. data/test/dummy/tmp/cache/3DF/E40/Comment%2F59 +0 -0
  49. data/test/dummy/tmp/cache/3DF/E50/Comment%2F68 +0 -0
  50. data/test/dummy/tmp/cache/3DF/E60/Comment%2F77 +0 -0
  51. data/test/dummy/tmp/cache/3E0/E60/Comment%2F69 +0 -0
  52. data/test/dummy/tmp/cache/3E0/E70/Comment%2F78 +0 -0
  53. data/test/dummy/tmp/cache/3E1/E80/Comment%2F79 +0 -0
  54. data/test/find_cache_test.rb +6 -0
  55. metadata +98 -10
  56. data/test/dummy/log/development.log +0 -498
@@ -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.1.8
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-08-30 00:00:00.000000000 Z
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 supports.]).'
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.24
286
+ rubygems_version: 1.8.23
243
287
  signing_key:
244
288
  specification_version: 3
245
- summary: Cache for ActiveRecord >=3.0.0 find_by_id and find_by_(attr) methods.
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
-  (0.2ms) select sqlite_version(*)
4
-  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
5
-  (0.0ms) PRAGMA index_list("schema_migrations")
6
-  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
8
- Migrating to CreatePosts (20120824142626)
9
-  (0.0ms) begin transaction
10
-  (0.4ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
11
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824142626')
12
-  (1.8ms) commit transaction
13
-  (0.3ms) select sqlite_version(*)
14
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
15
-  (0.0ms) 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
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
26
- Migrating to CreateUsers (20120824144824)
27
-  (0.0ms) select sqlite_version(*)
28
-  (0.0ms) begin transaction
29
-  (0.5ms) 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
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')
31
-  (2.8ms) commit transaction
32
- Migrating to CreateUserDetails (20120824144920)
33
-  (0.0ms) begin transaction
34
-  (0.4ms) 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
-  (0.0ms) PRAGMA index_list("user_details")
36
-  (0.1ms) CREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")
37
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')
38
-  (1.9ms) commit transaction
39
-  (0.4ms) select sqlite_version(*)
40
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
41
-  (0.0ms) PRAGMA index_list("posts")
42
-  (0.0ms) PRAGMA index_list("user_details")
43
-  (0.0ms) PRAGMA index_info('index_user_details_on_user_id')
44
-  (0.0ms) PRAGMA index_list("users")
45
- Connecting to database specified by database.yml
46
-  (0.1ms) select sqlite_version(*)
47
-  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
48
-  (0.0ms) PRAGMA index_list("schema_migrations")
49
-  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
50
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
51
- Migrating to CreateUsers (20120824144824)
52
-  (0.0ms) begin transaction
53
-  (0.5ms) 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) 
54
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')
55
-  (1.2ms) commit transaction
56
- Migrating to CreateUserDetails (20120824144920)
57
-  (0.0ms) begin transaction
58
-  (0.4ms) 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) 
59
-  (0.0ms) PRAGMA index_list("user_details")
60
-  (0.1ms) CREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")
61
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')
62
-  (1.5ms) commit transaction
63
-  (0.3ms) select sqlite_version(*)
64
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
65
-  (0.0ms) PRAGMA index_list("user_details")
66
-  (0.0ms) PRAGMA index_info('index_user_details_on_user_id')
67
-  (0.0ms) 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
-  (0.1ms) select sqlite_version(*)
93
-  (2.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
94
-  (0.0ms) PRAGMA index_list("schema_migrations")
95
-  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
96
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
97
- Migrating to CreateUsers (20120824144824)
98
-  (0.0ms) begin transaction
99
-  (0.5ms) CREATE 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) 
100
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')
101
-  (1.5ms) commit transaction
102
- Migrating to CreateUserDetails (20120824144920)
103
-  (0.1ms) begin transaction
104
-  (0.5ms) 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) 
105
-  (0.0ms) PRAGMA index_list("user_details")
106
-  (0.1ms) CREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")
107
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')
108
-  (1.9ms) commit transaction
109
-  (0.3ms) select sqlite_version(*)
110
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
111
-  (0.0ms) PRAGMA index_list("user_details")
112
-  (0.0ms) PRAGMA index_info('index_user_details_on_user_id')
113
-  (0.0ms) 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
-  (0.2ms) select sqlite_version(*)
130
-  (2.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
131
-  (0.1ms) PRAGMA index_list("schema_migrations")
132
-  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
133
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
134
- Migrating to CreateUsers (20120824144824)
135
-  (0.0ms) begin transaction
136
-  (0.4ms) CREATE 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) 
137
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')
138
-  (1.7ms) commit transaction
139
- Migrating to CreateUserDetails (20120824144920)
140
-  (0.1ms) begin transaction
141
-  (0.5ms) 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) 
142
-  (0.0ms) PRAGMA index_list("user_details")
143
-  (0.1ms) CREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")
144
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')
145
-  (1.6ms) commit transaction
146
-  (0.3ms) select sqlite_version(*)
147
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
148
-  (0.0ms) PRAGMA index_list("user_details")
149
-  (0.0ms) PRAGMA index_info('index_user_details_on_user_id')
150
-  (0.0ms) 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
-  (0.1ms) select sqlite_version(*)
162
-  (2.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
163
-  (0.0ms) PRAGMA index_list("schema_migrations")
164
-  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
165
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
166
- Migrating to CreateUsers (20120824144824)
167
-  (0.0ms) begin transaction
168
-  (0.4ms) CREATE 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) 
169
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')
170
-  (1.7ms) commit transaction
171
- Migrating to CreateUserDetails (20120824144920)
172
-  (0.0ms) begin transaction
173
-  (0.5ms) 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) 
174
-  (0.0ms) PRAGMA index_list("user_details")
175
-  (0.2ms) CREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")
176
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')
177
-  (1.7ms) commit transaction
178
-  (0.4ms) select sqlite_version(*)
179
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
180
-  (0.0ms) PRAGMA index_list("user_details")
181
-  (0.0ms) PRAGMA index_info('index_user_details_on_user_id')
182
-  (0.0ms) 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
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
295
- Migrating to CreateUsers (20120824144824)
296
- Migrating to CreateUserDetails (20120824144920)
297
- Migrating to CreatePosts (20120824174737)
298
-  (0.0ms) select sqlite_version(*)
299
-  (0.1ms) begin transaction
300
-  (0.5ms) 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
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824174737')
302
-  (2.5ms) commit transaction
303
- Migrating to CreateComments (20120824174752)
304
-  (0.0ms) begin transaction
305
-  (0.6ms) 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
-  (0.0ms) PRAGMA index_list("comments")
307
-  (0.1ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
308
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824174752')
309
-  (2.2ms) commit transaction
310
-  (0.3ms) select sqlite_version(*)
311
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
312
-  (0.0ms) PRAGMA index_list("comments")
313
-  (0.0ms) PRAGMA index_info('index_comments_on_post_id')
314
-  (0.0ms) PRAGMA index_list("posts")
315
-  (0.0ms) PRAGMA index_list("user_details")
316
-  (0.0ms) PRAGMA index_info('index_user_details_on_user_id')
317
-  (0.0ms) 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
-  (0.1ms) select sqlite_version(*)
386
-  (2.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
387
-  (0.1ms) PRAGMA index_list("schema_migrations")
388
-  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
389
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
390
- Migrating to CreateUsers (20120824210455)
391
-  (0.0ms) begin transaction
392
-  (0.6ms) CREATE 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) 
393
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824210455')
394
-  (1.3ms) commit transaction
395
- Migrating to CreateUserDetails (20120824210529)
396
-  (0.0ms) begin transaction
397
-  (0.6ms) CREATE 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) 
398
-  (0.0ms) PRAGMA index_list("user_details")
399
-  (0.1ms) CREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")
400
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824210529')
401
-  (2.0ms) commit transaction
402
- Migrating to CreatePosts (20120824210653)
403
-  (0.0ms) begin transaction
404
-  (0.3ms) CREATE 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) 
405
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824210653')
406
-  (1.2ms) commit transaction
407
- Migrating to CreateComments (20120824210731)
408
-  (0.0ms) begin transaction
409
-  (0.5ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
410
-  (0.1ms) PRAGMA index_list("comments")
411
-  (0.2ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
412
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824210731')
413
-  (1.2ms) commit transaction
414
-  (0.5ms) select sqlite_version(*)
415
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
416
-  (0.0ms) PRAGMA index_list("comments")
417
-  (0.0ms) PRAGMA index_info('index_comments_on_post_id')
418
-  (0.0ms) PRAGMA index_list("posts")
419
-  (0.0ms) PRAGMA index_list("user_details")
420
-  (0.0ms) PRAGMA index_info('index_user_details_on_user_id')
421
-  (0.0ms) PRAGMA index_list("users")
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
-  (0.2ms) select sqlite_version(*)
427
-  (2.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
428
-  (0.0ms) PRAGMA index_list("schema_migrations")
429
-  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
430
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
431
- Migrating to CreateUsers (20120824210455)
432
-  (0.0ms) begin transaction
433
-  (0.4ms) CREATE 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) 
434
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824210455')
435
-  (1.7ms) commit transaction
436
- Migrating to CreateComments (20120824210731)
437
-  (0.0ms) begin transaction
438
-  (0.5ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
439
-  (0.0ms) PRAGMA index_list("comments")
440
-  (0.1ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
441
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824210731')
442
-  (2.1ms) commit transaction
443
- Migrating to CreatePosts (20120824210927)
444
-  (0.1ms) begin transaction
445
-  (0.5ms) 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) 
446
-  (0.0ms) PRAGMA index_list("posts")
447
-  (0.2ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
448
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120824210927')
449
-  (1.8ms) commit transaction
450
-  (0.3ms) select sqlite_version(*)
451
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
452
-  (0.0ms) PRAGMA index_list("comments")
453
-  (0.0ms) PRAGMA index_info('index_comments_on_post_id')
454
-  (0.0ms) PRAGMA index_list("posts")
455
-  (0.0ms) PRAGMA index_info('index_posts_on_user_id')
456
-  (0.0ms) PRAGMA index_list("users")
457
- Connecting to database specified by database.yml
458
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
459
-  (0.4ms) select sqlite_version(*)
460
-  (2.2ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
461
-  (0.0ms) PRAGMA index_list("comments")
462
-  (1.4ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
463
-  (1.5ms) 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
-  (0.0ms) PRAGMA index_list("posts")
465
-  (1.8ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
466
-  (1.3ms) CREATE 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) 
467
-  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
468
-  (0.0ms) PRAGMA index_list("schema_migrations")
469
-  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
470
-  (0.1ms) SELECT version FROM "schema_migrations"
471
-  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120824210927')
472
-  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120824210455')
473
-  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120824210731')
474
- Connecting to database specified by database.yml
475
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
476
-  (0.4ms) select sqlite_version(*)
477
-  (2.7ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
478
-  (0.0ms) PRAGMA index_list("comments")
479
-  (1.6ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
480
-  (1.6ms) 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
-  (0.0ms) PRAGMA index_list("posts")
482
-  (1.4ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
483
-  (1.2ms) CREATE 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) 
484
-  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
485
-  (0.0ms) PRAGMA index_list("schema_migrations")
486
-  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
487
-  (0.1ms) SELECT version FROM "schema_migrations"
488
-  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120824210927')
489
-  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120824210455')
490
-  (1.5ms) 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