find_cache 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/{CHANGE-LOG → CHANGE_LOG.rdoc} +18 -13
  6. data/Gemfile +4 -0
  7. data/README.rdoc +5 -47
  8. data/Rakefile +4 -36
  9. data/bin/console +14 -0
  10. data/bin/setup +7 -0
  11. data/find_cache.gemspec +29 -0
  12. data/lib/find_cache.rb +6 -1
  13. data/lib/find_cache/cacheable.rb +37 -12
  14. data/lib/find_cache/controller_garbage_collector.rb +17 -0
  15. data/lib/find_cache/counter_cache.rb +14 -0
  16. data/lib/find_cache/key_gen.rb +10 -6
  17. data/lib/find_cache/version.rb +1 -1
  18. metadata +93 -328
  19. data/MIT-LICENSE +0 -22
  20. data/lib/tasks/find_cache_tasks.rake +0 -4
  21. data/test/dummy/README.rdoc +0 -261
  22. data/test/dummy/Rakefile +0 -7
  23. data/test/dummy/app/assets/javascripts/application.js +0 -15
  24. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  25. data/test/dummy/app/controllers/application_controller.rb +0 -3
  26. data/test/dummy/app/helpers/application_helper.rb +0 -2
  27. data/test/dummy/app/models/comment.rb +0 -6
  28. data/test/dummy/app/models/post.rb +0 -7
  29. data/test/dummy/app/models/user.rb +0 -13
  30. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  31. data/test/dummy/config.ru +0 -4
  32. data/test/dummy/config/application.rb +0 -59
  33. data/test/dummy/config/boot.rb +0 -10
  34. data/test/dummy/config/database.yml +0 -25
  35. data/test/dummy/config/environment.rb +0 -5
  36. data/test/dummy/config/environments/development.rb +0 -39
  37. data/test/dummy/config/environments/production.rb +0 -67
  38. data/test/dummy/config/environments/test.rb +0 -40
  39. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  40. data/test/dummy/config/initializers/counter_cache_patch.rb +0 -19
  41. data/test/dummy/config/initializers/inflections.rb +0 -15
  42. data/test/dummy/config/initializers/mime_types.rb +0 -5
  43. data/test/dummy/config/initializers/secret_token.rb +0 -7
  44. data/test/dummy/config/initializers/session_store.rb +0 -8
  45. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  46. data/test/dummy/config/locales/en.yml +0 -5
  47. data/test/dummy/config/routes.rb +0 -58
  48. data/test/dummy/db/development.sqlite3 +0 -0
  49. data/test/dummy/db/migrate/20120824210455_create_users.rb +0 -10
  50. data/test/dummy/db/migrate/20120824210731_create_comments.rb +0 -11
  51. data/test/dummy/db/migrate/20120824210927_create_posts.rb +0 -13
  52. data/test/dummy/db/schema.rb +0 -43
  53. data/test/dummy/db/test.sqlite3 +0 -0
  54. data/test/dummy/log/test.log +0 -1793
  55. data/test/dummy/public/404.html +0 -26
  56. data/test/dummy/public/422.html +0 -26
  57. data/test/dummy/public/500.html +0 -25
  58. data/test/dummy/public/favicon.ico +0 -0
  59. data/test/dummy/script/rails +0 -6
  60. data/test/dummy/test/fixtures/comments.yml +0 -9
  61. data/test/dummy/test/fixtures/posts.yml +0 -13
  62. data/test/dummy/test/fixtures/users.yml +0 -9
  63. data/test/dummy/test/unit/comment_test.rb +0 -7
  64. data/test/dummy/test/unit/post_test.rb +0 -7
  65. data/test/dummy/test/unit/user_test.rb +0 -7
  66. data/test/dummy/tmp/cache/26E/540/User%2F1 +0 -0
  67. data/test/dummy/tmp/cache/26F/550/User%2F2 +0 -0
  68. data/test/dummy/tmp/cache/270/560/User%2F3 +0 -0
  69. data/test/dummy/tmp/cache/271/570/User%2F4 +0 -0
  70. data/test/dummy/tmp/cache/272/580/User%2F5 +0 -0
  71. data/test/dummy/tmp/cache/273/590/User%2F6 +0 -0
  72. data/test/dummy/tmp/cache/274/5A0/User%2F7 +0 -0
  73. data/test/dummy/tmp/cache/275/5B0/User%2F8 +0 -0
  74. data/test/dummy/tmp/cache/275/6E0/Post%2F1 +0 -0
  75. data/test/dummy/tmp/cache/276/5C0/User%2F9 +0 -0
  76. data/test/dummy/tmp/cache/276/6F0/Post%2F2 +0 -0
  77. data/test/dummy/tmp/cache/277/700/Post%2F3 +0 -0
  78. data/test/dummy/tmp/cache/29E/F20/User%2F10 +0 -0
  79. data/test/dummy/tmp/cache/29F/F30/User%2F11 +0 -0
  80. data/test/dummy/tmp/cache/29F/F40/User%2F20 +0 -0
  81. data/test/dummy/tmp/cache/2A0/F40/User%2F12 +0 -0
  82. data/test/dummy/tmp/cache/2A1/F50/User%2F13 +0 -0
  83. data/test/dummy/tmp/cache/2A2/F60/User%2F14 +0 -0
  84. data/test/dummy/tmp/cache/2A3/F70/User%2F15 +0 -0
  85. data/test/dummy/tmp/cache/2A4/F80/User%2F16 +0 -0
  86. data/test/dummy/tmp/cache/2A5/F90/User%2F17 +0 -0
  87. data/test/dummy/tmp/cache/2A6/FA0/User%2F18 +0 -0
  88. data/test/dummy/tmp/cache/2A7/FB0/User%2F19 +0 -0
  89. data/test/dummy/tmp/cache/3A8/070/Comment%2F7 +0 -0
  90. data/test/dummy/tmp/cache/3A9/080/Comment%2F8 +0 -0
  91. data/test/dummy/tmp/cache/3AA/090/Comment%2F9 +0 -0
  92. data/test/dummy/tmp/cache/3D2/D30/Comment%2F10 +0 -0
  93. data/test/dummy/tmp/cache/3D3/D50/Comment%2F20 +0 -0
  94. data/test/dummy/tmp/cache/3D4/D50/Comment%2F12 +0 -0
  95. data/test/dummy/tmp/cache/3D4/D70/Comment%2F30 +0 -0
  96. data/test/dummy/tmp/cache/3D5/D60/Comment%2F13 +0 -0
  97. data/test/dummy/tmp/cache/3D5/D70/Comment%2F22 +0 -0
  98. data/test/dummy/tmp/cache/3D5/D90/Comment%2F40 +0 -0
  99. data/test/dummy/tmp/cache/3D6/D70/Comment%2F14 +0 -0
  100. data/test/dummy/tmp/cache/3D6/D80/Comment%2F23 +0 -0
  101. data/test/dummy/tmp/cache/3D6/D90/Comment%2F32 +0 -0
  102. data/test/dummy/tmp/cache/3D6/DB0/Comment%2F50 +0 -0
  103. data/test/dummy/tmp/cache/3D7/D80/Comment%2F15 +0 -0
  104. data/test/dummy/tmp/cache/3D7/D90/Comment%2F24 +0 -0
  105. data/test/dummy/tmp/cache/3D7/DA0/Comment%2F33 +0 -0
  106. data/test/dummy/tmp/cache/3D7/DB0/Comment%2F42 +0 -0
  107. data/test/dummy/tmp/cache/3D7/DD0/Comment%2F60 +0 -0
  108. data/test/dummy/tmp/cache/3D8/DA0/Comment%2F25 +0 -0
  109. data/test/dummy/tmp/cache/3D8/DB0/Comment%2F34 +0 -0
  110. data/test/dummy/tmp/cache/3D8/DC0/Comment%2F43 +0 -0
  111. data/test/dummy/tmp/cache/3D8/DD0/Comment%2F52 +0 -0
  112. data/test/dummy/tmp/cache/3D8/DF0/Comment%2F70 +0 -0
  113. data/test/dummy/tmp/cache/3D9/DA0/Comment%2F17 +0 -0
  114. data/test/dummy/tmp/cache/3D9/DC0/Comment%2F35 +0 -0
  115. data/test/dummy/tmp/cache/3D9/DD0/Comment%2F44 +0 -0
  116. data/test/dummy/tmp/cache/3D9/DE0/Comment%2F53 +0 -0
  117. data/test/dummy/tmp/cache/3D9/DF0/Comment%2F62 +0 -0
  118. data/test/dummy/tmp/cache/3D9/E10/Comment%2F80 +0 -0
  119. data/test/dummy/tmp/cache/3DA/DB0/Comment%2F18 +0 -0
  120. data/test/dummy/tmp/cache/3DA/DC0/Comment%2F27 +0 -0
  121. data/test/dummy/tmp/cache/3DA/DE0/Comment%2F45 +0 -0
  122. data/test/dummy/tmp/cache/3DA/DF0/Comment%2F54 +0 -0
  123. data/test/dummy/tmp/cache/3DA/E00/Comment%2F63 +0 -0
  124. data/test/dummy/tmp/cache/3DA/E10/Comment%2F72 +0 -0
  125. data/test/dummy/tmp/cache/3DB/DC0/Comment%2F19 +0 -0
  126. data/test/dummy/tmp/cache/3DB/DD0/Comment%2F28 +0 -0
  127. data/test/dummy/tmp/cache/3DB/DE0/Comment%2F37 +0 -0
  128. data/test/dummy/tmp/cache/3DB/E00/Comment%2F55 +0 -0
  129. data/test/dummy/tmp/cache/3DB/E10/Comment%2F64 +0 -0
  130. data/test/dummy/tmp/cache/3DB/E20/Comment%2F73 +0 -0
  131. data/test/dummy/tmp/cache/3DB/E30/Comment%2F82 +0 -0
  132. data/test/dummy/tmp/cache/3DC/DE0/Comment%2F29 +0 -0
  133. data/test/dummy/tmp/cache/3DC/DF0/Comment%2F38 +0 -0
  134. data/test/dummy/tmp/cache/3DC/E00/Comment%2F47 +0 -0
  135. data/test/dummy/tmp/cache/3DC/E20/Comment%2F65 +0 -0
  136. data/test/dummy/tmp/cache/3DC/E30/Comment%2F74 +0 -0
  137. data/test/dummy/tmp/cache/3DC/E40/Comment%2F83 +0 -0
  138. data/test/dummy/tmp/cache/3DD/E00/Comment%2F39 +0 -0
  139. data/test/dummy/tmp/cache/3DD/E10/Comment%2F48 +0 -0
  140. data/test/dummy/tmp/cache/3DD/E20/Comment%2F57 +0 -0
  141. data/test/dummy/tmp/cache/3DD/E40/Comment%2F75 +0 -0
  142. data/test/dummy/tmp/cache/3DD/E50/Comment%2F84 +0 -0
  143. data/test/dummy/tmp/cache/3DE/E20/Comment%2F49 +0 -0
  144. data/test/dummy/tmp/cache/3DE/E30/Comment%2F58 +0 -0
  145. data/test/dummy/tmp/cache/3DE/E40/Comment%2F67 +0 -0
  146. data/test/dummy/tmp/cache/3DE/E60/Comment%2F85 +0 -0
  147. data/test/dummy/tmp/cache/3DF/E40/Comment%2F59 +0 -0
  148. data/test/dummy/tmp/cache/3DF/E50/Comment%2F68 +0 -0
  149. data/test/dummy/tmp/cache/3DF/E60/Comment%2F77 +0 -0
  150. data/test/dummy/tmp/cache/3E0/E60/Comment%2F69 +0 -0
  151. data/test/dummy/tmp/cache/3E0/E70/Comment%2F78 +0 -0
  152. data/test/dummy/tmp/cache/3E1/E80/Comment%2F79 +0 -0
  153. data/test/dummy/tmp/cache/58D/B70/Post%2Fuser_id-1 +0 -1
  154. data/test/find_cache_test.rb +0 -57
  155. data/test/test_helper.rb +0 -16
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- if File.exist?(gemfile)
5
- ENV['BUNDLE_GEMFILE'] = gemfile
6
- require 'bundler'
7
- Bundler.setup
8
- end
9
-
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
7
- adapter: sqlite3
8
- database: db/development.sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
- test:
16
- adapter: sqlite3
17
- database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
20
-
21
- production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- Dummy::Application.initialize!
@@ -1,39 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- # Print deprecation notices to the Rails logger
20
- config.active_support.deprecation = :log
21
-
22
- # Only use best-standards-support built into browsers
23
- config.action_dispatch.best_standards_support = :builtin
24
-
25
- # Raise exception on mass assignment protection for Active Record models
26
- config.active_record.mass_assignment_sanitizer = :strict
27
-
28
- # Log the query plan for queries taking more than this (works
29
- # with SQLite, MySQL, and PostgreSQL)
30
- config.active_record.auto_explain_threshold_in_seconds = 0.5
31
-
32
- # Do not compress assets
33
- config.assets.compress = false
34
-
35
- # Expands the lines which load the assets
36
- config.assets.debug = true
37
-
38
- config.cache_store = :dalli_store#, "/Users/mustafat/test"#, "127.0.0.1:11211"
39
- end
@@ -1,67 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # Code is not reloaded between requests
5
- config.cache_classes = true
6
-
7
- # Full error reports are disabled and caching is turned on
8
- config.consider_all_requests_local = false
9
- config.action_controller.perform_caching = true
10
-
11
- # Disable Rails's static asset server (Apache or nginx will already do this)
12
- config.serve_static_assets = false
13
-
14
- # Compress JavaScripts and CSS
15
- config.assets.compress = true
16
-
17
- # Don't fallback to assets pipeline if a precompiled asset is missed
18
- config.assets.compile = false
19
-
20
- # Generate digests for assets URLs
21
- config.assets.digest = true
22
-
23
- # Defaults to nil and saved in location specified by config.assets.prefix
24
- # config.assets.manifest = YOUR_PATH
25
-
26
- # Specifies the header that your server uses for sending files
27
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
-
30
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
- # config.force_ssl = true
32
-
33
- # See everything in the log (default is :info)
34
- # config.log_level = :debug
35
-
36
- # Prepend all log lines with the following tags
37
- # config.log_tags = [ :subdomain, :uuid ]
38
-
39
- # Use a different logger for distributed setups
40
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
-
42
- # Use a different cache store in production
43
- # config.cache_store = :mem_cache_store
44
-
45
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
- # config.action_controller.asset_host = "http://assets.example.com"
47
-
48
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
- # config.assets.precompile += %w( search.js )
50
-
51
- # Disable delivery errors, bad email addresses will be ignored
52
- # config.action_mailer.raise_delivery_errors = false
53
-
54
- # Enable threaded mode
55
- # config.threadsafe!
56
-
57
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
- # the I18n.default_locale when a translation can not be found)
59
- config.i18n.fallbacks = true
60
-
61
- # Send deprecation notices to registered listeners
62
- config.active_support.deprecation = :notify
63
-
64
- # Log the query plan for queries taking more than this (works
65
- # with SQLite, MySQL, and PostgreSQL)
66
- # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
- end
@@ -1,40 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Configure static asset server for tests with Cache-Control for performance
11
- config.serve_static_assets = true
12
- config.static_cache_control = "public, max-age=3600"
13
-
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
16
-
17
- # Show full error reports and disable caching
18
- config.consider_all_requests_local = true
19
- config.action_controller.perform_caching = false
20
-
21
- # Raise exceptions instead of rendering exception templates
22
- config.action_dispatch.show_exceptions = false
23
-
24
- # Disable request forgery protection in test environment
25
- config.action_controller.allow_forgery_protection = false
26
-
27
- # Tell Action Mailer not to deliver emails to the real world.
28
- # The :test delivery method accumulates sent emails in the
29
- # ActionMailer::Base.deliveries array.
30
- config.action_mailer.delivery_method = :test
31
-
32
- # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
34
-
35
- # Print deprecation notices to the stderr
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"
40
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,19 +0,0 @@
1
- module ActiveRecord
2
- module CounterCache
3
- def increment_counter(counter_name, id)
4
- expire_find_cache(name, id)
5
- update_counters(id, counter_name => 1)
6
- end
7
-
8
- def decrement_counter(counter_name, id)
9
- expire_find_cache(name, id)
10
- update_counters(id, counter_name => -1)
11
- end
12
-
13
- def expire_find_cache(name, id)
14
- key = FindCache::KeyGen.cache_key(name, id)
15
- Rails.cache.delete(key)
16
- $find_cache_store[FindCache::KeyGen.global_cache_key].delete(key)
17
- end
18
- end
19
- end
@@ -1,15 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
11
- #
12
- # These inflection rules are supported but not enabled by default:
13
- # ActiveSupport::Inflector.inflections do |inflect|
14
- # inflect.acronym 'RESTful'
15
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = 'e4b661af9683b227df5302dd00027ec47e8bfcbf3a10221aa11e962009439bc1c21ebf4fedc276be6b36e020a705ed38c9b0dfe1bc19c18856a8ce00ab28f792'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rails generate session_migration")
8
- # Dummy::Application.config.session_store :active_record_store
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
- #
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json]
9
- end
10
-
11
- # Disable root element in JSON by default.
12
- ActiveSupport.on_load(:active_record) do
13
- self.include_root_in_json = false
14
- end
@@ -1,5 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- hello: "Hello world"
@@ -1,58 +0,0 @@
1
- Dummy::Application.routes.draw do
2
- # The priority is based upon order of creation:
3
- # first created -> highest priority.
4
-
5
- # Sample of regular route:
6
- # match 'products/:id' => 'catalog#view'
7
- # Keep in mind you can assign values other than :controller and :action
8
-
9
- # Sample of named route:
10
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
- # This route can be invoked with purchase_url(:id => product.id)
12
-
13
- # Sample resource route (maps HTTP verbs to controller actions automatically):
14
- # resources :products
15
-
16
- # Sample resource route with options:
17
- # resources :products do
18
- # member do
19
- # get 'short'
20
- # post 'toggle'
21
- # end
22
- #
23
- # collection do
24
- # get 'sold'
25
- # end
26
- # end
27
-
28
- # Sample resource route with sub-resources:
29
- # resources :products do
30
- # resources :comments, :sales
31
- # resource :seller
32
- # end
33
-
34
- # Sample resource route with more complex sub-resources
35
- # resources :products do
36
- # resources :comments
37
- # resources :sales do
38
- # get 'recent', :on => :collection
39
- # end
40
- # end
41
-
42
- # Sample resource route within a namespace:
43
- # namespace :admin do
44
- # # Directs /admin/products/* to Admin::ProductsController
45
- # # (app/controllers/admin/products_controller.rb)
46
- # resources :products
47
- # end
48
-
49
- # You can have the root of your site routed with "root"
50
- # just remember to delete public/index.html.
51
- # root :to => 'welcome#index'
52
-
53
- # See how all your routes lay out with "rake routes"
54
-
55
- # This is a legacy wild controller route that's not recommended for RESTful applications.
56
- # Note: This route will make all actions in every controller accessible via GET requests.
57
- # match ':controller(/:action(/:id))(.:format)'
58
- end
@@ -1,10 +0,0 @@
1
- class CreateUsers < ActiveRecord::Migration
2
- def change
3
- create_table :users do |t|
4
- t.string :email
5
- t.string :password
6
-
7
- t.timestamps
8
- end
9
- end
10
- end
@@ -1,11 +0,0 @@
1
- class CreateComments < ActiveRecord::Migration
2
- def change
3
- create_table :comments do |t|
4
- t.references :post
5
- t.text :content
6
-
7
- t.timestamps
8
- end
9
- add_index :comments, :post_id
10
- end
11
- end
@@ -1,13 +0,0 @@
1
- class CreatePosts < ActiveRecord::Migration
2
- def change
3
- create_table :posts do |t|
4
- t.references :user
5
- t.string :title
6
- t.text :body
7
- t.integer :comments_count
8
-
9
- t.timestamps
10
- end
11
- add_index :posts, :user_id
12
- end
13
- end
@@ -1,43 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended to check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(:version => 20120824210927) do
15
-
16
- create_table "comments", :force => true do |t|
17
- t.integer "post_id"
18
- t.text "content"
19
- t.datetime "created_at", :null => false
20
- t.datetime "updated_at", :null => false
21
- end
22
-
23
- add_index "comments", ["post_id"], :name => "index_comments_on_post_id"
24
-
25
- create_table "posts", :force => true do |t|
26
- t.integer "user_id"
27
- t.string "title"
28
- t.text "body"
29
- t.integer "comments_count"
30
- t.datetime "created_at", :null => false
31
- t.datetime "updated_at", :null => false
32
- end
33
-
34
- add_index "posts", ["user_id"], :name => "index_posts_on_user_id"
35
-
36
- create_table "users", :force => true do |t|
37
- t.string "email"
38
- t.string "password"
39
- t.datetime "created_at", :null => false
40
- t.datetime "updated_at", :null => false
41
- end
42
-
43
- end
Binary file
@@ -1,1793 +0,0 @@
1
- Connecting to database specified by database.yml
2
-  (0.5ms) begin transaction
3
-  (0.1ms) rollback transaction
4
- Connecting to database specified by database.yml
5
-  (0.6ms) begin transaction
6
-  (0.0ms) rollback transaction
7
- Connecting to database specified by database.yml
8
- Connecting to database specified by database.yml
9
- Connecting to database specified by database.yml
10
- Connecting to database specified by database.yml
11
- Connecting to database specified by database.yml
12
- Connecting to database specified by database.yml
13
- Connecting to database specified by database.yml
14
- Connecting to database specified by database.yml
15
-  (0.1ms) begin transaction
16
- SQL (23.1ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 24 Aug 2012 21:42:47 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Fri, 24 Aug 2012 21:42:47 UTC +00:00]]
17
- SQL (0.5ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Fri, 24 Aug 2012 21:42:47 UTC +00:00], ["title", nil], ["updated_at", Fri, 24 Aug 2012 21:42:47 UTC +00:00], ["user_id", 1]]
18
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
19
-  (1.7ms) commit transaction
20
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
22
- Connecting to database specified by database.yml
23
- Connecting to database specified by database.yml
24
- Connecting to database specified by database.yml
25
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
26
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
27
-  (0.1ms) begin transaction
28
- SQL (5.0ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Fri, 24 Aug 2012 22:01:42 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:01:42 UTC +00:00]]
29
-  (0.8ms) rollback transaction
30
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
31
-  (0.0ms) begin transaction
32
- SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Fri, 24 Aug 2012 22:01:42 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:01:42 UTC +00:00]]
33
-  (0.7ms) rollback transaction
34
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
35
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
36
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
37
-  (0.1ms) begin transaction
38
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 24 Aug 2012 22:01:42 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Fri, 24 Aug 2012 22:01:42 UTC +00:00]]
39
- SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Fri, 24 Aug 2012 22:01:42 UTC +00:00], ["title", nil], ["updated_at", Fri, 24 Aug 2012 22:01:42 UTC +00:00], ["user_id", 2]]
40
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 2 LIMIT 1
41
-  (2.3ms) commit transaction
42
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
43
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
44
- User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
45
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
46
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
47
- Connecting to database specified by database.yml
48
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
49
-  (0.1ms) begin transaction
50
- SQL (4.1ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Fri, 24 Aug 2012 22:02:05 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:02:05 UTC +00:00]]
51
-  (0.9ms) rollback transaction
52
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
53
-  (0.0ms) begin transaction
54
- SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Fri, 24 Aug 2012 22:02:05 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:02:05 UTC +00:00]]
55
-  (0.6ms) rollback transaction
56
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
57
-  (0.0ms) begin transaction
58
-  (0.4ms) UPDATE "posts" SET "title" = 'test', "body" = 'hello world!', "updated_at" = '2012-08-24 22:02:05.031746' WHERE "posts"."id" = 1
59
-  (1.6ms) commit transaction
60
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
61
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
62
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
63
-  (0.1ms) begin transaction
64
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 24 Aug 2012 22:02:05 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Fri, 24 Aug 2012 22:02:05 UTC +00:00]]
65
- SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Fri, 24 Aug 2012 22:02:05 UTC +00:00], ["title", nil], ["updated_at", Fri, 24 Aug 2012 22:02:05 UTC +00:00], ["user_id", 3]]
66
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 3 LIMIT 1
67
-  (1.9ms) commit transaction
68
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1
69
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1
70
- User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 1
71
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
72
- Connecting to database specified by database.yml
73
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
74
-  (0.1ms) begin transaction
75
- SQL (4.6ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00]]
76
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
77
- SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
78
-  (2.7ms) commit transaction
79
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
80
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
81
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
82
-  (0.0ms) begin transaction
83
- SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00]]
84
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
85
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
86
-  (1.8ms) commit transaction
87
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
88
-  (0.0ms) begin transaction
89
- SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00]]
90
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
91
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
92
-  (2.1ms) commit transaction
93
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
94
-  (0.1ms) begin transaction
95
- SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00]]
96
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
97
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
98
-  (1.8ms) commit transaction
99
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
100
-  (0.0ms) begin transaction
101
- SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00]]
102
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
103
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
104
-  (2.2ms) commit transaction
105
- Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" IN (2, 3, 4, 5)
106
- Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" IN (2, 3, 4, 5) ORDER BY id DESC
107
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
108
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
109
-  (0.0ms) begin transaction
110
-  (0.0ms) commit transaction
111
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
112
- Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
113
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
114
-  (0.1ms) begin transaction
115
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00]]
116
- SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00], ["title", nil], ["updated_at", Fri, 24 Aug 2012 22:02:50 UTC +00:00], ["user_id", 4]]
117
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 4 LIMIT 1
118
-  (2.7ms) commit transaction
119
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1
120
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1
121
- User Load (0.3ms) SELECT "users".* FROM "users" LIMIT 1
122
- Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
123
- Connecting to database specified by database.yml
124
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
125
-  (0.1ms) begin transaction
126
- SQL (4.2ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00]]
127
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
128
- SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
129
-  (2.5ms) commit transaction
130
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
131
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
132
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
133
-  (0.0ms) begin transaction
134
- SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00]]
135
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
136
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
137
-  (1.6ms) commit transaction
138
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
139
-  (0.0ms) begin transaction
140
- SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00]]
141
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
142
- SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
143
-  (1.6ms) commit transaction
144
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
145
-  (0.0ms) begin transaction
146
- SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00]]
147
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
148
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
149
-  (2.0ms) commit transaction
150
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
151
-  (0.0ms) begin transaction
152
- SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00]]
153
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
154
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
155
-  (1.8ms) commit transaction
156
- Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (7, 8, 9, 10)
157
- Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (7, 8, 9, 10) ORDER BY id DESC
158
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
159
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
160
-  (0.1ms) begin transaction
161
-  (0.1ms) commit transaction
162
- Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
163
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
164
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
165
-  (0.1ms) begin transaction
166
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00]]
167
- SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00], ["title", nil], ["updated_at", Fri, 24 Aug 2012 22:04:15 UTC +00:00], ["user_id", 5]]
168
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 5 LIMIT 1
169
-  (2.2ms) commit transaction
170
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1
171
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1
172
- User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
173
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
174
- Connecting to database specified by database.yml
175
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
176
-  (0.1ms) begin transaction
177
- SQL (4.2ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00]]
178
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
179
- SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
180
-  (3.0ms) commit transaction
181
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
182
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
183
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
184
-  (0.0ms) begin transaction
185
- SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00]]
186
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
187
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
188
-  (1.8ms) commit transaction
189
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
190
-  (0.0ms) begin transaction
191
- SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00]]
192
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
193
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
194
-  (1.9ms) commit transaction
195
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
196
-  (0.0ms) begin transaction
197
- SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00]]
198
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
199
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
200
-  (2.0ms) commit transaction
201
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
202
-  (0.0ms) begin transaction
203
- SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00]]
204
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
205
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
206
-  (1.5ms) commit transaction
207
- Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (12, 13, 14, 15) ORDER BY id ASC
208
- Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (12, 13, 14, 15) ORDER BY id ASC
209
- Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
210
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
211
-  (0.1ms) begin transaction
212
-  (0.1ms) commit transaction
213
- Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
214
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
215
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
216
-  (0.1ms) begin transaction
217
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00]]
218
- SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00], ["title", nil], ["updated_at", Fri, 24 Aug 2012 22:05:54 UTC +00:00], ["user_id", 6]]
219
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 6 LIMIT 1
220
-  (2.5ms) commit transaction
221
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1
222
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1
223
- User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
224
- Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
225
- Connecting to database specified by database.yml
226
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
227
-  (0.1ms) begin transaction
228
- SQL (42.0ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00]]
229
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
230
- SQL (0.3ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
231
-  (1.9ms) commit transaction
232
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
233
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
234
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
235
-  (0.0ms) begin transaction
236
- SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00]]
237
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
238
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
239
-  (2.3ms) commit transaction
240
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
241
-  (0.0ms) begin transaction
242
- SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00]]
243
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
244
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
245
-  (1.7ms) commit transaction
246
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
247
-  (0.0ms) begin transaction
248
- SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00]]
249
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
250
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
251
-  (1.8ms) commit transaction
252
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
253
-  (0.0ms) begin transaction
254
- SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00]]
255
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
256
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
257
-  (1.4ms) commit transaction
258
- Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (17, 18, 19, 20) ORDER BY id ASC
259
- Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (17, 18, 19, 20) ORDER BY id ASC
260
- Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
261
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
262
-  (0.1ms) begin transaction
263
-  (0.1ms) commit transaction
264
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
265
- Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
266
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
267
-  (0.1ms) begin transaction
268
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00]]
269
- SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00], ["title", nil], ["updated_at", Fri, 24 Aug 2012 22:31:19 UTC +00:00], ["user_id", 7]]
270
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 7 LIMIT 1
271
-  (2.3ms) commit transaction
272
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
273
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
274
- User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 1
275
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
276
- Connecting to database specified by database.yml
277
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
278
-  (0.1ms) begin transaction
279
- SQL (7.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00]]
280
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
281
- SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
282
-  (74.4ms) commit transaction
283
- Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
284
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
285
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
286
-  (0.1ms) begin transaction
287
- SQL (0.6ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00]]
288
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
289
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
290
-  (82.4ms) commit transaction
291
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
292
-  (0.0ms) begin transaction
293
- SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00]]
294
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
295
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
296
-  (1.4ms) commit transaction
297
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
298
-  (0.0ms) begin transaction
299
- SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00]]
300
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
301
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
302
-  (1.3ms) commit transaction
303
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
304
-  (0.0ms) begin transaction
305
- SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00]]
306
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
307
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
308
-  (1.8ms) commit transaction
309
- Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (22, 23, 24, 25) ORDER BY id ASC
310
- Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (22, 23, 24, 25) ORDER BY id ASC
311
- Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
312
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
313
-  (0.1ms) begin transaction
314
-  (0.1ms) commit transaction
315
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
316
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
317
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
318
-  (0.1ms) begin transaction
319
- SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 24 Aug 2012 23:10:19 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Fri, 24 Aug 2012 23:10:19 UTC +00:00]]
320
- SQL (0.5ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Fri, 24 Aug 2012 23:10:19 UTC +00:00], ["title", nil], ["updated_at", Fri, 24 Aug 2012 23:10:19 UTC +00:00], ["user_id", 8]]
321
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 8 LIMIT 1
322
-  (1.6ms) commit transaction
323
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 8 LIMIT 1
324
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 8 LIMIT 1
325
- User Load (0.3ms) SELECT "users".* FROM "users" LIMIT 1
326
- Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
327
- Connecting to database specified by database.yml
328
- Post Load (19.0ms) SELECT "posts".* FROM "posts" LIMIT 1
329
-  (0.1ms) begin transaction
330
- SQL (113.1ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 25 Aug 2012 07:12:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 25 Aug 2012 07:12:33 UTC +00:00]]
331
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
332
- SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
333
-  (93.6ms) commit transaction
334
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
335
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
336
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
337
-  (0.0ms) begin transaction
338
- SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00]]
339
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
340
- SQL (0.3ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
341
-  (158.7ms) commit transaction
342
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
343
-  (0.0ms) begin transaction
344
- SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00]]
345
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
346
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
347
-  (5.9ms) commit transaction
348
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
349
-  (0.0ms) begin transaction
350
- SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00]]
351
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
352
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
353
-  (1.2ms) commit transaction
354
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
355
-  (0.1ms) begin transaction
356
- SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00]]
357
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
358
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
359
-  (135.9ms) commit transaction
360
- Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (27, 28, 29, 30) ORDER BY id ASC
361
- Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (27, 28, 29, 30) ORDER BY id ASC
362
- Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
363
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
364
-  (0.1ms) begin transaction
365
-  (0.0ms) commit transaction
366
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
367
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
368
- User Load (10.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
369
-  (0.1ms) begin transaction
370
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00]]
371
- SQL (0.7ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["title", nil], ["updated_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["user_id", 9]]
372
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 9 LIMIT 1
373
-  (1.5ms) commit transaction
374
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 9 LIMIT 1
375
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 9 LIMIT 1
376
- User Load (0.3ms) SELECT "users".* FROM "users" LIMIT 1
377
- Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
378
- Connecting to database specified by database.yml
379
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
380
-  (0.1ms) begin transaction
381
- SQL (6.2ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00], ["post_id", 1], ["updated_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00]]
382
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
383
- SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
384
-  (1.5ms) commit transaction
385
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
386
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
387
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
388
-  (0.0ms) begin transaction
389
- SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00], ["post_id", 1], ["updated_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00]]
390
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
391
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
392
-  (1.6ms) commit transaction
393
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
394
-  (0.0ms) begin transaction
395
- SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00], ["post_id", 1], ["updated_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00]]
396
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
397
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
398
-  (1.4ms) commit transaction
399
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
400
-  (0.0ms) begin transaction
401
- SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00], ["post_id", 1], ["updated_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00]]
402
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
403
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
404
-  (1.5ms) commit transaction
405
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
406
-  (0.0ms) begin transaction
407
- SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00], ["post_id", 1], ["updated_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00]]
408
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
409
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
410
-  (1.8ms) commit transaction
411
- Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (32, 33, 34, 35) ORDER BY id ASC
412
- Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (32, 33, 34, 35) ORDER BY id ASC
413
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
414
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
415
-  (0.1ms) begin transaction
416
-  (0.1ms) commit transaction
417
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
418
- Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
419
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
420
-  (0.1ms) begin transaction
421
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00]]
422
- SQL (0.4ms) INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00], ["title", nil], ["updated_at", Wed, 29 Aug 2012 18:30:29 UTC +00:00], ["user_id", 10]]
423
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 10 LIMIT 1
424
-  (1.8ms) commit transaction
425
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1
426
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1
427
- User Load (0.3ms) SELECT "users".* FROM "users" LIMIT 1
428
- Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
429
- Connecting to database specified by database.yml
430
- Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
431
-  (0.1ms) begin transaction
432
- SQL (80.8ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Thu, 30 Aug 2012 18:12:19 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 18:12:19 UTC +00:00]]
433
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
434
- SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
435
-  (1.4ms) commit transaction
436
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
437
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
438
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
439
-  (0.1ms) begin transaction
440
- SQL (0.6ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Thu, 30 Aug 2012 18:12:20 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 18:12:20 UTC +00:00]]
441
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
442
- SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
443
-  (1.4ms) commit transaction
444
- Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT 1
445
-  (0.0ms) begin transaction
446
- SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Thu, 30 Aug 2012 18:12:20 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 18:12:20 UTC +00:00]]
447
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
448
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
449
-  (1.4ms) commit transaction
450
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
451
-  (0.0ms) begin transaction
452
- SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Thu, 30 Aug 2012 18:12:20 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 18:12:20 UTC +00:00]]
453
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
454
- SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
455
-  (1.4ms) commit transaction
456
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
457
-  (0.0ms) begin transaction
458
- 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 18:12:20 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 18:12:20 UTC +00:00]]
459
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
460
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
461
-  (1.5ms) commit transaction
462
- Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (37, 38, 39, 40) ORDER BY id ASC
463
- Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (37, 38, 39, 40) ORDER BY id ASC
464
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
465
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
466
-  (0.1ms) begin transaction
467
-  (0.1ms) commit transaction
468
- Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
469
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
470
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
471
-  (0.1ms) begin transaction
472
- SQL (29.5ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 30 Aug 2012 18:12:20 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Thu, 30 Aug 2012 18:12:20 UTC +00:00]]
473
- SQL (0.6ms) 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 18:12:20 UTC +00:00], ["title", nil], ["updated_at", Thu, 30 Aug 2012 18:12:20 UTC +00:00], ["user_id", 11]]
474
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 11 LIMIT 1
475
-  (16.1ms) commit transaction
476
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1
477
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1
478
- User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 1
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
1709
- Connecting to database specified by database.yml
1710
- Dalli::Server#connect localhost:11211
1711
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1712
- Cache read: Post/1
1713
- Cache generate: Post/1
1714
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1715
- Cache write: Post/1
1716
-  (0.1ms) begin transaction
1717
- SQL (30.1ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sun, 23 Sep 2012 00:13:31 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:13:31 UTC +00:00]]
1718
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1719
- SQL (0.2ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1720
-  (3.7ms) commit transaction
1721
- undefined local variable or method `primary_key' for #<Comment:0x007fc9daadef98>
1722
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1723
- Cache read: Post/1
1724
- Cache generate: Post/1
1725
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1726
- Cache write: Post/1
1727
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1728
-  (0.0ms) begin transaction
1729
- SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sun, 23 Sep 2012 00:13:31 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:13:31 UTC +00:00]]
1730
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1731
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1732
-  (2.0ms) commit transaction
1733
- undefined local variable or method `primary_key' for #<Comment:0x007fc9db3cae18>
1734
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1735
-  (0.0ms) begin transaction
1736
- SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sun, 23 Sep 2012 00:13:31 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:13:31 UTC +00:00]]
1737
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1738
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1739
-  (1.9ms) commit transaction
1740
- undefined local variable or method `primary_key' for #<Comment:0x007fc9db3b1288>
1741
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1742
-  (0.0ms) begin transaction
1743
- 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:13:31 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:13:31 UTC +00:00]]
1744
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1745
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1746
-  (2.4ms) commit transaction
1747
- undefined local variable or method `primary_key' for #<Comment:0x007fc9dac2be78>
1748
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1749
-  (0.0ms) begin transaction
1750
- SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sun, 23 Sep 2012 00:13:31 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:13:31 UTC +00:00]]
1751
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1752
- SQL (0.1ms) UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
1753
-  (2.0ms) commit transaction
1754
- undefined local variable or method `primary_key' for #<Comment:0x007fc9db4b34b0>
1755
- Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (132, 133, 134, 135) ORDER BY id ASC
1756
- Cache read_multi: ["Comment/132", "Comment/133", "Comment/134", "Comment/135"]
1757
- Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (132, 133, 134, 135) ORDER BY id ASC
1758
- Cache write: Comment/132
1759
- Cache write: Comment/133
1760
- Cache write: Comment/134
1761
- Cache write: Comment/135
1762
- Post Load (0.1ms) SELECT "posts".* FROM "posts" LIMIT 1
1763
- Cache read: Post/1
1764
- Cache generate: Post/1
1765
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
1766
- Cache write: Post/1
1767
-  (0.0ms) begin transaction
1768
-  (0.1ms) commit transaction
1769
- undefined local variable or method `primary_key' for #<Post:0x007fc9db46cb00>
1770
- Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
1771
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1772
- Cache read: User/1
1773
- Cache generate: User/1
1774
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1775
- Cache write: User/1
1776
-  (0.1ms) begin transaction
1777
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 23 Sep 2012 00:13:31 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sun, 23 Sep 2012 00:13:31 UTC +00:00]]
1778
- 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:13:31 UTC +00:00], ["title", nil], ["updated_at", Sun, 23 Sep 2012 00:13:31 UTC +00:00], ["user_id", 30]]
1779
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 30 LIMIT 1
1780
-  (1.9ms) commit transaction
1781
- undefined local variable or method `primary_key' for #<User:0x007fc9daa4f618>
1782
- undefined local variable or method `primary_key' for #<Post:0x007fc9daaf4f00>
1783
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1
1784
- Cache read: User/30
1785
- Cache generate: User/30
1786
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1
1787
- Cache write: User/30
1788
- User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
1789
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1790
- Cache read: Post/user_id-1
1791
- Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
1792
- Cache write: Post/user_id-1
1793
- Cache write: Post/1