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.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/{CHANGE-LOG → CHANGE_LOG.rdoc} +18 -13
- data/Gemfile +4 -0
- data/README.rdoc +5 -47
- data/Rakefile +4 -36
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/find_cache.gemspec +29 -0
- data/lib/find_cache.rb +6 -1
- data/lib/find_cache/cacheable.rb +37 -12
- data/lib/find_cache/controller_garbage_collector.rb +17 -0
- data/lib/find_cache/counter_cache.rb +14 -0
- data/lib/find_cache/key_gen.rb +10 -6
- data/lib/find_cache/version.rb +1 -1
- metadata +93 -328
- data/MIT-LICENSE +0 -22
- data/lib/tasks/find_cache_tasks.rake +0 -4
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/models/comment.rb +0 -6
- data/test/dummy/app/models/post.rb +0 -7
- data/test/dummy/app/models/user.rb +0 -13
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -59
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -39
- data/test/dummy/config/environments/production.rb +0 -67
- data/test/dummy/config/environments/test.rb +0 -40
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/counter_cache_patch.rb +0 -19
- data/test/dummy/config/initializers/inflections.rb +0 -15
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -58
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20120824210455_create_users.rb +0 -10
- data/test/dummy/db/migrate/20120824210731_create_comments.rb +0 -11
- data/test/dummy/db/migrate/20120824210927_create_posts.rb +0 -13
- data/test/dummy/db/schema.rb +0 -43
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +0 -1793
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +0 -6
- data/test/dummy/test/fixtures/comments.yml +0 -9
- data/test/dummy/test/fixtures/posts.yml +0 -13
- data/test/dummy/test/fixtures/users.yml +0 -9
- data/test/dummy/test/unit/comment_test.rb +0 -7
- data/test/dummy/test/unit/post_test.rb +0 -7
- data/test/dummy/test/unit/user_test.rb +0 -7
- data/test/dummy/tmp/cache/26E/540/User%2F1 +0 -0
- data/test/dummy/tmp/cache/26F/550/User%2F2 +0 -0
- data/test/dummy/tmp/cache/270/560/User%2F3 +0 -0
- data/test/dummy/tmp/cache/271/570/User%2F4 +0 -0
- data/test/dummy/tmp/cache/272/580/User%2F5 +0 -0
- data/test/dummy/tmp/cache/273/590/User%2F6 +0 -0
- data/test/dummy/tmp/cache/274/5A0/User%2F7 +0 -0
- data/test/dummy/tmp/cache/275/5B0/User%2F8 +0 -0
- data/test/dummy/tmp/cache/275/6E0/Post%2F1 +0 -0
- data/test/dummy/tmp/cache/276/5C0/User%2F9 +0 -0
- data/test/dummy/tmp/cache/276/6F0/Post%2F2 +0 -0
- data/test/dummy/tmp/cache/277/700/Post%2F3 +0 -0
- data/test/dummy/tmp/cache/29E/F20/User%2F10 +0 -0
- data/test/dummy/tmp/cache/29F/F30/User%2F11 +0 -0
- data/test/dummy/tmp/cache/29F/F40/User%2F20 +0 -0
- data/test/dummy/tmp/cache/2A0/F40/User%2F12 +0 -0
- data/test/dummy/tmp/cache/2A1/F50/User%2F13 +0 -0
- data/test/dummy/tmp/cache/2A2/F60/User%2F14 +0 -0
- data/test/dummy/tmp/cache/2A3/F70/User%2F15 +0 -0
- data/test/dummy/tmp/cache/2A4/F80/User%2F16 +0 -0
- data/test/dummy/tmp/cache/2A5/F90/User%2F17 +0 -0
- data/test/dummy/tmp/cache/2A6/FA0/User%2F18 +0 -0
- data/test/dummy/tmp/cache/2A7/FB0/User%2F19 +0 -0
- data/test/dummy/tmp/cache/3A8/070/Comment%2F7 +0 -0
- data/test/dummy/tmp/cache/3A9/080/Comment%2F8 +0 -0
- data/test/dummy/tmp/cache/3AA/090/Comment%2F9 +0 -0
- data/test/dummy/tmp/cache/3D2/D30/Comment%2F10 +0 -0
- data/test/dummy/tmp/cache/3D3/D50/Comment%2F20 +0 -0
- data/test/dummy/tmp/cache/3D4/D50/Comment%2F12 +0 -0
- data/test/dummy/tmp/cache/3D4/D70/Comment%2F30 +0 -0
- data/test/dummy/tmp/cache/3D5/D60/Comment%2F13 +0 -0
- data/test/dummy/tmp/cache/3D5/D70/Comment%2F22 +0 -0
- data/test/dummy/tmp/cache/3D5/D90/Comment%2F40 +0 -0
- data/test/dummy/tmp/cache/3D6/D70/Comment%2F14 +0 -0
- data/test/dummy/tmp/cache/3D6/D80/Comment%2F23 +0 -0
- data/test/dummy/tmp/cache/3D6/D90/Comment%2F32 +0 -0
- data/test/dummy/tmp/cache/3D6/DB0/Comment%2F50 +0 -0
- data/test/dummy/tmp/cache/3D7/D80/Comment%2F15 +0 -0
- data/test/dummy/tmp/cache/3D7/D90/Comment%2F24 +0 -0
- data/test/dummy/tmp/cache/3D7/DA0/Comment%2F33 +0 -0
- data/test/dummy/tmp/cache/3D7/DB0/Comment%2F42 +0 -0
- data/test/dummy/tmp/cache/3D7/DD0/Comment%2F60 +0 -0
- data/test/dummy/tmp/cache/3D8/DA0/Comment%2F25 +0 -0
- data/test/dummy/tmp/cache/3D8/DB0/Comment%2F34 +0 -0
- data/test/dummy/tmp/cache/3D8/DC0/Comment%2F43 +0 -0
- data/test/dummy/tmp/cache/3D8/DD0/Comment%2F52 +0 -0
- data/test/dummy/tmp/cache/3D8/DF0/Comment%2F70 +0 -0
- data/test/dummy/tmp/cache/3D9/DA0/Comment%2F17 +0 -0
- data/test/dummy/tmp/cache/3D9/DC0/Comment%2F35 +0 -0
- data/test/dummy/tmp/cache/3D9/DD0/Comment%2F44 +0 -0
- data/test/dummy/tmp/cache/3D9/DE0/Comment%2F53 +0 -0
- data/test/dummy/tmp/cache/3D9/DF0/Comment%2F62 +0 -0
- data/test/dummy/tmp/cache/3D9/E10/Comment%2F80 +0 -0
- data/test/dummy/tmp/cache/3DA/DB0/Comment%2F18 +0 -0
- data/test/dummy/tmp/cache/3DA/DC0/Comment%2F27 +0 -0
- data/test/dummy/tmp/cache/3DA/DE0/Comment%2F45 +0 -0
- data/test/dummy/tmp/cache/3DA/DF0/Comment%2F54 +0 -0
- data/test/dummy/tmp/cache/3DA/E00/Comment%2F63 +0 -0
- data/test/dummy/tmp/cache/3DA/E10/Comment%2F72 +0 -0
- data/test/dummy/tmp/cache/3DB/DC0/Comment%2F19 +0 -0
- data/test/dummy/tmp/cache/3DB/DD0/Comment%2F28 +0 -0
- data/test/dummy/tmp/cache/3DB/DE0/Comment%2F37 +0 -0
- data/test/dummy/tmp/cache/3DB/E00/Comment%2F55 +0 -0
- data/test/dummy/tmp/cache/3DB/E10/Comment%2F64 +0 -0
- data/test/dummy/tmp/cache/3DB/E20/Comment%2F73 +0 -0
- data/test/dummy/tmp/cache/3DB/E30/Comment%2F82 +0 -0
- data/test/dummy/tmp/cache/3DC/DE0/Comment%2F29 +0 -0
- data/test/dummy/tmp/cache/3DC/DF0/Comment%2F38 +0 -0
- data/test/dummy/tmp/cache/3DC/E00/Comment%2F47 +0 -0
- data/test/dummy/tmp/cache/3DC/E20/Comment%2F65 +0 -0
- data/test/dummy/tmp/cache/3DC/E30/Comment%2F74 +0 -0
- data/test/dummy/tmp/cache/3DC/E40/Comment%2F83 +0 -0
- data/test/dummy/tmp/cache/3DD/E00/Comment%2F39 +0 -0
- data/test/dummy/tmp/cache/3DD/E10/Comment%2F48 +0 -0
- data/test/dummy/tmp/cache/3DD/E20/Comment%2F57 +0 -0
- data/test/dummy/tmp/cache/3DD/E40/Comment%2F75 +0 -0
- data/test/dummy/tmp/cache/3DD/E50/Comment%2F84 +0 -0
- data/test/dummy/tmp/cache/3DE/E20/Comment%2F49 +0 -0
- data/test/dummy/tmp/cache/3DE/E30/Comment%2F58 +0 -0
- data/test/dummy/tmp/cache/3DE/E40/Comment%2F67 +0 -0
- data/test/dummy/tmp/cache/3DE/E60/Comment%2F85 +0 -0
- data/test/dummy/tmp/cache/3DF/E40/Comment%2F59 +0 -0
- data/test/dummy/tmp/cache/3DF/E50/Comment%2F68 +0 -0
- data/test/dummy/tmp/cache/3DF/E60/Comment%2F77 +0 -0
- data/test/dummy/tmp/cache/3E0/E60/Comment%2F69 +0 -0
- data/test/dummy/tmp/cache/3E0/E70/Comment%2F78 +0 -0
- data/test/dummy/tmp/cache/3E1/E80/Comment%2F79 +0 -0
- data/test/dummy/tmp/cache/58D/B70/Post%2Fuser_id-1 +0 -1
- data/test/find_cache_test.rb +0 -57
- data/test/test_helper.rb +0 -16
data/test/dummy/config/boot.rb
DELETED
@@ -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,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,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
|
data/test/dummy/config/routes.rb
DELETED
@@ -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
|
Binary file
|
data/test/dummy/db/schema.rb
DELETED
@@ -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
|
data/test/dummy/db/test.sqlite3
DELETED
Binary file
|
data/test/dummy/log/test.log
DELETED
@@ -1,1793 +0,0 @@
|
|
1
|
-
Connecting to database specified by database.yml
|
2
|
-
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
3
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
4
|
-
Connecting to database specified by database.yml
|
5
|
-
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
6
|
-
[1m[35m (0.0ms)[0m 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
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16
|
-
[1m[35mSQL (23.1ms)[0m 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
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
19
|
-
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
20
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
21
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
22
|
-
Connecting to database specified by database.yml
|
23
|
-
Connecting to database specified by database.yml
|
24
|
-
Connecting to database specified by database.yml
|
25
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
26
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
27
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
28
|
-
[1m[35mSQL (5.0ms)[0m 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
|
-
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
30
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
31
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
34
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
35
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
36
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
37
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
38
|
-
[1m[35mSQL (0.5ms)[0m 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
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 2 LIMIT 1
|
41
|
-
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
42
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
43
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
44
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
45
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
46
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
47
|
-
Connecting to database specified by database.yml
|
48
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
49
|
-
[1m[35m (0.1ms)[0m begin transaction
|
50
|
-
[1m[36mSQL (4.1ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.9ms)[0m rollback transaction
|
52
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
53
|
-
[1m[35m (0.0ms)[0m begin transaction
|
54
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35m (0.6ms)[0m rollback transaction
|
56
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
57
|
-
[1m[35m (0.0ms)[0m begin transaction
|
58
|
-
[1m[36m (0.4ms)[0m [1mUPDATE "posts" SET "title" = 'test', "body" = 'hello world!', "updated_at" = '2012-08-24 22:02:05.031746' WHERE "posts"."id" = 1[0m
|
59
|
-
[1m[35m (1.6ms)[0m commit transaction
|
60
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
61
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
62
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
63
|
-
[1m[35m (0.1ms)[0m begin transaction
|
64
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 3 LIMIT 1[0m
|
67
|
-
[1m[35m (1.9ms)[0m commit transaction
|
68
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1[0m
|
69
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1
|
70
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
71
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
72
|
-
Connecting to database specified by database.yml
|
73
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
74
|
-
[1m[35m (0.1ms)[0m begin transaction
|
75
|
-
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
77
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
78
|
-
[1m[35m (2.7ms)[0m commit transaction
|
79
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
80
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
81
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
82
|
-
[1m[35m (0.0ms)[0m begin transaction
|
83
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
85
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
86
|
-
[1m[35m (1.8ms)[0m commit transaction
|
87
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
88
|
-
[1m[35m (0.0ms)[0m begin transaction
|
89
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
91
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
92
|
-
[1m[35m (2.1ms)[0m commit transaction
|
93
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
94
|
-
[1m[35m (0.1ms)[0m begin transaction
|
95
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
97
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
98
|
-
[1m[35m (1.8ms)[0m commit transaction
|
99
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
100
|
-
[1m[35m (0.0ms)[0m begin transaction
|
101
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
103
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
104
|
-
[1m[35m (2.2ms)[0m commit transaction
|
105
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" IN (2, 3, 4, 5)[0m
|
106
|
-
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" IN (2, 3, 4, 5) ORDER BY id DESC
|
107
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
108
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
109
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
110
|
-
[1m[35m (0.0ms)[0m commit transaction
|
111
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
112
|
-
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
113
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
114
|
-
[1m[35m (0.1ms)[0m begin transaction
|
115
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 4 LIMIT 1[0m
|
118
|
-
[1m[35m (2.7ms)[0m commit transaction
|
119
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1[0m
|
120
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1
|
121
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
122
|
-
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
123
|
-
Connecting to database specified by database.yml
|
124
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
125
|
-
[1m[35m (0.1ms)[0m begin transaction
|
126
|
-
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
128
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
129
|
-
[1m[35m (2.5ms)[0m commit transaction
|
130
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
131
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
132
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
133
|
-
[1m[35m (0.0ms)[0m begin transaction
|
134
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
136
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
137
|
-
[1m[35m (1.6ms)[0m commit transaction
|
138
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
139
|
-
[1m[35m (0.0ms)[0m begin transaction
|
140
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
142
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
143
|
-
[1m[35m (1.6ms)[0m commit transaction
|
144
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
145
|
-
[1m[35m (0.0ms)[0m begin transaction
|
146
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
148
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
149
|
-
[1m[35m (2.0ms)[0m commit transaction
|
150
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
151
|
-
[1m[35m (0.0ms)[0m begin transaction
|
152
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
154
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
155
|
-
[1m[35m (1.8ms)[0m commit transaction
|
156
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (7, 8, 9, 10)[0m
|
157
|
-
[1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (7, 8, 9, 10) ORDER BY id DESC
|
158
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
159
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
160
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
161
|
-
[1m[35m (0.1ms)[0m commit transaction
|
162
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
163
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
164
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
165
|
-
[1m[35m (0.1ms)[0m begin transaction
|
166
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 5 LIMIT 1[0m
|
169
|
-
[1m[35m (2.2ms)[0m commit transaction
|
170
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1[0m
|
171
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1
|
172
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
173
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
174
|
-
Connecting to database specified by database.yml
|
175
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
176
|
-
[1m[35m (0.1ms)[0m begin transaction
|
177
|
-
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
179
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
180
|
-
[1m[35m (3.0ms)[0m commit transaction
|
181
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
182
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
183
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
184
|
-
[1m[35m (0.0ms)[0m begin transaction
|
185
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
187
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
188
|
-
[1m[35m (1.8ms)[0m commit transaction
|
189
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
190
|
-
[1m[35m (0.0ms)[0m begin transaction
|
191
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
193
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
194
|
-
[1m[35m (1.9ms)[0m commit transaction
|
195
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
196
|
-
[1m[35m (0.0ms)[0m begin transaction
|
197
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
199
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
200
|
-
[1m[35m (2.0ms)[0m commit transaction
|
201
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
202
|
-
[1m[35m (0.0ms)[0m begin transaction
|
203
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
205
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
206
|
-
[1m[35m (1.5ms)[0m commit transaction
|
207
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (12, 13, 14, 15) ORDER BY id ASC[0m
|
208
|
-
[1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (12, 13, 14, 15) ORDER BY id ASC
|
209
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
210
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
211
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
212
|
-
[1m[35m (0.1ms)[0m commit transaction
|
213
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
214
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
215
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
216
|
-
[1m[35m (0.1ms)[0m begin transaction
|
217
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 6 LIMIT 1[0m
|
220
|
-
[1m[35m (2.5ms)[0m commit transaction
|
221
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1[0m
|
222
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1
|
223
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
224
|
-
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
225
|
-
Connecting to database specified by database.yml
|
226
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
227
|
-
[1m[35m (0.1ms)[0m begin transaction
|
228
|
-
[1m[36mSQL (42.0ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
230
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
231
|
-
[1m[35m (1.9ms)[0m commit transaction
|
232
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
233
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
234
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
235
|
-
[1m[35m (0.0ms)[0m begin transaction
|
236
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
238
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
239
|
-
[1m[35m (2.3ms)[0m commit transaction
|
240
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
241
|
-
[1m[35m (0.0ms)[0m begin transaction
|
242
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
244
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
245
|
-
[1m[35m (1.7ms)[0m commit transaction
|
246
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
247
|
-
[1m[35m (0.0ms)[0m begin transaction
|
248
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
250
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
251
|
-
[1m[35m (1.8ms)[0m commit transaction
|
252
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
253
|
-
[1m[35m (0.0ms)[0m begin transaction
|
254
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
256
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
257
|
-
[1m[35m (1.4ms)[0m commit transaction
|
258
|
-
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (17, 18, 19, 20) ORDER BY id ASC[0m
|
259
|
-
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (17, 18, 19, 20) ORDER BY id ASC
|
260
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
261
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
262
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
263
|
-
[1m[35m (0.1ms)[0m commit transaction
|
264
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
265
|
-
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
266
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
267
|
-
[1m[35m (0.1ms)[0m begin transaction
|
268
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 7 LIMIT 1[0m
|
271
|
-
[1m[35m (2.3ms)[0m commit transaction
|
272
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1[0m
|
273
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
|
274
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
275
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
276
|
-
Connecting to database specified by database.yml
|
277
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
278
|
-
[1m[35m (0.1ms)[0m begin transaction
|
279
|
-
[1m[36mSQL (7.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
281
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
282
|
-
[1m[35m (74.4ms)[0m commit transaction
|
283
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
284
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
285
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
286
|
-
[1m[35m (0.1ms)[0m begin transaction
|
287
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
289
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
290
|
-
[1m[35m (82.4ms)[0m commit transaction
|
291
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
292
|
-
[1m[35m (0.0ms)[0m begin transaction
|
293
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
295
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
296
|
-
[1m[35m (1.4ms)[0m commit transaction
|
297
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
298
|
-
[1m[35m (0.0ms)[0m begin transaction
|
299
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
301
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
302
|
-
[1m[35m (1.3ms)[0m commit transaction
|
303
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
304
|
-
[1m[35m (0.0ms)[0m begin transaction
|
305
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
307
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
308
|
-
[1m[35m (1.8ms)[0m commit transaction
|
309
|
-
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (22, 23, 24, 25) ORDER BY id ASC[0m
|
310
|
-
[1m[35mComment Load (0.4ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (22, 23, 24, 25) ORDER BY id ASC
|
311
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
312
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
313
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
314
|
-
[1m[35m (0.1ms)[0m commit transaction
|
315
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
316
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
317
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
318
|
-
[1m[35m (0.1ms)[0m begin transaction
|
319
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.5ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 8 LIMIT 1[0m
|
322
|
-
[1m[35m (1.6ms)[0m commit transaction
|
323
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 8 LIMIT 1[0m
|
324
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 8 LIMIT 1
|
325
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
326
|
-
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
327
|
-
Connecting to database specified by database.yml
|
328
|
-
[1m[36mPost Load (19.0ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
329
|
-
[1m[35m (0.1ms)[0m begin transaction
|
330
|
-
[1m[36mSQL (113.1ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
332
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
333
|
-
[1m[35m (93.6ms)[0m commit transaction
|
334
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
335
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
336
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
337
|
-
[1m[35m (0.0ms)[0m begin transaction
|
338
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
340
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
341
|
-
[1m[35m (158.7ms)[0m commit transaction
|
342
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
343
|
-
[1m[35m (0.0ms)[0m begin transaction
|
344
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
346
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
347
|
-
[1m[35m (5.9ms)[0m commit transaction
|
348
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
349
|
-
[1m[35m (0.0ms)[0m begin transaction
|
350
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
352
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
353
|
-
[1m[35m (1.2ms)[0m commit transaction
|
354
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
355
|
-
[1m[35m (0.1ms)[0m begin transaction
|
356
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
358
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
359
|
-
[1m[35m (135.9ms)[0m commit transaction
|
360
|
-
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (27, 28, 29, 30) ORDER BY id ASC[0m
|
361
|
-
[1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (27, 28, 29, 30) ORDER BY id ASC
|
362
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
363
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
364
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
365
|
-
[1m[35m (0.0ms)[0m commit transaction
|
366
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
367
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
368
|
-
[1m[36mUser Load (10.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
369
|
-
[1m[35m (0.1ms)[0m begin transaction
|
370
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.7ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 9 LIMIT 1[0m
|
373
|
-
[1m[35m (1.5ms)[0m commit transaction
|
374
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 9 LIMIT 1[0m
|
375
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 9 LIMIT 1
|
376
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
377
|
-
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
378
|
-
Connecting to database specified by database.yml
|
379
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
380
|
-
[1m[35m (0.1ms)[0m begin transaction
|
381
|
-
[1m[36mSQL (6.2ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
383
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
384
|
-
[1m[35m (1.5ms)[0m commit transaction
|
385
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
386
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
387
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
388
|
-
[1m[35m (0.0ms)[0m begin transaction
|
389
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
391
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
392
|
-
[1m[35m (1.6ms)[0m commit transaction
|
393
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
394
|
-
[1m[35m (0.0ms)[0m begin transaction
|
395
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
397
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
398
|
-
[1m[35m (1.4ms)[0m commit transaction
|
399
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
400
|
-
[1m[35m (0.0ms)[0m begin transaction
|
401
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
403
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
404
|
-
[1m[35m (1.5ms)[0m commit transaction
|
405
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
406
|
-
[1m[35m (0.0ms)[0m begin transaction
|
407
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
409
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
410
|
-
[1m[35m (1.8ms)[0m commit transaction
|
411
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (32, 33, 34, 35) ORDER BY id ASC[0m
|
412
|
-
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (32, 33, 34, 35) ORDER BY id ASC
|
413
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
414
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
415
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
416
|
-
[1m[35m (0.1ms)[0m commit transaction
|
417
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
418
|
-
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
419
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
420
|
-
[1m[35m (0.1ms)[0m begin transaction
|
421
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 10 LIMIT 1[0m
|
424
|
-
[1m[35m (1.8ms)[0m commit transaction
|
425
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1[0m
|
426
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1
|
427
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
428
|
-
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
429
|
-
Connecting to database specified by database.yml
|
430
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
431
|
-
[1m[35m (0.1ms)[0m begin transaction
|
432
|
-
[1m[36mSQL (80.8ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
434
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
435
|
-
[1m[35m (1.4ms)[0m commit transaction
|
436
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
437
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
438
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
439
|
-
[1m[35m (0.1ms)[0m begin transaction
|
440
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
442
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
443
|
-
[1m[35m (1.4ms)[0m commit transaction
|
444
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
445
|
-
[1m[35m (0.0ms)[0m begin transaction
|
446
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
448
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
449
|
-
[1m[35m (1.4ms)[0m commit transaction
|
450
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
451
|
-
[1m[35m (0.0ms)[0m begin transaction
|
452
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
454
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
455
|
-
[1m[35m (1.4ms)[0m commit transaction
|
456
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
457
|
-
[1m[35m (0.0ms)[0m begin transaction
|
458
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
460
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
461
|
-
[1m[35m (1.5ms)[0m commit transaction
|
462
|
-
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (37, 38, 39, 40) ORDER BY id ASC[0m
|
463
|
-
[1m[35mComment Load (0.4ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (37, 38, 39, 40) ORDER BY id ASC
|
464
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
465
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
466
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
467
|
-
[1m[35m (0.1ms)[0m commit transaction
|
468
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
469
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
470
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
471
|
-
[1m[35m (0.1ms)[0m begin transaction
|
472
|
-
[1m[36mSQL (29.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.6ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 11 LIMIT 1[0m
|
475
|
-
[1m[35m (16.1ms)[0m commit transaction
|
476
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1[0m
|
477
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1
|
478
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
479
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
480
|
-
Connecting to database specified by database.yml
|
481
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
482
|
-
[1m[35m (0.1ms)[0m begin transaction
|
483
|
-
[1m[36mSQL (80.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
485
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
486
|
-
[1m[35m (1.4ms)[0m commit transaction
|
487
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
488
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
489
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
490
|
-
[1m[35m (0.0ms)[0m begin transaction
|
491
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
493
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
494
|
-
[1m[35m (1.5ms)[0m commit transaction
|
495
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
496
|
-
[1m[35m (0.0ms)[0m begin transaction
|
497
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
499
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
500
|
-
[1m[35m (1.9ms)[0m commit transaction
|
501
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
502
|
-
[1m[35m (0.1ms)[0m begin transaction
|
503
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
505
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
506
|
-
[1m[35m (1.8ms)[0m commit transaction
|
507
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
508
|
-
[1m[35m (0.0ms)[0m begin transaction
|
509
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
511
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
512
|
-
[1m[35m (2.2ms)[0m commit transaction
|
513
|
-
[1m[36mComment Load (0.5ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (42, 43, 44, 45) ORDER BY id ASC[0m
|
514
|
-
[1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (42, 43, 44, 45) ORDER BY id ASC
|
515
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
516
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
517
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
518
|
-
[1m[35m (0.1ms)[0m commit transaction
|
519
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
520
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
521
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
522
|
-
[1m[35m (0.1ms)[0m begin transaction
|
523
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 12 LIMIT 1[0m
|
526
|
-
[1m[35m (1.9ms)[0m commit transaction
|
527
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 12 LIMIT 1[0m
|
528
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 12 LIMIT 1
|
529
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
530
|
-
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
531
|
-
Connecting to database specified by database.yml
|
532
|
-
[1m[36mPost Load (0.5ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
533
|
-
[1m[35m (0.1ms)[0m begin transaction
|
534
|
-
[1m[36mSQL (67.8ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
536
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
537
|
-
[1m[35m (42.7ms)[0m commit transaction
|
538
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
539
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
540
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
541
|
-
[1m[35m (0.1ms)[0m begin transaction
|
542
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
544
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
545
|
-
[1m[35m (18.0ms)[0m commit transaction
|
546
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
547
|
-
[1m[35m (0.0ms)[0m begin transaction
|
548
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
550
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
551
|
-
[1m[35m (1.7ms)[0m commit transaction
|
552
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
553
|
-
[1m[35m (0.0ms)[0m begin transaction
|
554
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
556
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
557
|
-
[1m[35m (2.1ms)[0m commit transaction
|
558
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
559
|
-
[1m[35m (0.0ms)[0m begin transaction
|
560
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
562
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
563
|
-
[1m[35m (1.7ms)[0m commit transaction
|
564
|
-
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (47, 48, 49, 50) ORDER BY id ASC[0m
|
565
|
-
[1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (47, 48, 49, 50) ORDER BY id ASC
|
566
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
567
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
568
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
569
|
-
[1m[35m (0.2ms)[0m commit transaction
|
570
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
571
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
572
|
-
[1m[36mUser Load (32.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
573
|
-
[1m[35m (0.1ms)[0m begin transaction
|
574
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.9ms)[0m 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
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 13 LIMIT 1[0m
|
577
|
-
[1m[35m (22.5ms)[0m commit transaction
|
578
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1[0m
|
579
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1
|
580
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
581
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
582
|
-
Connecting to database specified by database.yml
|
583
|
-
[1m[36mPost Load (0.5ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
584
|
-
[1m[35m (0.1ms)[0m begin transaction
|
585
|
-
[1m[36mSQL (81.6ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
587
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
588
|
-
[1m[35m (1.4ms)[0m commit transaction
|
589
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
590
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
591
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
592
|
-
[1m[35m (0.0ms)[0m begin transaction
|
593
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
595
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
596
|
-
[1m[35m (2.0ms)[0m commit transaction
|
597
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
598
|
-
[1m[35m (0.1ms)[0m begin transaction
|
599
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
601
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
602
|
-
[1m[35m (1.9ms)[0m commit transaction
|
603
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
604
|
-
[1m[35m (0.0ms)[0m begin transaction
|
605
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
607
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
608
|
-
[1m[35m (2.2ms)[0m commit transaction
|
609
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
610
|
-
[1m[35m (0.0ms)[0m begin transaction
|
611
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
613
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
614
|
-
[1m[35m (2.0ms)[0m commit transaction
|
615
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (52, 53, 54, 55) ORDER BY id ASC[0m
|
616
|
-
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (52, 53, 54, 55) ORDER BY id ASC
|
617
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
618
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
619
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
620
|
-
[1m[35m (0.1ms)[0m commit transaction
|
621
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
622
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
623
|
-
[1m[36mUser Load (42.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
624
|
-
[1m[35m (0.1ms)[0m begin transaction
|
625
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.8ms)[0m 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
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 14 LIMIT 1[0m
|
628
|
-
[1m[35m (1.7ms)[0m commit transaction
|
629
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 14 LIMIT 1[0m
|
630
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 14 LIMIT 1
|
631
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
632
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
633
|
-
Connecting to database specified by database.yml
|
634
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
635
|
-
[1m[35m (0.1ms)[0m begin transaction
|
636
|
-
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
638
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
639
|
-
[1m[35m (3.0ms)[0m commit transaction
|
640
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fcbd767c0c8>
|
641
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
642
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
643
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
644
|
-
[1m[35m (0.0ms)[0m begin transaction
|
645
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
647
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
648
|
-
[1m[35m (2.0ms)[0m commit transaction
|
649
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fcbd72f24e8>
|
650
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
651
|
-
[1m[35m (0.0ms)[0m begin transaction
|
652
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
654
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
655
|
-
[1m[35m (1.9ms)[0m commit transaction
|
656
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fcbd71e1b58>
|
657
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
658
|
-
[1m[35m (0.0ms)[0m begin transaction
|
659
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
661
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
662
|
-
[1m[35m (2.1ms)[0m commit transaction
|
663
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fcbd72da898>
|
664
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
665
|
-
[1m[35m (0.0ms)[0m begin transaction
|
666
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
668
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
669
|
-
[1m[35m (1.8ms)[0m commit transaction
|
670
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fcbd73dfbd0>
|
671
|
-
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (57, 58, 59, 60) ORDER BY id ASC[0m
|
672
|
-
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (57, 58, 59, 60) ORDER BY id ASC
|
673
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
674
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
675
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
676
|
-
[1m[35m (0.0ms)[0m commit transaction
|
677
|
-
undefined local variable or method `primary_key' for #<Post:0x007fcbd71478c8>
|
678
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
679
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
680
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
681
|
-
[1m[35mSQL (29.7ms)[0m 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
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 15 LIMIT 1
|
684
|
-
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
685
|
-
undefined local variable or method `primary_key' for #<User:0x007fcbd710cd40>
|
686
|
-
undefined local variable or method `primary_key' for #<Post:0x007fcbd724f270>
|
687
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1
|
688
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1[0m
|
689
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
690
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
691
|
-
Connecting to database specified by database.yml
|
692
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
693
|
-
[1m[35m (0.1ms)[0m begin transaction
|
694
|
-
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
696
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
697
|
-
[1m[35m (2.7ms)[0m commit transaction
|
698
|
-
undefined local variable or method `primary_key' for #<Comment:0x007f7fdbb36fc0>
|
699
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
700
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
701
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
702
|
-
[1m[35m (0.0ms)[0m begin transaction
|
703
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
705
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
706
|
-
[1m[35m (1.7ms)[0m commit transaction
|
707
|
-
undefined local variable or method `primary_key' for #<Comment:0x007f7fdbcdb600>
|
708
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
709
|
-
[1m[35m (0.0ms)[0m begin transaction
|
710
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
712
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
713
|
-
[1m[35m (1.8ms)[0m commit transaction
|
714
|
-
undefined local variable or method `primary_key' for #<Comment:0x007f7fdbcef678>
|
715
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
716
|
-
[1m[35m (0.0ms)[0m begin transaction
|
717
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
719
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
720
|
-
[1m[35m (1.8ms)[0m commit transaction
|
721
|
-
undefined local variable or method `primary_key' for #<Comment:0x007f7fdbcffb90>
|
722
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
723
|
-
[1m[35m (0.0ms)[0m begin transaction
|
724
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
726
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
727
|
-
[1m[35m (1.9ms)[0m commit transaction
|
728
|
-
undefined local variable or method `primary_key' for #<Comment:0x007f7fdbd100d0>
|
729
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (62, 63, 64, 65) ORDER BY id ASC[0m
|
730
|
-
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (62, 63, 64, 65) ORDER BY id ASC
|
731
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
732
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
733
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
734
|
-
[1m[35m (0.1ms)[0m commit transaction
|
735
|
-
undefined local variable or method `primary_key' for #<Post:0x007f7fdbd33030>
|
736
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
737
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
738
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
739
|
-
[1m[35mSQL (0.6ms)[0m 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
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 16 LIMIT 1
|
742
|
-
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
743
|
-
undefined local variable or method `primary_key' for #<User:0x007f7fdbd79300>
|
744
|
-
undefined local variable or method `primary_key' for #<Post:0x007f7fdbd86cd0>
|
745
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 16 LIMIT 1
|
746
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 16 LIMIT 1[0m
|
747
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
748
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
749
|
-
Connecting to database specified by database.yml
|
750
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
751
|
-
[1m[35m (0.1ms)[0m begin transaction
|
752
|
-
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
754
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
755
|
-
[1m[35m (2.9ms)[0m commit transaction
|
756
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fb034c74570>
|
757
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
758
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
759
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
760
|
-
[1m[35m (0.1ms)[0m begin transaction
|
761
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
763
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
764
|
-
[1m[35m (1.9ms)[0m commit transaction
|
765
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fb034ad59d0>
|
766
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
767
|
-
[1m[35m (0.0ms)[0m begin transaction
|
768
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
770
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
771
|
-
[1m[35m (1.6ms)[0m commit transaction
|
772
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fb03485bfd8>
|
773
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
774
|
-
[1m[35m (0.0ms)[0m begin transaction
|
775
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
777
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
778
|
-
[1m[35m (1.9ms)[0m commit transaction
|
779
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fb034828520>
|
780
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
781
|
-
[1m[35m (0.0ms)[0m begin transaction
|
782
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
784
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
785
|
-
[1m[35m (1.9ms)[0m commit transaction
|
786
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fb034ab4c58>
|
787
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (67, 68, 69, 70) ORDER BY id ASC[0m
|
788
|
-
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (67, 68, 69, 70) ORDER BY id ASC
|
789
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
790
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
791
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
792
|
-
[1m[35m (0.1ms)[0m commit transaction
|
793
|
-
undefined local variable or method `primary_key' for #<Post:0x007fb032e5f3a0>
|
794
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
795
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
796
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
797
|
-
[1m[35mSQL (0.6ms)[0m 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
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 17 LIMIT 1
|
800
|
-
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
801
|
-
undefined local variable or method `primary_key' for #<User:0x007fb032ff1bf0>
|
802
|
-
undefined local variable or method `primary_key' for #<Post:0x007fb034b30038>
|
803
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 17 LIMIT 1
|
804
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 17 LIMIT 1[0m
|
805
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
806
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
807
|
-
Connecting to database specified by database.yml
|
808
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
809
|
-
[1m[35m (0.1ms)[0m begin transaction
|
810
|
-
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
812
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
813
|
-
[1m[35m (3.2ms)[0m commit transaction
|
814
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fcfe5f12748>
|
815
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
816
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
817
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
818
|
-
[1m[35m (0.1ms)[0m begin transaction
|
819
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
821
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
822
|
-
[1m[35m (1.8ms)[0m commit transaction
|
823
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fcfe6b0c468>
|
824
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
825
|
-
[1m[35m (0.0ms)[0m begin transaction
|
826
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
828
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
829
|
-
[1m[35m (1.9ms)[0m commit transaction
|
830
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fcfe6980ab8>
|
831
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
832
|
-
[1m[35m (0.0ms)[0m begin transaction
|
833
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
835
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
836
|
-
[1m[35m (2.4ms)[0m commit transaction
|
837
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fcfe69737f0>
|
838
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
839
|
-
[1m[35m (0.0ms)[0m begin transaction
|
840
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
842
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
843
|
-
[1m[35m (2.0ms)[0m commit transaction
|
844
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fcfe6969908>
|
845
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (72, 73, 74, 75) ORDER BY id ASC[0m
|
846
|
-
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (72, 73, 74, 75) ORDER BY id ASC
|
847
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
848
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
849
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
850
|
-
[1m[35m (0.1ms)[0m commit transaction
|
851
|
-
undefined local variable or method `primary_key' for #<Post:0x007fcfe6a87c90>
|
852
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
853
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
854
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
855
|
-
[1m[35mSQL (0.6ms)[0m 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
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 18 LIMIT 1
|
858
|
-
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
859
|
-
undefined local variable or method `primary_key' for #<User:0x007fcfe6865188>
|
860
|
-
undefined local variable or method `primary_key' for #<Post:0x007fcfe6830168>
|
861
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 18 LIMIT 1
|
862
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 18 LIMIT 1[0m
|
863
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
864
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
865
|
-
Connecting to database specified by database.yml
|
866
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
867
|
-
[1m[35m (0.1ms)[0m begin transaction
|
868
|
-
[1m[36mSQL (4.7ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
870
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
871
|
-
[1m[35m (2.7ms)[0m commit transaction
|
872
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbafbe688a0>
|
873
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
874
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
875
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
876
|
-
[1m[35m (0.0ms)[0m begin transaction
|
877
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
879
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
880
|
-
[1m[35m (1.7ms)[0m commit transaction
|
881
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbafb9fdb08>
|
882
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
883
|
-
[1m[35m (0.0ms)[0m begin transaction
|
884
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
886
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
887
|
-
[1m[35m (1.6ms)[0m commit transaction
|
888
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbafbd66858>
|
889
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
890
|
-
[1m[35m (0.0ms)[0m begin transaction
|
891
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
893
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
894
|
-
[1m[35m (1.7ms)[0m commit transaction
|
895
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbafbcaa770>
|
896
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
897
|
-
[1m[35m (0.0ms)[0m begin transaction
|
898
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
900
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
901
|
-
[1m[35m (2.2ms)[0m commit transaction
|
902
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbafbc830a8>
|
903
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (77, 78, 79, 80) ORDER BY id ASC[0m
|
904
|
-
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (77, 78, 79, 80) ORDER BY id ASC
|
905
|
-
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
906
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
907
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
908
|
-
[1m[35m (0.1ms)[0m commit transaction
|
909
|
-
undefined local variable or method `primary_key' for #<Post:0x007fbafbc98f98>
|
910
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
911
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
912
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
913
|
-
[1m[35mSQL (0.6ms)[0m 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
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 19 LIMIT 1
|
916
|
-
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
917
|
-
undefined local variable or method `primary_key' for #<User:0x007fbafbc2b858>
|
918
|
-
undefined local variable or method `primary_key' for #<Post:0x007fbafb898e20>
|
919
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 19 LIMIT 1
|
920
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 19 LIMIT 1[0m
|
921
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
922
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
923
|
-
Connecting to database specified by database.yml
|
924
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
925
|
-
[1m[35m (0.1ms)[0m begin transaction
|
926
|
-
[1m[36mSQL (4.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
928
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
929
|
-
[1m[35m (2.8ms)[0m commit transaction
|
930
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fc945ca4d40>
|
931
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
932
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
933
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
934
|
-
[1m[35m (0.0ms)[0m begin transaction
|
935
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
937
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
938
|
-
[1m[35m (1.7ms)[0m commit transaction
|
939
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fc944bed218>
|
940
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
941
|
-
[1m[35m (0.0ms)[0m begin transaction
|
942
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
944
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
945
|
-
[1m[35m (2.3ms)[0m commit transaction
|
946
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fc9449fac08>
|
947
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
948
|
-
[1m[35m (0.0ms)[0m begin transaction
|
949
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
951
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
952
|
-
[1m[35m (2.0ms)[0m commit transaction
|
953
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fc944d75b58>
|
954
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
955
|
-
[1m[35m (0.0ms)[0m begin transaction
|
956
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
958
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
959
|
-
[1m[35m (1.8ms)[0m commit transaction
|
960
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fc944caa0c0>
|
961
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (82, 83, 84, 85) ORDER BY id ASC[0m
|
962
|
-
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (82, 83, 84, 85) ORDER BY id ASC
|
963
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
964
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
965
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
966
|
-
[1m[35m (0.0ms)[0m commit transaction
|
967
|
-
undefined local variable or method `primary_key' for #<Post:0x007fc944aa3a10>
|
968
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
969
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
970
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
971
|
-
[1m[35mSQL (0.6ms)[0m 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
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 20 LIMIT 1
|
974
|
-
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
975
|
-
undefined local variable or method `primary_key' for #<User:0x007fc944f07110>
|
976
|
-
undefined local variable or method `primary_key' for #<Post:0x007fc944f2acf0>
|
977
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1
|
978
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1[0m
|
979
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
980
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
981
|
-
Connecting to database specified by database.yml
|
982
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
983
|
-
Cache read: Post/1
|
984
|
-
Dalli::Server#connect localhost:11211
|
985
|
-
Cache generate: Post/1
|
986
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
987
|
-
Cache write: Post/1
|
988
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
989
|
-
[1m[35mSQL (29.9ms)[0m 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
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
991
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
992
|
-
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
993
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fb499d96610>
|
994
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
995
|
-
Cache read: Post/1
|
996
|
-
Cache generate: Post/1
|
997
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
998
|
-
Cache write: Post/1
|
999
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1000
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1001
|
-
[1m[35mSQL (0.5ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1003
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1004
|
-
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1005
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fb499fe34b8>
|
1006
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1007
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1008
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1010
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1011
|
-
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1012
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fb499688b70>
|
1013
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1014
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1015
|
-
[1m[35mSQL (0.3ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1017
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1018
|
-
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
1019
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fb499fa6f18>
|
1020
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1021
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1022
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1024
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1025
|
-
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
1026
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fb499f4f790>
|
1027
|
-
[1m[35mComment Load (0.3ms)[0m 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
|
-
[1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (87, 88, 89, 90) ORDER BY id ASC[0m
|
1030
|
-
Cache write: Comment/87
|
1031
|
-
Cache write: Comment/88
|
1032
|
-
Cache write: Comment/89
|
1033
|
-
Cache write: Comment/90
|
1034
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1035
|
-
Cache read: Post/1
|
1036
|
-
Cache generate: Post/1
|
1037
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1038
|
-
Cache write: Post/1
|
1039
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1040
|
-
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1041
|
-
undefined local variable or method `primary_key' for #<Post:0x007fb499e7dc90>
|
1042
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1043
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1044
|
-
Cache read: User/1
|
1045
|
-
Cache generate: User/1
|
1046
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1047
|
-
Cache write: User/1
|
1048
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1049
|
-
[1m[35mSQL (0.6ms)[0m 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
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 21 LIMIT 1
|
1052
|
-
[1m[36m (3.3ms)[0m [1mcommit transaction[0m
|
1053
|
-
undefined local variable or method `primary_key' for #<User:0x007fb4999f8530>
|
1054
|
-
undefined local variable or method `primary_key' for #<Post:0x007fb499e89e78>
|
1055
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 21 LIMIT 1
|
1056
|
-
Cache read: User/21
|
1057
|
-
Cache generate: User/21
|
1058
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 21 LIMIT 1[0m
|
1059
|
-
Cache write: User/21
|
1060
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
1061
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
1062
|
-
Cache read: Post/user_id-1
|
1063
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
1064
|
-
Connecting to database specified by database.yml
|
1065
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1066
|
-
Cache read: Post/1
|
1067
|
-
Dalli::Server#connect localhost:11211
|
1068
|
-
Cache fetch_hit: Post/1
|
1069
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1070
|
-
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1072
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1073
|
-
[1m[35m (2.8ms)[0m commit transaction
|
1074
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fd9f3ae0748>
|
1075
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1076
|
-
Cache read: Post/1
|
1077
|
-
Cache generate: Post/1
|
1078
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1079
|
-
Cache write: Post/1
|
1080
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1081
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1082
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1084
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1085
|
-
[1m[35m (1.8ms)[0m commit transaction
|
1086
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fd9f38d28e8>
|
1087
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1088
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1089
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1091
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1092
|
-
[1m[35m (1.8ms)[0m commit transaction
|
1093
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fd9f3b632d8>
|
1094
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1095
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1096
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1098
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1099
|
-
[1m[35m (2.7ms)[0m commit transaction
|
1100
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fd9f3a7b758>
|
1101
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1102
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1103
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1105
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1106
|
-
[1m[35m (1.9ms)[0m commit transaction
|
1107
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fd9f3a511b0>
|
1108
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (92, 93, 94, 95) ORDER BY id ASC[0m
|
1109
|
-
Cache read_multi: ["Comment/92", "Comment/93", "Comment/94", "Comment/95"]
|
1110
|
-
[1m[35mComment Load (0.2ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1116
|
-
Cache read: Post/1
|
1117
|
-
Cache generate: Post/1
|
1118
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1119
|
-
Cache write: Post/1
|
1120
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1121
|
-
[1m[35m (0.1ms)[0m commit transaction
|
1122
|
-
undefined local variable or method `primary_key' for #<Post:0x007fd9f38ef178>
|
1123
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1124
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1125
|
-
Cache read: User/1
|
1126
|
-
Cache generate: User/1
|
1127
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1128
|
-
Cache write: User/1
|
1129
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1130
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 22 LIMIT 1[0m
|
1133
|
-
[1m[35m (2.8ms)[0m 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
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1[0m
|
1137
|
-
Cache read: User/22
|
1138
|
-
Cache generate: User/22
|
1139
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1
|
1140
|
-
Cache write: User/22
|
1141
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
1142
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
1143
|
-
Cache read: Post/user_id-1
|
1144
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
1145
|
-
Connecting to database specified by database.yml
|
1146
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1147
|
-
Cache read: Post/1
|
1148
|
-
Dalli::Server#connect localhost:11211
|
1149
|
-
Cache fetch_hit: Post/1
|
1150
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1151
|
-
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1153
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1154
|
-
[1m[35m (2.7ms)[0m commit transaction
|
1155
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fac6b731788>
|
1156
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1157
|
-
Cache read: Post/1
|
1158
|
-
Cache generate: Post/1
|
1159
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1160
|
-
Cache write: Post/1
|
1161
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1162
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1163
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1165
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1166
|
-
[1m[35m (2.2ms)[0m commit transaction
|
1167
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fac6b5c40a8>
|
1168
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1169
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1170
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1172
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1173
|
-
[1m[35m (2.0ms)[0m commit transaction
|
1174
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fac6bc8d308>
|
1175
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1176
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1177
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1179
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1180
|
-
[1m[35m (2.0ms)[0m commit transaction
|
1181
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fac6b7eff80>
|
1182
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1183
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1184
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1186
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1187
|
-
[1m[35m (2.0ms)[0m commit transaction
|
1188
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fac6b19c1b0>
|
1189
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (97, 98, 99, 100) ORDER BY id ASC[0m
|
1190
|
-
Cache read_multi: ["Comment/97", "Comment/98", "Comment/99", "Comment/100"]
|
1191
|
-
[1m[35mComment Load (0.2ms)[0m 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
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1197
|
-
Cache read: Post/1
|
1198
|
-
Cache generate: Post/1
|
1199
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1200
|
-
Cache write: Post/1
|
1201
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1202
|
-
[1m[35m (0.0ms)[0m commit transaction
|
1203
|
-
undefined local variable or method `primary_key' for #<Post:0x007fac6b7255f0>
|
1204
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1205
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1206
|
-
Cache read: User/1
|
1207
|
-
Cache fetch_hit: User/1
|
1208
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1209
|
-
[1m[35mSQL (0.5ms)[0m 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
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 23 LIMIT 1
|
1212
|
-
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
1213
|
-
undefined local variable or method `primary_key' for #<User:0x007fac6b357fb8>
|
1214
|
-
undefined local variable or method `primary_key' for #<Post:0x007fac6bb37dc8>
|
1215
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1
|
1216
|
-
Cache read: User/23
|
1217
|
-
Cache generate: User/23
|
1218
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1[0m
|
1219
|
-
Cache write: User/23
|
1220
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
1221
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
1222
|
-
Cache read: Post/user_id-1
|
1223
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
1224
|
-
Connecting to database specified by database.yml
|
1225
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1226
|
-
Cache read: Post/1
|
1227
|
-
Dalli::Server#connect localhost:11211
|
1228
|
-
Cache fetch_hit: Post/1
|
1229
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1230
|
-
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1232
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1233
|
-
[1m[35m (2.7ms)[0m commit transaction
|
1234
|
-
undefined local variable or method `primary_key' for #<Comment:0x007f941b1a09a8>
|
1235
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1236
|
-
Cache read: Post/1
|
1237
|
-
Cache generate: Post/1
|
1238
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1239
|
-
Cache write: Post/1
|
1240
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1241
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1242
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1244
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1245
|
-
[1m[35m (2.2ms)[0m commit transaction
|
1246
|
-
undefined local variable or method `primary_key' for #<Comment:0x007f941b600750>
|
1247
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1248
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1249
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1251
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1252
|
-
[1m[35m (2.0ms)[0m commit transaction
|
1253
|
-
undefined local variable or method `primary_key' for #<Comment:0x007f941b4ba3f0>
|
1254
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1255
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1256
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1258
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1259
|
-
[1m[35m (1.9ms)[0m commit transaction
|
1260
|
-
undefined local variable or method `primary_key' for #<Comment:0x007f941b52d9b8>
|
1261
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1262
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1263
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1265
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1266
|
-
[1m[35m (1.9ms)[0m commit transaction
|
1267
|
-
undefined local variable or method `primary_key' for #<Comment:0x007f941b3cce98>
|
1268
|
-
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (102, 103, 104, 105) ORDER BY id ASC[0m
|
1269
|
-
Cache read_multi: ["Comment/102", "Comment/103", "Comment/104", "Comment/105"]
|
1270
|
-
[1m[35mComment Load (0.2ms)[0m 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
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1276
|
-
Cache read: Post/1
|
1277
|
-
Cache generate: Post/1
|
1278
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1279
|
-
Cache write: Post/1
|
1280
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1281
|
-
[1m[35m (0.0ms)[0m commit transaction
|
1282
|
-
undefined local variable or method `primary_key' for #<Post:0x007f941b1917f0>
|
1283
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1284
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1285
|
-
Cache read: User/1
|
1286
|
-
Cache fetch_hit: User/1
|
1287
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1288
|
-
[1m[35mSQL (0.6ms)[0m 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
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 24 LIMIT 1
|
1291
|
-
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
1292
|
-
undefined local variable or method `primary_key' for #<User:0x007f941b243db0>
|
1293
|
-
undefined local variable or method `primary_key' for #<Post:0x007f941b66c8b0>
|
1294
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1
|
1295
|
-
Cache read: User/24
|
1296
|
-
Cache generate: User/24
|
1297
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1[0m
|
1298
|
-
Cache write: User/24
|
1299
|
-
Connecting to database specified by database.yml
|
1300
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1301
|
-
Cache read: Post/1
|
1302
|
-
Dalli::Server#connect localhost:11211
|
1303
|
-
Cache fetch_hit: Post/1
|
1304
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1305
|
-
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1307
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1308
|
-
[1m[35m (3.0ms)[0m commit transaction
|
1309
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbebf0c9b28>
|
1310
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1311
|
-
Cache read: Post/1
|
1312
|
-
Cache generate: Post/1
|
1313
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1314
|
-
Cache write: Post/1
|
1315
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1316
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1317
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1319
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1320
|
-
[1m[35m (2.0ms)[0m commit transaction
|
1321
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbebce7baa8>
|
1322
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1323
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1324
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1326
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1327
|
-
[1m[35m (2.0ms)[0m commit transaction
|
1328
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbebf2f6478>
|
1329
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1330
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1331
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1333
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1334
|
-
[1m[35m (1.9ms)[0m commit transaction
|
1335
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbebf546e80>
|
1336
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1337
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1338
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1340
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1341
|
-
[1m[35m (1.9ms)[0m commit transaction
|
1342
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbebf211968>
|
1343
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (107, 108, 109, 110) ORDER BY id ASC[0m
|
1344
|
-
Cache read_multi: ["Comment/107", "Comment/108", "Comment/109", "Comment/110"]
|
1345
|
-
[1m[35mComment Load (0.2ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1351
|
-
Cache read: Post/1
|
1352
|
-
Cache generate: Post/1
|
1353
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1354
|
-
Cache write: Post/1
|
1355
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1356
|
-
[1m[35m (0.1ms)[0m commit transaction
|
1357
|
-
undefined local variable or method `primary_key' for #<Post:0x007fbebcd16eb0>
|
1358
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1359
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1360
|
-
Cache read: User/1
|
1361
|
-
Cache generate: User/1
|
1362
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1363
|
-
Cache write: User/1
|
1364
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1365
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 25 LIMIT 1[0m
|
1368
|
-
[1m[35m (1.8ms)[0m 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
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1[0m
|
1372
|
-
Cache read: User/25
|
1373
|
-
Cache generate: User/25
|
1374
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1
|
1375
|
-
Cache write: User/25
|
1376
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
1377
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
1378
|
-
Cache read: Post/user_id-1
|
1379
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
1380
|
-
Connecting to database specified by database.yml
|
1381
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1382
|
-
Cache read: Post/1
|
1383
|
-
Dalli::Server#connect localhost:11211
|
1384
|
-
Cache fetch_hit: Post/1
|
1385
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1386
|
-
[1m[36mSQL (4.7ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1388
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1389
|
-
[1m[35m (2.7ms)[0m commit transaction
|
1390
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fccb9202078>
|
1391
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1392
|
-
Cache read: Post/1
|
1393
|
-
Cache generate: Post/1
|
1394
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1395
|
-
Cache write: Post/1
|
1396
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1397
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1398
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1400
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1401
|
-
[1m[35m (2.0ms)[0m commit transaction
|
1402
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fccb8cc71f8>
|
1403
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1404
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1405
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1407
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1408
|
-
[1m[35m (2.1ms)[0m commit transaction
|
1409
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fccb8dbadf8>
|
1410
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1411
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1412
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1414
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1415
|
-
[1m[35m (1.9ms)[0m commit transaction
|
1416
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fccb8cd55c8>
|
1417
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1418
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1419
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1421
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1422
|
-
[1m[35m (2.0ms)[0m commit transaction
|
1423
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fccb91bc870>
|
1424
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (112, 113, 114, 115) ORDER BY id ASC[0m
|
1425
|
-
Cache read_multi: ["Comment/112", "Comment/113", "Comment/114", "Comment/115"]
|
1426
|
-
[1m[35mComment Load (0.2ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1432
|
-
Cache read: Post/1
|
1433
|
-
Cache generate: Post/1
|
1434
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1435
|
-
Cache write: Post/1
|
1436
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1437
|
-
[1m[35m (0.1ms)[0m commit transaction
|
1438
|
-
undefined local variable or method `primary_key' for #<Post:0x007fccb90f8858>
|
1439
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1440
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1441
|
-
Cache read: User/1
|
1442
|
-
Cache generate: User/1
|
1443
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1444
|
-
Cache write: User/1
|
1445
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1446
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 26 LIMIT 1[0m
|
1449
|
-
[1m[35m (1.8ms)[0m 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
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 26 LIMIT 1[0m
|
1453
|
-
Cache read: User/26
|
1454
|
-
Cache generate: User/26
|
1455
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 26 LIMIT 1
|
1456
|
-
Cache write: User/26
|
1457
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
1458
|
-
[1m[35mPost Load (0.1ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1462
|
-
Cache read: Post/1
|
1463
|
-
Dalli::Server#connect localhost:11211
|
1464
|
-
Cache fetch_hit: Post/1
|
1465
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1466
|
-
[1m[36mSQL (4.7ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1468
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1469
|
-
[1m[35m (2.9ms)[0m commit transaction
|
1470
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbd7a457c40>
|
1471
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1472
|
-
Cache read: Post/1
|
1473
|
-
Cache generate: Post/1
|
1474
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1475
|
-
Cache write: Post/1
|
1476
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1477
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1478
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1480
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1481
|
-
[1m[35m (1.8ms)[0m commit transaction
|
1482
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbd7a2e4a48>
|
1483
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1484
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1485
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1487
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1488
|
-
[1m[35m (2.0ms)[0m commit transaction
|
1489
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbd7a5cf370>
|
1490
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1491
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1492
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1494
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1495
|
-
[1m[35m (1.9ms)[0m commit transaction
|
1496
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbd7a424f98>
|
1497
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1498
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1499
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1501
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1502
|
-
[1m[35m (2.0ms)[0m commit transaction
|
1503
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fbd7a56ae98>
|
1504
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (117, 118, 119, 120) ORDER BY id ASC[0m
|
1505
|
-
Cache read_multi: ["Comment/117", "Comment/118", "Comment/119", "Comment/120"]
|
1506
|
-
[1m[35mComment Load (0.2ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1512
|
-
Cache read: Post/1
|
1513
|
-
Cache generate: Post/1
|
1514
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1515
|
-
Cache write: Post/1
|
1516
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1517
|
-
[1m[35m (0.0ms)[0m commit transaction
|
1518
|
-
undefined local variable or method `primary_key' for #<Post:0x007fbd7a460fc0>
|
1519
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1520
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1521
|
-
Cache read: User/1
|
1522
|
-
Cache generate: User/1
|
1523
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1524
|
-
Cache write: User/1
|
1525
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1526
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 27 LIMIT 1[0m
|
1529
|
-
[1m[35m (1.5ms)[0m 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
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1[0m
|
1533
|
-
Cache read: User/27
|
1534
|
-
Cache generate: User/27
|
1535
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1
|
1536
|
-
Cache write: User/27
|
1537
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
1538
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
1539
|
-
Cache read: Post/user_id-1
|
1540
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
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
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1546
|
-
Cache read: Post/1
|
1547
|
-
Cache generate: Post/1
|
1548
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1549
|
-
Cache write: Post/1
|
1550
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1551
|
-
[1m[35mSQL (32.3ms)[0m 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
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1553
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1554
|
-
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1555
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fa902b2d7b8>
|
1556
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1557
|
-
Cache read: Post/1
|
1558
|
-
Cache generate: Post/1
|
1559
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1560
|
-
Cache write: Post/1
|
1561
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1562
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1563
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1565
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1566
|
-
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1567
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fa902f255a0>
|
1568
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1569
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1570
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1572
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1573
|
-
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
1574
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fa902e6f868>
|
1575
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1576
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1577
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1579
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1580
|
-
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
1581
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fa902e42048>
|
1582
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1583
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1584
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1586
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1587
|
-
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1588
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fa902dffa18>
|
1589
|
-
[1m[35mComment Load (0.3ms)[0m 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
|
-
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (122, 123, 124, 125) ORDER BY id ASC[0m
|
1592
|
-
Cache write: Comment/122
|
1593
|
-
Cache write: Comment/123
|
1594
|
-
Cache write: Comment/124
|
1595
|
-
Cache write: Comment/125
|
1596
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1597
|
-
Cache read: Post/1
|
1598
|
-
Cache generate: Post/1
|
1599
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1600
|
-
Cache write: Post/1
|
1601
|
-
[1m[35m (0.1ms)[0m begin transaction
|
1602
|
-
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1603
|
-
undefined local variable or method `primary_key' for #<Post:0x007fa902caf8c0>
|
1604
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1605
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1606
|
-
Cache read: User/1
|
1607
|
-
Cache generate: User/1
|
1608
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1609
|
-
Cache write: User/1
|
1610
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1611
|
-
[1m[35mSQL (0.5ms)[0m 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
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 28 LIMIT 1
|
1614
|
-
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
1615
|
-
undefined local variable or method `primary_key' for #<User:0x007fa902b6d408>
|
1616
|
-
undefined local variable or method `primary_key' for #<Post:0x007fa902b782e0>
|
1617
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1
|
1618
|
-
Cache read: User/28
|
1619
|
-
Cache generate: User/28
|
1620
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1[0m
|
1621
|
-
Cache write: User/28
|
1622
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
1623
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
1624
|
-
Cache read: Post/user_id-1
|
1625
|
-
[1m[35mPost Load (0.2ms)[0m 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
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1631
|
-
Cache read: Post/1
|
1632
|
-
Cache generate: Post/1
|
1633
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1634
|
-
Cache write: Post/1
|
1635
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1636
|
-
[1m[35mSQL (30.0ms)[0m 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
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1638
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1639
|
-
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
1640
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fa374a0f428>
|
1641
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1642
|
-
Cache read: Post/1
|
1643
|
-
Cache generate: Post/1
|
1644
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1645
|
-
Cache write: Post/1
|
1646
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1647
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1648
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1650
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1651
|
-
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1652
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fa374b8bbf8>
|
1653
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1654
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1655
|
-
[1m[35mSQL (0.6ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1657
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1658
|
-
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1659
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fa374bd1d60>
|
1660
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1661
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1662
|
-
[1m[35mSQL (0.3ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1664
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1665
|
-
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
1666
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fa373560298>
|
1667
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1668
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1669
|
-
[1m[35mSQL (0.3ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1671
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1672
|
-
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
1673
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fa374976e80>
|
1674
|
-
[1m[35mComment Load (0.3ms)[0m 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
|
-
[1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (127, 128, 129, 130) ORDER BY id ASC[0m
|
1677
|
-
Cache write: Comment/127
|
1678
|
-
Cache write: Comment/128
|
1679
|
-
Cache write: Comment/129
|
1680
|
-
Cache write: Comment/130
|
1681
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1682
|
-
Cache read: Post/1
|
1683
|
-
Cache generate: Post/1
|
1684
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1685
|
-
Cache write: Post/1
|
1686
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1687
|
-
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1688
|
-
undefined local variable or method `primary_key' for #<Post:0x007fa373755378>
|
1689
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1690
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1691
|
-
Cache read: User/1
|
1692
|
-
Cache generate: User/1
|
1693
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1694
|
-
Cache write: User/1
|
1695
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1696
|
-
[1m[35mSQL (0.5ms)[0m 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
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 29 LIMIT 1
|
1699
|
-
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1700
|
-
undefined local variable or method `primary_key' for #<User:0x007fa373499c60>
|
1701
|
-
undefined local variable or method `primary_key' for #<Post:0x007fa3733fa6b0>
|
1702
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1
|
1703
|
-
Cache read: User/29
|
1704
|
-
Cache generate: User/29
|
1705
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1[0m
|
1706
|
-
Cache write: User/29
|
1707
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
1708
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
1709
|
-
Connecting to database specified by database.yml
|
1710
|
-
Dalli::Server#connect localhost:11211
|
1711
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1712
|
-
Cache read: Post/1
|
1713
|
-
Cache generate: Post/1
|
1714
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1715
|
-
Cache write: Post/1
|
1716
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1717
|
-
[1m[35mSQL (30.1ms)[0m 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
|
-
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1719
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1720
|
-
[1m[36m (3.7ms)[0m [1mcommit transaction[0m
|
1721
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fc9daadef98>
|
1722
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1723
|
-
Cache read: Post/1
|
1724
|
-
Cache generate: Post/1
|
1725
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1726
|
-
Cache write: Post/1
|
1727
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1728
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1729
|
-
[1m[35mSQL (0.5ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1731
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1732
|
-
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1733
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fc9db3cae18>
|
1734
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1735
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1736
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1738
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1739
|
-
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
1740
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fc9db3b1288>
|
1741
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1742
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1743
|
-
[1m[35mSQL (0.3ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1745
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1746
|
-
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
1747
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fc9dac2be78>
|
1748
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1749
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1750
|
-
[1m[35mSQL (0.4ms)[0m 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
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1752
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1753
|
-
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1754
|
-
undefined local variable or method `primary_key' for #<Comment:0x007fc9db4b34b0>
|
1755
|
-
[1m[35mComment Load (0.3ms)[0m 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
|
-
[1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (132, 133, 134, 135) ORDER BY id ASC[0m
|
1758
|
-
Cache write: Comment/132
|
1759
|
-
Cache write: Comment/133
|
1760
|
-
Cache write: Comment/134
|
1761
|
-
Cache write: Comment/135
|
1762
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1763
|
-
Cache read: Post/1
|
1764
|
-
Cache generate: Post/1
|
1765
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1766
|
-
Cache write: Post/1
|
1767
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1768
|
-
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
1769
|
-
undefined local variable or method `primary_key' for #<Post:0x007fc9db46cb00>
|
1770
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1771
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1772
|
-
Cache read: User/1
|
1773
|
-
Cache generate: User/1
|
1774
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1775
|
-
Cache write: User/1
|
1776
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1777
|
-
[1m[35mSQL (0.6ms)[0m 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
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
-
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 30 LIMIT 1
|
1780
|
-
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
1781
|
-
undefined local variable or method `primary_key' for #<User:0x007fc9daa4f618>
|
1782
|
-
undefined local variable or method `primary_key' for #<Post:0x007fc9daaf4f00>
|
1783
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1
|
1784
|
-
Cache read: User/30
|
1785
|
-
Cache generate: User/30
|
1786
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1[0m
|
1787
|
-
Cache write: User/30
|
1788
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
1789
|
-
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
1790
|
-
Cache read: Post/user_id-1
|
1791
|
-
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
1792
|
-
Cache write: Post/user_id-1
|
1793
|
-
Cache write: Post/1
|