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
data/CHANGE-LOG CHANGED
@@ -1,3 +1,7 @@
1
+ version 0.2.0
2
+ # find_by_id and find_all_by_id methods converted to where queries
3
+ # id based caching replaced for find_cache and find_all_cache with primary_key based queries instead of looking id queries
4
+
1
5
  version 0.1.8
2
6
  # local memorization on dynamic methods removed to prevent duplicate caching
3
7
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  It is simply an ActiveRecord object caching gem using Rails.cache methods.
4
4
 
5
- It makes "ActiveRecord 'find_by_id, find_by_(attr)' methods and 'has_one, belongs_to' relations" cacheable by id or any referenced columns using Rails.cache methods. It also supports fetching multiple records using ids with find_all_cache method(if cache store supports multiple reads [hint: memcached_store, dalli_store supports.]).
5
+ It makes "ActiveRecord 'find_by_id, find_by_(attr)' methods and 'has_one, belongs_to' relations" cacheable by PrimaryKey(PK) or any referenced columns using Rails.cache methods. It also supports fetching multiple records using PKs(ids) with find_all_cache method(if cache store supports multiple reads [hint: memcached_store, dalli_store supports.]).
6
6
 
7
7
  == Installation
8
8
 
@@ -89,7 +89,11 @@ If your worker thread does not kill itself after execution you should clean the
89
89
  FindCache::KeyGen.clear_find_cache_store
90
90
  end
91
91
 
92
- Tested with dalli (https://github.com/mperham/dalli).
92
+ Tested with dalli (https://github.com/mperham/dalli).
93
+
94
+ == Todo
95
+
96
+ More tests!
93
97
 
94
98
  == Credits
95
99
 
@@ -20,7 +20,7 @@ module FindCache
20
20
  # find_cache_has_one :user_detail, UserDetail, :user_id
21
21
  def find_cache_has_one(attribute, model, foreign_key)
22
22
  send :define_method, attribute.to_sym do |*args|
23
- model.find_cache_by_ref(foreign_key, self.id)
23
+ model.find_cache_by_ref(foreign_key, self.send(self.class.primary_key.to_sym))
24
24
  end
25
25
  end
26
26
 
@@ -42,8 +42,8 @@ module FindCache
42
42
  end
43
43
  end
44
44
 
45
- # To find an Active Record object using find_by_id method
46
- # and caching it using Rails.cache methods
45
+ # To find an Active Record object using PK (:id) based where
46
+ # query method and caching it using Rails.cache methods
47
47
  #
48
48
  # ==== Parameters
49
49
  #
@@ -57,7 +57,7 @@ module FindCache
57
57
  key = KeyGen.cache_key(name, id)
58
58
  $find_cache_store[KeyGen.global_cache_key][key] ||= (
59
59
  Rails.cache.fetch(key) do
60
- find_by_id(id)
60
+ where(primary_key => id).limit(1).first
61
61
  end
62
62
  )
63
63
  end
@@ -79,10 +79,10 @@ module FindCache
79
79
  if (id = Rails.cache.read(key_ref))
80
80
  find_cache(id)
81
81
  else
82
- item = send("find_by_#{ref_attr}", "#{ref_val}")
82
+ item = where(ref_attr => ref_val).limit(1).first
83
83
  if item
84
- Rails.cache.write(key_ref, item.id)
85
- Rails.cache.write(KeyGen.cache_key(name, item.id), item)
84
+ Rails.cache.write(key_ref, item.send(primary_key.to_sym))
85
+ Rails.cache.write(KeyGen.cache_key(name, item.send(primary_key.to_sym)), item)
86
86
  end
87
87
  item
88
88
  end
@@ -105,7 +105,7 @@ module FindCache
105
105
  # UserDetail.find_all_cache([21, 1, 2, 19, 43])
106
106
  # # Find users with ids ([21, 1, 2, 19, 43]) and id ASC
107
107
  # UserDetail.find_all_cache(([21, 1, 2, 19, 43]), "id ASC")
108
- def find_all_cache(ids, order_by = "id DESC")
108
+ def find_all_cache(ids, order_by = "#{primary_key} DESC")
109
109
  all_new_cache = []
110
110
  not_in_cache = []
111
111
  cache_ids = ids.map { |id| KeyGen.cache_key(name, id) }
@@ -118,14 +118,14 @@ module FindCache
118
118
  end
119
119
  end
120
120
  if not_in_cache.length > 0
121
- items = order(order_by).find_all_by_id(not_in_cache)
121
+ items = order(order_by).where(primary_key => not_in_cache)
122
122
  items.each do |item|
123
- Rails.cache.write(KeyGen.cache_key(name, item.id), item)
123
+ Rails.cache.write(KeyGen.cache_key(name, item.send(primary_key.to_sym)), item)
124
124
  end
125
125
  all_new_cache += items
126
126
  end
127
127
  all_new_cache.each do |cached_item|
128
- $find_cache_store[KeyGen.global_cache_key][KeyGen.cache_key(name, cached_item.id)] = cached_item
128
+ $find_cache_store[KeyGen.global_cache_key][KeyGen.cache_key(name, cached_item.send(primary_key.to_sym))] = cached_item
129
129
  end
130
130
  end
131
131
  end
@@ -134,7 +134,7 @@ module FindCache
134
134
  after_commit :expire_find_cache
135
135
 
136
136
  def expire_find_cache
137
- key = KeyGen.cache_key(self.class.name, self.id)
137
+ key = KeyGen.cache_key(self.class.name, self.send(primary_key.to_sym))
138
138
  Rails.cache.delete(key)
139
139
  $find_cache_store[KeyGen.global_cache_key].delete(key)
140
140
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module FindCache
3
- VERSION = "0.1.8"
3
+ VERSION = "0.2.0"
4
4
  end
@@ -34,4 +34,7 @@ Dummy::Application.configure do
34
34
 
35
35
  # Print deprecation notices to the stderr
36
36
  config.active_support.deprecation = :stderr
37
+
38
+ # dalli store for caching
39
+ config.cache_store = :dalli_store#, "/Users/mustafat/test"#, "127.0.0.1:11211"
37
40
  end
Binary file
@@ -477,3 +477,1232 @@ Connecting to database specified by database.yml
477
477
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1
478
478
  User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 1
479
479
  Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
480
+ Connecting to database specified by database.yml
481
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
482
+  (0.1ms) begin transaction
483
+ SQL (80.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00]]
484
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
485
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
486
+  (1.4ms) commit transaction
487
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
488
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
489
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
490
+  (0.0ms) begin transaction
491
+ SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00]]
492
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
493
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
494
+  (1.5ms) commit transaction
495
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
496
+  (0.0ms) begin transaction
497
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00]]
498
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
499
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
500
+  (1.9ms) commit transaction
501
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
502
+  (0.1ms) begin transaction
503
+ SQL (0.7ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00]]
504
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
505
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
506
+  (1.8ms) commit transaction
507
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
508
+  (0.0ms) begin transaction
509
+ SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00]]
510
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
511
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
512
+  (2.2ms) commit transaction
513
+ Comment Load (0.5ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (42, 43, 44, 45) ORDER BY id ASC
514
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (42, 43, 44, 45) ORDER BY id ASC
515
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
516
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
517
+  (0.0ms) begin transaction
518
+  (0.1ms) commit transaction
519
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
520
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
521
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
522
+  (0.1ms) begin transaction
523
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00]]
524
+ SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["title", nil], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["user_id", 12]]
525
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 12 LIMIT 1
526
+  (1.9ms) commit transaction
527
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 12 LIMIT 1
528
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 12 LIMIT 1
529
+ User Load (0.3ms) SELECT "users".* FROM "users" LIMIT 1
530
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
531
+ Connecting to database specified by database.yml
532
+ Post Load (0.5ms) SELECT "posts".* FROM "posts" LIMIT 1
533
+  (0.1ms) begin transaction
534
+ SQL (67.8ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00]]
535
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
536
+ SQL (0.3ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
537
+  (42.7ms) commit transaction
538
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
539
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
540
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
541
+  (0.1ms) begin transaction
542
+ SQL (0.6ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00]]
543
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
544
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
545
+  (18.0ms) commit transaction
546
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
547
+  (0.0ms) begin transaction
548
+ SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00]]
549
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
550
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
551
+  (1.7ms) commit transaction
552
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
553
+  (0.0ms) begin transaction
554
+ SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00]]
555
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
556
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
557
+  (2.1ms) commit transaction
558
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
559
+  (0.0ms) begin transaction
560
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00]]
561
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
562
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
563
+  (1.7ms) commit transaction
564
+ Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (47, 48, 49, 50) ORDER BY id ASC
565
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (47, 48, 49, 50) ORDER BY id ASC
566
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
567
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
568
+  (0.1ms) begin transaction
569
+  (0.2ms) commit transaction
570
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
571
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
572
+ User Load (32.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
573
+  (0.1ms) begin transaction
574
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00]]
575
+ SQL (0.9ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["user_id", 13]]
576
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 13 LIMIT 1
577
+  (22.5ms) commit transaction
578
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1
579
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1
580
+ User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 1
581
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
582
+ Connecting to database specified by database.yml
583
+ Post Load (0.5ms) SELECT "posts".* FROM "posts" LIMIT 1
584
+  (0.1ms) begin transaction
585
+ SQL (81.6ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00]]
586
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
587
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
588
+  (1.4ms) commit transaction
589
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
590
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
591
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
592
+  (0.0ms) begin transaction
593
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00]]
594
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
595
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
596
+  (2.0ms) commit transaction
597
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
598
+  (0.1ms) begin transaction
599
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00]]
600
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
601
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
602
+  (1.9ms) commit transaction
603
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
604
+  (0.0ms) begin transaction
605
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00]]
606
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
607
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
608
+  (2.2ms) commit transaction
609
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
610
+  (0.0ms) begin transaction
611
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00]]
612
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
613
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
614
+  (2.0ms) commit transaction
615
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (52, 53, 54, 55) ORDER BY id ASC
616
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (52, 53, 54, 55) ORDER BY id ASC
617
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
618
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
619
+  (0.1ms) begin transaction
620
+  (0.1ms) commit transaction
621
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
622
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
623
+ User Load (42.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
624
+  (0.1ms) begin transaction
625
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:02:03 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:02:03 UTC +00:00]]
626
+ SQL (0.8ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:02:03 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:02:03 UTC +00:00], ["user_id", 14]]
627
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 14 LIMIT 1
628
+  (1.7ms) commit transaction
629
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 14 LIMIT 1
630
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 14 LIMIT 1
631
+ User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 1
632
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
633
+ Connecting to database specified by database.yml
634
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
635
+  (0.1ms) begin transaction
636
+ SQL (4.6ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00]]
637
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
638
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
639
+  (3.0ms) commit transaction
640
+ undefined local variable or method `primary_key' for #<Comment:0x007fcbd767c0c8>
641
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
642
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
643
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
644
+  (0.0ms) begin transaction
645
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00]]
646
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
647
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
648
+  (2.0ms) commit transaction
649
+ undefined local variable or method `primary_key' for #<Comment:0x007fcbd72f24e8>
650
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
651
+  (0.0ms) begin transaction
652
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00]]
653
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
654
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
655
+  (1.9ms) commit transaction
656
+ undefined local variable or method `primary_key' for #<Comment:0x007fcbd71e1b58>
657
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
658
+  (0.0ms) begin transaction
659
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00]]
660
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
661
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
662
+  (2.1ms) commit transaction
663
+ undefined local variable or method `primary_key' for #<Comment:0x007fcbd72da898>
664
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
665
+  (0.0ms) begin transaction
666
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00]]
667
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
668
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
669
+  (1.8ms) commit transaction
670
+ undefined local variable or method `primary_key' for #<Comment:0x007fcbd73dfbd0>
671
+ Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (57, 58, 59, 60) ORDER BY id ASC
672
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (57, 58, 59, 60) ORDER BY id ASC
673
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
674
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
675
+  (0.1ms) begin transaction
676
+  (0.0ms) commit transaction
677
+ undefined local variable or method `primary_key' for #<Post:0x007fcbd71478c8>
678
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
679
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
680
+  (0.1ms) begin transaction
681
+ SQL (29.7ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00]]
682
+ SQL (0.5ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["user_id", 15]]
683
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 15 LIMIT 1
684
+  (2.2ms) commit transaction
685
+ undefined local variable or method `primary_key' for #<User:0x007fcbd710cd40>
686
+ undefined local variable or method `primary_key' for #<Post:0x007fcbd724f270>
687
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1
688
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1
689
+ User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 1
690
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
691
+ Connecting to database specified by database.yml
692
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
693
+  (0.1ms) begin transaction
694
+ SQL (4.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00]]
695
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
696
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
697
+  (2.7ms) commit transaction
698
+ undefined local variable or method `primary_key' for #<Comment:0x007f7fdbb36fc0>
699
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
700
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
701
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
702
+  (0.0ms) begin transaction
703
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00]]
704
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
705
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
706
+  (1.7ms) commit transaction
707
+ undefined local variable or method `primary_key' for #<Comment:0x007f7fdbcdb600>
708
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
709
+  (0.0ms) begin transaction
710
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00]]
711
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
712
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
713
+  (1.8ms) commit transaction
714
+ undefined local variable or method `primary_key' for #<Comment:0x007f7fdbcef678>
715
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
716
+  (0.0ms) begin transaction
717
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00]]
718
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
719
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
720
+  (1.8ms) commit transaction
721
+ undefined local variable or method `primary_key' for #<Comment:0x007f7fdbcffb90>
722
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
723
+  (0.0ms) begin transaction
724
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00]]
725
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
726
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
727
+  (1.9ms) commit transaction
728
+ undefined local variable or method `primary_key' for #<Comment:0x007f7fdbd100d0>
729
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (62, 63, 64, 65) ORDER BY id ASC
730
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (62, 63, 64, 65) ORDER BY id ASC
731
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
732
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
733
+  (0.1ms) begin transaction
734
+  (0.1ms) commit transaction
735
+ undefined local variable or method `primary_key' for #<Post:0x007f7fdbd33030>
736
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
737
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
738
+  (0.1ms) begin transaction
739
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00]]
740
+ SQL (0.6ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["user_id", 16]]
741
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 16 LIMIT 1
742
+  (2.1ms) commit transaction
743
+ undefined local variable or method `primary_key' for #<User:0x007f7fdbd79300>
744
+ undefined local variable or method `primary_key' for #<Post:0x007f7fdbd86cd0>
745
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 16 LIMIT 1
746
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 16 LIMIT 1
747
+ User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 1
748
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
749
+ Connecting to database specified by database.yml
750
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
751
+  (0.1ms) begin transaction
752
+ SQL (4.8ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00]]
753
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
754
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
755
+  (2.9ms) commit transaction
756
+ undefined local variable or method `primary_key' for #<Comment:0x007fb034c74570>
757
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
758
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
759
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
760
+  (0.1ms) begin transaction
761
+ SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00]]
762
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
763
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
764
+  (1.9ms) commit transaction
765
+ undefined local variable or method `primary_key' for #<Comment:0x007fb034ad59d0>
766
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
767
+  (0.0ms) begin transaction
768
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00]]
769
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
770
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
771
+  (1.6ms) commit transaction
772
+ undefined local variable or method `primary_key' for #<Comment:0x007fb03485bfd8>
773
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
774
+  (0.0ms) begin transaction
775
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00]]
776
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
777
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
778
+  (1.9ms) commit transaction
779
+ undefined local variable or method `primary_key' for #<Comment:0x007fb034828520>
780
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
781
+  (0.0ms) begin transaction
782
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00]]
783
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
784
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
785
+  (1.9ms) commit transaction
786
+ undefined local variable or method `primary_key' for #<Comment:0x007fb034ab4c58>
787
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (67, 68, 69, 70) ORDER BY id ASC
788
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (67, 68, 69, 70) ORDER BY id ASC
789
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
790
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
791
+  (0.1ms) begin transaction
792
+  (0.1ms) commit transaction
793
+ undefined local variable or method `primary_key' for #<Post:0x007fb032e5f3a0>
794
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
795
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
796
+  (0.1ms) begin transaction
797
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00]]
798
+ SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["user_id", 17]]
799
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 17 LIMIT 1
800
+  (2.3ms) commit transaction
801
+ undefined local variable or method `primary_key' for #<User:0x007fb032ff1bf0>
802
+ undefined local variable or method `primary_key' for #<Post:0x007fb034b30038>
803
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 17 LIMIT 1
804
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 17 LIMIT 1
805
+ User Load (0.3ms) SELECT "users".* FROM "users" LIMIT 1
806
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
807
+ Connecting to database specified by database.yml
808
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
809
+  (0.1ms) begin transaction
810
+ SQL (4.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00]]
811
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
812
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
813
+  (3.2ms) commit transaction
814
+ undefined local variable or method `primary_key' for #<Comment:0x007fcfe5f12748>
815
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
816
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
817
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
818
+  (0.1ms) begin transaction
819
+ SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00]]
820
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
821
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
822
+  (1.8ms) commit transaction
823
+ undefined local variable or method `primary_key' for #<Comment:0x007fcfe6b0c468>
824
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
825
+  (0.0ms) begin transaction
826
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00]]
827
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
828
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
829
+  (1.9ms) commit transaction
830
+ undefined local variable or method `primary_key' for #<Comment:0x007fcfe6980ab8>
831
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
832
+  (0.0ms) begin transaction
833
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00]]
834
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
835
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
836
+  (2.4ms) commit transaction
837
+ undefined local variable or method `primary_key' for #<Comment:0x007fcfe69737f0>
838
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
839
+  (0.0ms) begin transaction
840
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00]]
841
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
842
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
843
+  (2.0ms) commit transaction
844
+ undefined local variable or method `primary_key' for #<Comment:0x007fcfe6969908>
845
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (72, 73, 74, 75) ORDER BY id ASC
846
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (72, 73, 74, 75) ORDER BY id ASC
847
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
848
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
849
+  (0.1ms) begin transaction
850
+  (0.1ms) commit transaction
851
+ undefined local variable or method `primary_key' for #<Post:0x007fcfe6a87c90>
852
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
853
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
854
+  (0.1ms) begin transaction
855
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00]]
856
+ SQL (0.6ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["user_id", 18]]
857
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 18 LIMIT 1
858
+  (2.7ms) commit transaction
859
+ undefined local variable or method `primary_key' for #<User:0x007fcfe6865188>
860
+ undefined local variable or method `primary_key' for #<Post:0x007fcfe6830168>
861
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 18 LIMIT 1
862
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 18 LIMIT 1
863
+ User Load (0.3ms) SELECT "users".* FROM "users" LIMIT 1
864
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
865
+ Connecting to database specified by database.yml
866
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
867
+  (0.1ms) begin transaction
868
+ SQL (4.7ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00]]
869
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
870
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
871
+  (2.7ms) commit transaction
872
+ undefined local variable or method `primary_key' for #<Comment:0x007fbafbe688a0>
873
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
874
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
875
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
876
+  (0.0ms) begin transaction
877
+ SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00]]
878
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
879
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
880
+  (1.7ms) commit transaction
881
+ undefined local variable or method `primary_key' for #<Comment:0x007fbafb9fdb08>
882
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
883
+  (0.0ms) begin transaction
884
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00]]
885
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
886
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
887
+  (1.6ms) commit transaction
888
+ undefined local variable or method `primary_key' for #<Comment:0x007fbafbd66858>
889
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
890
+  (0.0ms) begin transaction
891
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00]]
892
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
893
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
894
+  (1.7ms) commit transaction
895
+ undefined local variable or method `primary_key' for #<Comment:0x007fbafbcaa770>
896
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
897
+  (0.0ms) begin transaction
898
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00]]
899
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
900
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
901
+  (2.2ms) commit transaction
902
+ undefined local variable or method `primary_key' for #<Comment:0x007fbafbc830a8>
903
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (77, 78, 79, 80) ORDER BY id ASC
904
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (77, 78, 79, 80) ORDER BY id ASC
905
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
906
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
907
+  (0.1ms) begin transaction
908
+  (0.1ms) commit transaction
909
+ undefined local variable or method `primary_key' for #<Post:0x007fbafbc98f98>
910
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
911
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
912
+  (0.1ms) begin transaction
913
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00]]
914
+ SQL (0.5ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["user_id", 19]]
915
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 19 LIMIT 1
916
+  (2.5ms) commit transaction
917
+ undefined local variable or method `primary_key' for #<User:0x007fbafbc2b858>
918
+ undefined local variable or method `primary_key' for #<Post:0x007fbafb898e20>
919
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 19 LIMIT 1
920
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 19 LIMIT 1
921
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
922
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
923
+ Connecting to database specified by database.yml
924
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
925
+  (0.1ms) begin transaction
926
+ SQL (4.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:38 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:38 UTC +00:00]]
927
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
928
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
929
+  (2.8ms) commit transaction
930
+ undefined local variable or method `primary_key' for #<Comment:0x007fc945ca4d40>
931
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
932
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
933
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
934
+  (0.0ms) begin transaction
935
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00]]
936
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
937
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
938
+  (1.7ms) commit transaction
939
+ undefined local variable or method `primary_key' for #<Comment:0x007fc944bed218>
940
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
941
+  (0.0ms) begin transaction
942
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00]]
943
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
944
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
945
+  (2.3ms) commit transaction
946
+ undefined local variable or method `primary_key' for #<Comment:0x007fc9449fac08>
947
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
948
+  (0.0ms) begin transaction
949
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00]]
950
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
951
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
952
+  (2.0ms) commit transaction
953
+ undefined local variable or method `primary_key' for #<Comment:0x007fc944d75b58>
954
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
955
+  (0.0ms) begin transaction
956
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00]]
957
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
958
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
959
+  (1.8ms) commit transaction
960
+ undefined local variable or method `primary_key' for #<Comment:0x007fc944caa0c0>
961
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (82, 83, 84, 85) ORDER BY id ASC
962
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (82, 83, 84, 85) ORDER BY id ASC
963
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
964
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
965
+  (0.1ms) begin transaction
966
+  (0.0ms) commit transaction
967
+ undefined local variable or method `primary_key' for #<Post:0x007fc944aa3a10>
968
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
969
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
970
+  (0.1ms) begin transaction
971
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00]]
972
+ SQL (0.5ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["user_id", 20]]
973
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 20 LIMIT 1
974
+  (2.8ms) commit transaction
975
+ undefined local variable or method `primary_key' for #<User:0x007fc944f07110>
976
+ undefined local variable or method `primary_key' for #<Post:0x007fc944f2acf0>
977
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1
978
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1
979
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
980
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
981
+ Connecting to database specified by database.yml
982
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
983
+ Cache read: Post/1
984
+ Dalli::Server#connect localhost:11211
985
+ Cache generate: Post/1
986
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
987
+ Cache write: Post/1
988
+  (0.1ms) begin transaction
989
+ SQL (29.9ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00]]
990
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
991
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
992
+  (2.1ms) commit transaction
993
+ undefined local variable or method `primary_key' for #<Comment:0x007fb499d96610>
994
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
995
+ Cache read: Post/1
996
+ Cache generate: Post/1
997
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
998
+ Cache write: Post/1
999
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1000
+  (0.0ms) begin transaction
1001
+ SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00]]
1002
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1003
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1004
+  (2.0ms) commit transaction
1005
+ undefined local variable or method `primary_key' for #<Comment:0x007fb499fe34b8>
1006
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1007
+  (0.0ms) begin transaction
1008
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00]]
1009
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1010
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1011
+  (2.1ms) commit transaction
1012
+ undefined local variable or method `primary_key' for #<Comment:0x007fb499688b70>
1013
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1014
+  (0.0ms) begin transaction
1015
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00]]
1016
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1017
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1018
+  (2.4ms) commit transaction
1019
+ undefined local variable or method `primary_key' for #<Comment:0x007fb499fa6f18>
1020
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1021
+  (0.0ms) begin transaction
1022
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00]]
1023
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1024
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1025
+  (1.9ms) commit transaction
1026
+ undefined local variable or method `primary_key' for #<Comment:0x007fb499f4f790>
1027
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (87, 88, 89, 90) ORDER BY id ASC
1028
+ Cache read_multi: ["Comment/87", "Comment/88", "Comment/89", "Comment/90"]
1029
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (87, 88, 89, 90) ORDER BY id ASC
1030
+ Cache write: Comment/87
1031
+ Cache write: Comment/88
1032
+ Cache write: Comment/89
1033
+ Cache write: Comment/90
1034
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1035
+ Cache read: Post/1
1036
+ Cache generate: Post/1
1037
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1038
+ Cache write: Post/1
1039
+  (0.0ms) begin transaction
1040
+  (0.0ms) commit transaction
1041
+ undefined local variable or method `primary_key' for #<Post:0x007fb499e7dc90>
1042
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1043
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1044
+ Cache read: User/1
1045
+ Cache generate: User/1
1046
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1047
+ Cache write: User/1
1048
+  (0.1ms) begin transaction
1049
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00]]
1050
+ SQL (0.5ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["user_id", 21]]
1051
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 21 LIMIT 1
1052
+  (3.3ms) commit transaction
1053
+ undefined local variable or method `primary_key' for #<User:0x007fb4999f8530>
1054
+ undefined local variable or method `primary_key' for #<Post:0x007fb499e89e78>
1055
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 21 LIMIT 1
1056
+ Cache read: User/21
1057
+ Cache generate: User/21
1058
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 21 LIMIT 1
1059
+ Cache write: User/21
1060
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
1061
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1062
+ Cache read: Post/user_id-1
1063
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1064
+ Connecting to database specified by database.yml
1065
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1066
+ Cache read: Post/1
1067
+ Dalli::Server#connect localhost:11211
1068
+ Cache fetch_hit: Post/1
1069
+  (0.1ms) begin transaction
1070
+ SQL (4.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00]]
1071
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1072
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1073
+  (2.8ms) commit transaction
1074
+ undefined local variable or method `primary_key' for #<Comment:0x007fd9f3ae0748>
1075
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1076
+ Cache read: Post/1
1077
+ Cache generate: Post/1
1078
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1079
+ Cache write: Post/1
1080
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1081
+  (0.0ms) begin transaction
1082
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00]]
1083
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1084
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1085
+  (1.8ms) commit transaction
1086
+ undefined local variable or method `primary_key' for #<Comment:0x007fd9f38d28e8>
1087
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1088
+  (0.0ms) begin transaction
1089
+ SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00]]
1090
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1091
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1092
+  (1.8ms) commit transaction
1093
+ undefined local variable or method `primary_key' for #<Comment:0x007fd9f3b632d8>
1094
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1095
+  (0.0ms) begin transaction
1096
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00]]
1097
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1098
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1099
+  (2.7ms) commit transaction
1100
+ undefined local variable or method `primary_key' for #<Comment:0x007fd9f3a7b758>
1101
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1102
+  (0.0ms) begin transaction
1103
+ SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00]]
1104
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1105
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1106
+  (1.9ms) commit transaction
1107
+ undefined local variable or method `primary_key' for #<Comment:0x007fd9f3a511b0>
1108
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (92, 93, 94, 95) ORDER BY id ASC
1109
+ Cache read_multi: ["Comment/92", "Comment/93", "Comment/94", "Comment/95"]
1110
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (92, 93, 94, 95) ORDER BY id ASC
1111
+ Cache write: Comment/92
1112
+ Cache write: Comment/93
1113
+ Cache write: Comment/94
1114
+ Cache write: Comment/95
1115
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1116
+ Cache read: Post/1
1117
+ Cache generate: Post/1
1118
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1119
+ Cache write: Post/1
1120
+  (0.1ms) begin transaction
1121
+  (0.1ms) commit transaction
1122
+ undefined local variable or method `primary_key' for #<Post:0x007fd9f38ef178>
1123
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1124
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1125
+ Cache read: User/1
1126
+ Cache generate: User/1
1127
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1128
+ Cache write: User/1
1129
+  (0.0ms) begin transaction
1130
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00]]
1131
+ SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["user_id", 22]]
1132
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 22 LIMIT 1
1133
+  (2.8ms) commit transaction
1134
+ undefined local variable or method `primary_key' for #<User:0x007fd9f3d16c88>
1135
+ undefined local variable or method `primary_key' for #<Post:0x007fd9f3d27fd8>
1136
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1
1137
+ Cache read: User/22
1138
+ Cache generate: User/22
1139
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1
1140
+ Cache write: User/22
1141
+ User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 1
1142
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1143
+ Cache read: Post/user_id-1
1144
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1145
+ Connecting to database specified by database.yml
1146
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1147
+ Cache read: Post/1
1148
+ Dalli::Server#connect localhost:11211
1149
+ Cache fetch_hit: Post/1
1150
+  (0.1ms) begin transaction
1151
+ SQL (4.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00]]
1152
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1153
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1154
+  (2.7ms) commit transaction
1155
+ undefined local variable or method `primary_key' for #<Comment:0x007fac6b731788>
1156
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1157
+ Cache read: Post/1
1158
+ Cache generate: Post/1
1159
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1160
+ Cache write: Post/1
1161
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1162
+  (0.1ms) begin transaction
1163
+ SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00]]
1164
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1165
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1166
+  (2.2ms) commit transaction
1167
+ undefined local variable or method `primary_key' for #<Comment:0x007fac6b5c40a8>
1168
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1169
+  (0.0ms) begin transaction
1170
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00]]
1171
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1172
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1173
+  (2.0ms) commit transaction
1174
+ undefined local variable or method `primary_key' for #<Comment:0x007fac6bc8d308>
1175
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1176
+  (0.0ms) begin transaction
1177
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00]]
1178
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1179
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1180
+  (2.0ms) commit transaction
1181
+ undefined local variable or method `primary_key' for #<Comment:0x007fac6b7eff80>
1182
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1183
+  (0.0ms) begin transaction
1184
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00]]
1185
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1186
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1187
+  (2.0ms) commit transaction
1188
+ undefined local variable or method `primary_key' for #<Comment:0x007fac6b19c1b0>
1189
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (97, 98, 99, 100) ORDER BY id ASC
1190
+ Cache read_multi: ["Comment/97", "Comment/98", "Comment/99", "Comment/100"]
1191
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (97, 98, 99, 100) ORDER BY id ASC
1192
+ Cache write: Comment/97
1193
+ Cache write: Comment/98
1194
+ Cache write: Comment/99
1195
+ Cache write: Comment/100
1196
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1197
+ Cache read: Post/1
1198
+ Cache generate: Post/1
1199
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1200
+ Cache write: Post/1
1201
+  (0.0ms) begin transaction
1202
+  (0.0ms) commit transaction
1203
+ undefined local variable or method `primary_key' for #<Post:0x007fac6b7255f0>
1204
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1205
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1206
+ Cache read: User/1
1207
+ Cache fetch_hit: User/1
1208
+  (0.1ms) begin transaction
1209
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00]]
1210
+ SQL (0.5ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["user_id", 23]]
1211
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 23 LIMIT 1
1212
+  (2.4ms) commit transaction
1213
+ undefined local variable or method `primary_key' for #<User:0x007fac6b357fb8>
1214
+ undefined local variable or method `primary_key' for #<Post:0x007fac6bb37dc8>
1215
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1
1216
+ Cache read: User/23
1217
+ Cache generate: User/23
1218
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1
1219
+ Cache write: User/23
1220
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
1221
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1222
+ Cache read: Post/user_id-1
1223
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1224
+ Connecting to database specified by database.yml
1225
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1226
+ Cache read: Post/1
1227
+ Dalli::Server#connect localhost:11211
1228
+ Cache fetch_hit: Post/1
1229
+  (0.1ms) begin transaction
1230
+ SQL (4.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00]]
1231
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1232
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1233
+  (2.7ms) commit transaction
1234
+ undefined local variable or method `primary_key' for #<Comment:0x007f941b1a09a8>
1235
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1236
+ Cache read: Post/1
1237
+ Cache generate: Post/1
1238
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1239
+ Cache write: Post/1
1240
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1241
+  (0.0ms) begin transaction
1242
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00]]
1243
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1244
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1245
+  (2.2ms) commit transaction
1246
+ undefined local variable or method `primary_key' for #<Comment:0x007f941b600750>
1247
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1248
+  (0.0ms) begin transaction
1249
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00]]
1250
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1251
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1252
+  (2.0ms) commit transaction
1253
+ undefined local variable or method `primary_key' for #<Comment:0x007f941b4ba3f0>
1254
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1255
+  (0.0ms) begin transaction
1256
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00]]
1257
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1258
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1259
+  (1.9ms) commit transaction
1260
+ undefined local variable or method `primary_key' for #<Comment:0x007f941b52d9b8>
1261
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1262
+  (0.0ms) begin transaction
1263
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00]]
1264
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1265
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1266
+  (1.9ms) commit transaction
1267
+ undefined local variable or method `primary_key' for #<Comment:0x007f941b3cce98>
1268
+ Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (102, 103, 104, 105) ORDER BY id ASC
1269
+ Cache read_multi: ["Comment/102", "Comment/103", "Comment/104", "Comment/105"]
1270
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (102, 103, 104, 105) ORDER BY id ASC
1271
+ Cache write: Comment/102
1272
+ Cache write: Comment/103
1273
+ Cache write: Comment/104
1274
+ Cache write: Comment/105
1275
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1276
+ Cache read: Post/1
1277
+ Cache generate: Post/1
1278
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1279
+ Cache write: Post/1
1280
+  (0.0ms) begin transaction
1281
+  (0.0ms) commit transaction
1282
+ undefined local variable or method `primary_key' for #<Post:0x007f941b1917f0>
1283
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1284
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1285
+ Cache read: User/1
1286
+ Cache fetch_hit: User/1
1287
+  (0.1ms) begin transaction
1288
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00]]
1289
+ SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["user_id", 24]]
1290
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 24 LIMIT 1
1291
+  (2.4ms) commit transaction
1292
+ undefined local variable or method `primary_key' for #<User:0x007f941b243db0>
1293
+ undefined local variable or method `primary_key' for #<Post:0x007f941b66c8b0>
1294
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1
1295
+ Cache read: User/24
1296
+ Cache generate: User/24
1297
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1
1298
+ Cache write: User/24
1299
+ Connecting to database specified by database.yml
1300
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1301
+ Cache read: Post/1
1302
+ Dalli::Server#connect localhost:11211
1303
+ Cache fetch_hit: Post/1
1304
+  (0.1ms) begin transaction
1305
+ SQL (4.6ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:12 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:12 UTC +00:00]]
1306
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1307
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1308
+  (3.0ms) commit transaction
1309
+ undefined local variable or method `primary_key' for #<Comment:0x007fbebf0c9b28>
1310
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1311
+ Cache read: Post/1
1312
+ Cache generate: Post/1
1313
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1314
+ Cache write: Post/1
1315
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1316
+  (0.1ms) begin transaction
1317
+ SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00]]
1318
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1319
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1320
+  (2.0ms) commit transaction
1321
+ undefined local variable or method `primary_key' for #<Comment:0x007fbebce7baa8>
1322
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1323
+  (0.0ms) begin transaction
1324
+ SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00]]
1325
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1326
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1327
+  (2.0ms) commit transaction
1328
+ undefined local variable or method `primary_key' for #<Comment:0x007fbebf2f6478>
1329
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1330
+  (0.0ms) begin transaction
1331
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00]]
1332
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1333
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1334
+  (1.9ms) commit transaction
1335
+ undefined local variable or method `primary_key' for #<Comment:0x007fbebf546e80>
1336
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1337
+  (0.0ms) begin transaction
1338
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00]]
1339
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1340
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1341
+  (1.9ms) commit transaction
1342
+ undefined local variable or method `primary_key' for #<Comment:0x007fbebf211968>
1343
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (107, 108, 109, 110) ORDER BY id ASC
1344
+ Cache read_multi: ["Comment/107", "Comment/108", "Comment/109", "Comment/110"]
1345
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (107, 108, 109, 110) ORDER BY id ASC
1346
+ Cache write: Comment/107
1347
+ Cache write: Comment/108
1348
+ Cache write: Comment/109
1349
+ Cache write: Comment/110
1350
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1351
+ Cache read: Post/1
1352
+ Cache generate: Post/1
1353
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1354
+ Cache write: Post/1
1355
+  (0.1ms) begin transaction
1356
+  (0.1ms) commit transaction
1357
+ undefined local variable or method `primary_key' for #<Post:0x007fbebcd16eb0>
1358
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1359
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1360
+ Cache read: User/1
1361
+ Cache generate: User/1
1362
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1363
+ Cache write: User/1
1364
+  (0.1ms) begin transaction
1365
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00]]
1366
+ SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["user_id", 25]]
1367
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 25 LIMIT 1
1368
+  (1.8ms) commit transaction
1369
+ undefined local variable or method `primary_key' for #<User:0x007fbebf3e5a28>
1370
+ undefined local variable or method `primary_key' for #<Post:0x007fbebf3e89a8>
1371
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1
1372
+ Cache read: User/25
1373
+ Cache generate: User/25
1374
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1
1375
+ Cache write: User/25
1376
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
1377
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1378
+ Cache read: Post/user_id-1
1379
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1380
+ Connecting to database specified by database.yml
1381
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1382
+ Cache read: Post/1
1383
+ Dalli::Server#connect localhost:11211
1384
+ Cache fetch_hit: Post/1
1385
+  (0.1ms) begin transaction
1386
+ SQL (4.7ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00]]
1387
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1388
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1389
+  (2.7ms) commit transaction
1390
+ undefined local variable or method `primary_key' for #<Comment:0x007fccb9202078>
1391
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1392
+ Cache read: Post/1
1393
+ Cache generate: Post/1
1394
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1395
+ Cache write: Post/1
1396
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1397
+  (0.0ms) begin transaction
1398
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00]]
1399
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1400
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1401
+  (2.0ms) commit transaction
1402
+ undefined local variable or method `primary_key' for #<Comment:0x007fccb8cc71f8>
1403
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1404
+  (0.0ms) begin transaction
1405
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00]]
1406
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1407
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1408
+  (2.1ms) commit transaction
1409
+ undefined local variable or method `primary_key' for #<Comment:0x007fccb8dbadf8>
1410
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1411
+  (0.0ms) begin transaction
1412
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00]]
1413
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1414
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1415
+  (1.9ms) commit transaction
1416
+ undefined local variable or method `primary_key' for #<Comment:0x007fccb8cd55c8>
1417
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1418
+  (0.1ms) begin transaction
1419
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00]]
1420
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1421
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1422
+  (2.0ms) commit transaction
1423
+ undefined local variable or method `primary_key' for #<Comment:0x007fccb91bc870>
1424
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (112, 113, 114, 115) ORDER BY id ASC
1425
+ Cache read_multi: ["Comment/112", "Comment/113", "Comment/114", "Comment/115"]
1426
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (112, 113, 114, 115) ORDER BY id ASC
1427
+ Cache write: Comment/112
1428
+ Cache write: Comment/113
1429
+ Cache write: Comment/114
1430
+ Cache write: Comment/115
1431
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1432
+ Cache read: Post/1
1433
+ Cache generate: Post/1
1434
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1435
+ Cache write: Post/1
1436
+  (0.0ms) begin transaction
1437
+  (0.1ms) commit transaction
1438
+ undefined local variable or method `primary_key' for #<Post:0x007fccb90f8858>
1439
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1440
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1441
+ Cache read: User/1
1442
+ Cache generate: User/1
1443
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1444
+ Cache write: User/1
1445
+  (0.0ms) begin transaction
1446
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00]]
1447
+ SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["user_id", 26]]
1448
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 26 LIMIT 1
1449
+  (1.8ms) commit transaction
1450
+ undefined local variable or method `primary_key' for #<User:0x007fccb8b39930>
1451
+ undefined local variable or method `primary_key' for #<Post:0x007fccb94df278>
1452
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 26 LIMIT 1
1453
+ Cache read: User/26
1454
+ Cache generate: User/26
1455
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 26 LIMIT 1
1456
+ Cache write: User/26
1457
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
1458
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1459
+ Cache read: Post/user_id-1
1460
+ Connecting to database specified by database.yml
1461
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1462
+ Cache read: Post/1
1463
+ Dalli::Server#connect localhost:11211
1464
+ Cache fetch_hit: Post/1
1465
+  (0.1ms) begin transaction
1466
+ SQL (4.7ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00]]
1467
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1468
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1469
+  (2.9ms) commit transaction
1470
+ undefined local variable or method `primary_key' for #<Comment:0x007fbd7a457c40>
1471
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1472
+ Cache read: Post/1
1473
+ Cache generate: Post/1
1474
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1475
+ Cache write: Post/1
1476
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1477
+  (0.0ms) begin transaction
1478
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00]]
1479
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1480
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1481
+  (1.8ms) commit transaction
1482
+ undefined local variable or method `primary_key' for #<Comment:0x007fbd7a2e4a48>
1483
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1484
+  (0.0ms) begin transaction
1485
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00]]
1486
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1487
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1488
+  (2.0ms) commit transaction
1489
+ undefined local variable or method `primary_key' for #<Comment:0x007fbd7a5cf370>
1490
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1491
+  (0.0ms) begin transaction
1492
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00]]
1493
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1494
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1495
+  (1.9ms) commit transaction
1496
+ undefined local variable or method `primary_key' for #<Comment:0x007fbd7a424f98>
1497
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1498
+  (0.0ms) begin transaction
1499
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00]]
1500
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1501
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1502
+  (2.0ms) commit transaction
1503
+ undefined local variable or method `primary_key' for #<Comment:0x007fbd7a56ae98>
1504
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (117, 118, 119, 120) ORDER BY id ASC
1505
+ Cache read_multi: ["Comment/117", "Comment/118", "Comment/119", "Comment/120"]
1506
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (117, 118, 119, 120) ORDER BY id ASC
1507
+ Cache write: Comment/117
1508
+ Cache write: Comment/118
1509
+ Cache write: Comment/119
1510
+ Cache write: Comment/120
1511
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1512
+ Cache read: Post/1
1513
+ Cache generate: Post/1
1514
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1515
+ Cache write: Post/1
1516
+  (0.0ms) begin transaction
1517
+  (0.0ms) commit transaction
1518
+ undefined local variable or method `primary_key' for #<Post:0x007fbd7a460fc0>
1519
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1520
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1521
+ Cache read: User/1
1522
+ Cache generate: User/1
1523
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1524
+ Cache write: User/1
1525
+  (0.0ms) begin transaction
1526
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00]]
1527
+ SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["user_id", 27]]
1528
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 27 LIMIT 1
1529
+  (1.5ms) commit transaction
1530
+ undefined local variable or method `primary_key' for #<User:0x007fbd7a6cdba0>
1531
+ undefined local variable or method `primary_key' for #<Post:0x007fbd7a4738c8>
1532
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1
1533
+ Cache read: User/27
1534
+ Cache generate: User/27
1535
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1
1536
+ Cache write: User/27
1537
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
1538
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1539
+ Cache read: Post/user_id-1
1540
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1541
+ Cache write: Post/user_id-1
1542
+ Cache write: Post/1
1543
+ Connecting to database specified by database.yml
1544
+ Dalli::Server#connect localhost:11211
1545
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1546
+ Cache read: Post/1
1547
+ Cache generate: Post/1
1548
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1549
+ Cache write: Post/1
1550
+  (0.1ms) begin transaction
1551
+ SQL (32.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00]]
1552
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1553
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1554
+  (2.0ms) commit transaction
1555
+ undefined local variable or method `primary_key' for #<Comment:0x007fa902b2d7b8>
1556
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1557
+ Cache read: Post/1
1558
+ Cache generate: Post/1
1559
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1560
+ Cache write: Post/1
1561
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1562
+  (0.0ms) begin transaction
1563
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00]]
1564
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1565
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1566
+  (2.1ms) commit transaction
1567
+ undefined local variable or method `primary_key' for #<Comment:0x007fa902f255a0>
1568
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1569
+  (0.0ms) begin transaction
1570
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00]]
1571
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1572
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1573
+  (1.9ms) commit transaction
1574
+ undefined local variable or method `primary_key' for #<Comment:0x007fa902e6f868>
1575
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1576
+  (0.0ms) begin transaction
1577
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00]]
1578
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1579
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1580
+  (2.4ms) commit transaction
1581
+ undefined local variable or method `primary_key' for #<Comment:0x007fa902e42048>
1582
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1583
+  (0.0ms) begin transaction
1584
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00]]
1585
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1586
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1587
+  (2.1ms) commit transaction
1588
+ undefined local variable or method `primary_key' for #<Comment:0x007fa902dffa18>
1589
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (122, 123, 124, 125) ORDER BY id ASC
1590
+ Cache read_multi: ["Comment/122", "Comment/123", "Comment/124", "Comment/125"]
1591
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (122, 123, 124, 125) ORDER BY id ASC
1592
+ Cache write: Comment/122
1593
+ Cache write: Comment/123
1594
+ Cache write: Comment/124
1595
+ Cache write: Comment/125
1596
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1597
+ Cache read: Post/1
1598
+ Cache generate: Post/1
1599
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1600
+ Cache write: Post/1
1601
+  (0.1ms) begin transaction
1602
+  (0.0ms) commit transaction
1603
+ undefined local variable or method `primary_key' for #<Post:0x007fa902caf8c0>
1604
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1605
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1606
+ Cache read: User/1
1607
+ Cache generate: User/1
1608
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1609
+ Cache write: User/1
1610
+  (0.0ms) begin transaction
1611
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00]]
1612
+ SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["user_id", 28]]
1613
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 28 LIMIT 1
1614
+  (2.2ms) commit transaction
1615
+ undefined local variable or method `primary_key' for #<User:0x007fa902b6d408>
1616
+ undefined local variable or method `primary_key' for #<Post:0x007fa902b782e0>
1617
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1
1618
+ Cache read: User/28
1619
+ Cache generate: User/28
1620
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1
1621
+ Cache write: User/28
1622
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
1623
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1624
+ Cache read: Post/user_id-1
1625
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1626
+ Cache write: Post/user_id-1
1627
+ Cache write: Post/1
1628
+ Connecting to database specified by database.yml
1629
+ Dalli::Server#connect localhost:11211
1630
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1631
+ Cache read: Post/1
1632
+ Cache generate: Post/1
1633
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1634
+ Cache write: Post/1
1635
+  (0.1ms) begin transaction
1636
+ SQL (30.0ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00]]
1637
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1638
+ SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1639
+  (2.9ms) commit transaction
1640
+ undefined local variable or method `primary_key' for #<Comment:0x007fa374a0f428>
1641
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1642
+ Cache read: Post/1
1643
+ Cache generate: Post/1
1644
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1645
+ Cache write: Post/1
1646
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1647
+  (0.0ms) begin transaction
1648
+ SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00]]
1649
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1650
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1651
+  (2.1ms) commit transaction
1652
+ undefined local variable or method `primary_key' for #<Comment:0x007fa374b8bbf8>
1653
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1654
+  (0.0ms) begin transaction
1655
+ SQL (0.6ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00]]
1656
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1657
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1658
+  (2.0ms) commit transaction
1659
+ undefined local variable or method `primary_key' for #<Comment:0x007fa374bd1d60>
1660
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1661
+  (0.0ms) begin transaction
1662
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00]]
1663
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1664
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1665
+  (1.8ms) commit transaction
1666
+ undefined local variable or method `primary_key' for #<Comment:0x007fa373560298>
1667
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1668
+  (0.0ms) begin transaction
1669
+ SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00]]
1670
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1671
+ SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1672
+  (2.4ms) commit transaction
1673
+ undefined local variable or method `primary_key' for #<Comment:0x007fa374976e80>
1674
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (127, 128, 129, 130) ORDER BY id ASC
1675
+ Cache read_multi: ["Comment/127", "Comment/128", "Comment/129", "Comment/130"]
1676
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (127, 128, 129, 130) ORDER BY id ASC
1677
+ Cache write: Comment/127
1678
+ Cache write: Comment/128
1679
+ Cache write: Comment/129
1680
+ Cache write: Comment/130
1681
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1682
+ Cache read: Post/1
1683
+ Cache generate: Post/1
1684
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1685
+ Cache write: Post/1
1686
+  (0.0ms) begin transaction
1687
+  (0.0ms) commit transaction
1688
+ undefined local variable or method `primary_key' for #<Post:0x007fa373755378>
1689
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1690
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1691
+ Cache read: User/1
1692
+ Cache generate: User/1
1693
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1694
+ Cache write: User/1
1695
+  (0.0ms) begin transaction
1696
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00]]
1697
+ SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["title", nil], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["user_id", 29]]
1698
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 29 LIMIT 1
1699
+  (2.0ms) commit transaction
1700
+ undefined local variable or method `primary_key' for #<User:0x007fa373499c60>
1701
+ undefined local variable or method `primary_key' for #<Post:0x007fa3733fa6b0>
1702
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1
1703
+ Cache read: User/29
1704
+ Cache generate: User/29
1705
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1
1706
+ Cache write: User/29
1707
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
1708
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1