find_cache 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGE-LOG +8 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +80 -0
- data/Rakefile +38 -0
- data/lib/find_cache.rb +5 -0
- data/lib/find_cache/cacheable.rb +88 -0
- data/lib/find_cache/init.rb +1 -0
- data/lib/find_cache/key_gen.rb +27 -0
- data/lib/find_cache/version.rb +3 -0
- data/lib/tasks/find_cache_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/comment.rb +6 -0
- data/test/dummy/app/models/post.rb +7 -0
- data/test/dummy/app/models/user.rb +13 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +39 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/counter_cache_patch.rb +19 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20120824210455_create_users.rb +10 -0
- data/test/dummy/db/migrate/20120824210731_create_comments.rb +11 -0
- data/test/dummy/db/migrate/20120824210927_create_posts.rb +13 -0
- data/test/dummy/db/schema.rb +43 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +498 -0
- data/test/dummy/log/test.log +224 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/comments.yml +9 -0
- data/test/dummy/test/fixtures/posts.yml +13 -0
- data/test/dummy/test/fixtures/users.yml +9 -0
- data/test/dummy/test/unit/comment_test.rb +7 -0
- data/test/dummy/test/unit/post_test.rb +7 -0
- data/test/dummy/test/unit/user_test.rb +7 -0
- 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/275/6E0/Post%2F1 +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/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/3D4/D50/Comment%2F12 +0 -0
- data/test/dummy/tmp/cache/3D5/D60/Comment%2F13 +0 -0
- data/test/dummy/tmp/cache/3D6/D70/Comment%2F14 +0 -0
- data/test/dummy/tmp/cache/3D7/D80/Comment%2F15 +0 -0
- data/test/dummy/tmp/cache/58D/B70/Post%2Fuser_id-1 +1 -0
- data/test/find_cache_test.rb +51 -0
- data/test/test_helper.rb +15 -0
- metadata +261 -0
@@ -0,0 +1,58 @@
|
|
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
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20120824210927) do
|
15
|
+
|
16
|
+
create_table "comments", :force => true do |t|
|
17
|
+
t.integer "post_id"
|
18
|
+
t.text "content"
|
19
|
+
t.datetime "created_at", :null => false
|
20
|
+
t.datetime "updated_at", :null => false
|
21
|
+
end
|
22
|
+
|
23
|
+
add_index "comments", ["post_id"], :name => "index_comments_on_post_id"
|
24
|
+
|
25
|
+
create_table "posts", :force => true do |t|
|
26
|
+
t.integer "user_id"
|
27
|
+
t.string "title"
|
28
|
+
t.text "body"
|
29
|
+
t.integer "comments_count"
|
30
|
+
t.datetime "created_at", :null => false
|
31
|
+
t.datetime "updated_at", :null => false
|
32
|
+
end
|
33
|
+
|
34
|
+
add_index "posts", ["user_id"], :name => "index_posts_on_user_id"
|
35
|
+
|
36
|
+
create_table "users", :force => true do |t|
|
37
|
+
t.string "email"
|
38
|
+
t.string "password"
|
39
|
+
t.datetime "created_at", :null => false
|
40
|
+
t.datetime "updated_at", :null => false
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
Binary file
|
@@ -0,0 +1,498 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
4
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
5
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
6
|
+
[1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
8
|
+
Migrating to CreatePosts (20120824142626)
|
9
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
11
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824142626')
|
12
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
13
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
14
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
15
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
16
|
+
Connecting to database specified by database.yml
|
17
|
+
Connecting to database specified by database.yml
|
18
|
+
Connecting to database specified by database.yml
|
19
|
+
Connecting to database specified by database.yml
|
20
|
+
Connecting to database specified by database.yml
|
21
|
+
Connecting to database specified by database.yml
|
22
|
+
Connecting to database specified by database.yml
|
23
|
+
Connecting to database specified by database.yml
|
24
|
+
Connecting to database specified by database.yml
|
25
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
26
|
+
Migrating to CreateUsers (20120824144824)
|
27
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
28
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
29
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "username" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
30
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')[0m
|
31
|
+
[1m[35m (2.8ms)[0m commit transaction
|
32
|
+
Migrating to CreateUserDetails (20120824144920)
|
33
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "user_details" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "age" integer, "location" varchar(255), "bio" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
35
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("user_details")[0m
|
36
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")
|
37
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')[0m
|
38
|
+
[1m[35m (1.9ms)[0m commit transaction
|
39
|
+
[1m[36m (0.4ms)[0m [1mselect sqlite_version(*)[0m
|
40
|
+
[1m[35m (0.2ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
41
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
42
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
43
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_details_on_user_id')[0m
|
44
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
45
|
+
Connecting to database specified by database.yml
|
46
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
47
|
+
[1m[35m (1.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
48
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
49
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
50
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
51
|
+
Migrating to CreateUsers (20120824144824)
|
52
|
+
[1m[35m (0.0ms)[0m begin transaction
|
53
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "username" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
54
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')
|
55
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
56
|
+
Migrating to CreateUserDetails (20120824144920)
|
57
|
+
[1m[35m (0.0ms)[0m begin transaction
|
58
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "user_details" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "age" integer, "location" varchar(255), "bio" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
59
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
60
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")[0m
|
61
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')
|
62
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
63
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
64
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
65
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
66
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_details_on_user_id')[0m
|
67
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
68
|
+
Connecting to database specified by database.yml
|
69
|
+
Connecting to database specified by database.yml
|
70
|
+
Connecting to database specified by database.yml
|
71
|
+
Connecting to database specified by database.yml
|
72
|
+
Connecting to database specified by database.yml
|
73
|
+
Connecting to database specified by database.yml
|
74
|
+
Cache read_multi: ["User/1", "User/2", "User/3"]
|
75
|
+
Dalli::Server#connect 127.0.0.1:11211
|
76
|
+
Cache write: User/1
|
77
|
+
Cache read_multi: ["User/1", "User/2", "User/3"]
|
78
|
+
Cache read_multi: ["User/1", "User/2", "User/3"]
|
79
|
+
Cache read_multi: ["User/1", "User/2", "User/3"]
|
80
|
+
Cache read_multi: ["User/1", "User/2", "User/3"]
|
81
|
+
Connecting to database specified by database.yml
|
82
|
+
Connecting to database specified by database.yml
|
83
|
+
Cache read_multi: ["User/1", "User/2", "User/3"]
|
84
|
+
Dalli::Server#connect localhost:11211
|
85
|
+
Cache read_multi: ["User/1", "User/2", "User/3"]
|
86
|
+
Cache read: asd
|
87
|
+
Cache read: User71
|
88
|
+
Cache read: User/1
|
89
|
+
Connecting to database specified by database.yml
|
90
|
+
Dalli::Server#connect localhost:11211
|
91
|
+
Connecting to database specified by database.yml
|
92
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
93
|
+
[1m[35m (2.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
94
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
95
|
+
[1m[35m (1.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
96
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
97
|
+
Migrating to CreateUsers (20120824144824)
|
98
|
+
[1m[35m (0.0ms)[0m begin transaction
|
99
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "username" varchar(255), "user_details_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
100
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')
|
101
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
102
|
+
Migrating to CreateUserDetails (20120824144920)
|
103
|
+
[1m[35m (0.1ms)[0m begin transaction
|
104
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "user_details" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "age" integer, "location" varchar(255), "bio" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
105
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
106
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")[0m
|
107
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')
|
108
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
109
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
110
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
111
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
112
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_details_on_user_id')[0m
|
113
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
114
|
+
Connecting to database specified by database.yml
|
115
|
+
Dalli::Server#connect localhost:11211
|
116
|
+
Cache read: UserDetail/user_id-1
|
117
|
+
Cache read: User/user_id-1
|
118
|
+
Cache read: User/user_id-1
|
119
|
+
Cache read: User/user_id-1
|
120
|
+
Cache read: User/user_id-1
|
121
|
+
Connecting to database specified by database.yml
|
122
|
+
Cache read: UserDetail/user_id-1
|
123
|
+
Dalli::Server#connect localhost:11211
|
124
|
+
Cache read: UserDetail/user_id-1
|
125
|
+
Cache read: User/
|
126
|
+
Cache generate: User/
|
127
|
+
Cache write: User/
|
128
|
+
Connecting to database specified by database.yml
|
129
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
130
|
+
[1m[35m (2.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
131
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
132
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
133
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
134
|
+
Migrating to CreateUsers (20120824144824)
|
135
|
+
[1m[35m (0.0ms)[0m begin transaction
|
136
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "username" varchar(255), "user_detail_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
137
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')
|
138
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
139
|
+
Migrating to CreateUserDetails (20120824144920)
|
140
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "user_details" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "age" integer, "location" varchar(255), "bio" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
142
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
143
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")[0m
|
144
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')
|
145
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
146
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
147
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
148
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
149
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_details_on_user_id')[0m
|
150
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
151
|
+
Connecting to database specified by database.yml
|
152
|
+
Dalli::Server#connect localhost:11211
|
153
|
+
Cache read: User/1
|
154
|
+
Cache generate: User/1
|
155
|
+
Cache write: User/1
|
156
|
+
Connecting to database specified by database.yml
|
157
|
+
Cache read: User/1
|
158
|
+
Dalli::Server#connect localhost:11211
|
159
|
+
Cache fetch_hit: User/1
|
160
|
+
Connecting to database specified by database.yml
|
161
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
162
|
+
[1m[35m (2.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
163
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
164
|
+
[1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
165
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
166
|
+
Migrating to CreateUsers (20120824144824)
|
167
|
+
[1m[35m (0.0ms)[0m begin transaction
|
168
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "username" varchar(255), "user_details_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
169
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144824')
|
170
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
171
|
+
Migrating to CreateUserDetails (20120824144920)
|
172
|
+
[1m[35m (0.0ms)[0m begin transaction
|
173
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "user_details" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "age" integer, "location" varchar(255), "bio" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
174
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
175
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")[0m
|
176
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824144920')
|
177
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
178
|
+
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
179
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
180
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
181
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_details_on_user_id')[0m
|
182
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
183
|
+
Connecting to database specified by database.yml
|
184
|
+
Dalli::Server#connect localhost:11211
|
185
|
+
Cache read: User/1
|
186
|
+
Cache generate: User/1
|
187
|
+
Cache write: User/1
|
188
|
+
Connecting to database specified by database.yml
|
189
|
+
Cache read: User/1
|
190
|
+
Dalli::Server#connect localhost:11211
|
191
|
+
Cache fetch_hit: User/1
|
192
|
+
SQLite3::SQLException: no such column: true: UPDATE "users" SET "true" = COALESCE("true", 0) + 1 WHERE "users"."id" = 1
|
193
|
+
Connecting to database specified by database.yml
|
194
|
+
Cache read: User/1
|
195
|
+
Dalli::Server#connect localhost:11211
|
196
|
+
Cache fetch_hit: User/1
|
197
|
+
Connecting to database specified by database.yml
|
198
|
+
Dalli::Server#connect localhost:11211
|
199
|
+
Cache read: User/1
|
200
|
+
Cache fetch_hit: User/1
|
201
|
+
Connecting to database specified by database.yml
|
202
|
+
Dalli::Server#connect localhost:11211
|
203
|
+
Cache read: User/1
|
204
|
+
Cache fetch_hit: User/1
|
205
|
+
Connecting to database specified by database.yml
|
206
|
+
Cache read: UserDetail/user_id-1
|
207
|
+
Dalli::Server#connect localhost:11211
|
208
|
+
Cache read: UserDetail/user_id-1
|
209
|
+
Cache read: UserDetail/user_id-1
|
210
|
+
Cache read: UserDetail/user_id-1
|
211
|
+
Cache read: UserDetail/user_id-1
|
212
|
+
Cache read: UserDetail/user_id-1
|
213
|
+
Cache read: UserDetail/user_id-1
|
214
|
+
Cache read: User/4
|
215
|
+
Cache generate: User/4
|
216
|
+
Cache write: User/4
|
217
|
+
Cache read: User/4
|
218
|
+
Cache generate: User/4
|
219
|
+
Cache write: User/4
|
220
|
+
Cache read: User/4
|
221
|
+
Cache generate: User/4
|
222
|
+
Cache write: User/4
|
223
|
+
Cache read: User/1
|
224
|
+
Cache generate: User/1
|
225
|
+
Cache write: User/1
|
226
|
+
Cache read: User/2
|
227
|
+
Cache generate: User/2
|
228
|
+
Cache write: User/2
|
229
|
+
Cache read: User/2
|
230
|
+
Cache generate: User/2
|
231
|
+
Cache write: User/2
|
232
|
+
Cache read: User/2
|
233
|
+
Cache generate: User/2
|
234
|
+
Cache write: User/2
|
235
|
+
Cache read: User/2
|
236
|
+
Cache generate: User/2
|
237
|
+
Cache write: User/2
|
238
|
+
Cache read: User/2
|
239
|
+
Cache generate: User/2
|
240
|
+
Cache write: User/2
|
241
|
+
Connecting to database specified by database.yml
|
242
|
+
Dalli::Server#connect localhost:11211
|
243
|
+
Cache read: User/2
|
244
|
+
Cache generate: User/2
|
245
|
+
Cache write: User/2
|
246
|
+
Cache read: User/3
|
247
|
+
Cache generate: User/3
|
248
|
+
Cache write: User/3
|
249
|
+
Cache read: User/4
|
250
|
+
Cache generate: User/4
|
251
|
+
Cache write: User/4
|
252
|
+
Cache read: UserDetail/user_id-1
|
253
|
+
Cache write: UserDetail/user_id-1
|
254
|
+
Cache write: UserDetail/3
|
255
|
+
Cache read: User/3
|
256
|
+
Cache generate: User/3
|
257
|
+
Cache write: User/3
|
258
|
+
Cache read: User/4
|
259
|
+
Cache generate: User/4
|
260
|
+
Cache write: User/4
|
261
|
+
Connecting to database specified by database.yml
|
262
|
+
Cache read: UserDetail/user_id-1
|
263
|
+
Dalli::Server#connect localhost:11211
|
264
|
+
Cache read: UserDetail/3
|
265
|
+
Cache generate: UserDetail/3
|
266
|
+
Cache write: UserDetail/3
|
267
|
+
Cache read: User/5
|
268
|
+
Cache generate: User/5
|
269
|
+
Cache write: User/5
|
270
|
+
Cache read: User/6
|
271
|
+
Cache generate: User/6
|
272
|
+
Cache write: User/6
|
273
|
+
Cache read: UserDetail/user_id-2
|
274
|
+
Cache write: UserDetail/user_id-2
|
275
|
+
Cache write: UserDetail/6
|
276
|
+
Cache read: User/6
|
277
|
+
Cache generate: User/6
|
278
|
+
Cache write: User/6
|
279
|
+
Connecting to database specified by database.yml
|
280
|
+
Dalli::Server#connect localhost:11211
|
281
|
+
Cache read: User/5
|
282
|
+
Cache generate: User/5
|
283
|
+
Cache write: User/5
|
284
|
+
Cache read: UserDetail/user_id-1
|
285
|
+
Cache read: UserDetail/3
|
286
|
+
Cache generate: UserDetail/3
|
287
|
+
Cache write: UserDetail/3
|
288
|
+
Cache read: User/7
|
289
|
+
Cache generate: User/7
|
290
|
+
Cache write: User/7
|
291
|
+
Connecting to database specified by database.yml
|
292
|
+
Connecting to database specified by database.yml
|
293
|
+
Connecting to database specified by database.yml
|
294
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
295
|
+
Migrating to CreateUsers (20120824144824)
|
296
|
+
Migrating to CreateUserDetails (20120824144920)
|
297
|
+
Migrating to CreatePosts (20120824174737)
|
298
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
299
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
300
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "body" text, "comments_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
301
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120824174737')[0m
|
302
|
+
[1m[35m (2.5ms)[0m commit transaction
|
303
|
+
Migrating to CreateComments (20120824174752)
|
304
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
305
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
306
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("comments")[0m
|
307
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
|
308
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120824174752')[0m
|
309
|
+
[1m[35m (2.2ms)[0m commit transaction
|
310
|
+
[1m[36m (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
311
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
312
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("comments")[0m
|
313
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_comments_on_post_id')
|
314
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
315
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
316
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_details_on_user_id')[0m
|
317
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
318
|
+
Connecting to database specified by database.yml
|
319
|
+
Dalli::Server#connect localhost:11211
|
320
|
+
Cache read: Post/1
|
321
|
+
Cache generate: Post/1
|
322
|
+
Cache write: Post/1
|
323
|
+
Connecting to database specified by database.yml
|
324
|
+
Connecting to database specified by database.yml
|
325
|
+
Dalli::Server#connect localhost:11211
|
326
|
+
Connecting to database specified by database.yml
|
327
|
+
Dalli::Server#connect localhost:11211
|
328
|
+
Cache read: Post/1
|
329
|
+
Cache generate: Post/1
|
330
|
+
Cache write: Post/1
|
331
|
+
Cache read: Comment/1
|
332
|
+
Cache generate: Comment/1
|
333
|
+
Cache write: Comment/1
|
334
|
+
Cache read: Comment/2
|
335
|
+
Cache generate: Comment/2
|
336
|
+
Cache write: Comment/2
|
337
|
+
Cache read: Comment/[1, 2, 3]
|
338
|
+
Cache generate: Comment/[1, 2, 3]
|
339
|
+
Cache write: Comment/[1, 2, 3]
|
340
|
+
Cache read_multi: ["Comment/1", "Comment/2", "Comment/3"]
|
341
|
+
Cache write: Comment/3
|
342
|
+
Cache read: Post/1
|
343
|
+
Cache generate: Post/1
|
344
|
+
Cache write: Post/1
|
345
|
+
Connecting to database specified by database.yml
|
346
|
+
Cache read: Post/1
|
347
|
+
Dalli::Server#connect localhost:11211
|
348
|
+
Cache generate: Post/1
|
349
|
+
Cache write: Post/1
|
350
|
+
Connecting to database specified by database.yml
|
351
|
+
Cache read: Post/1
|
352
|
+
Dalli::Server#connect localhost:11211
|
353
|
+
Cache fetch_hit: Post/1
|
354
|
+
Cache read: Post/1
|
355
|
+
Cache generate: Post/1
|
356
|
+
Cache write: Post/1
|
357
|
+
Connecting to database specified by database.yml
|
358
|
+
Cache read: Post/1
|
359
|
+
Dalli::Server#connect localhost:11211
|
360
|
+
Cache fetch_hit: Post/1
|
361
|
+
Cache read: Post/1
|
362
|
+
Cache generate: Post/1
|
363
|
+
Cache write: Post/1
|
364
|
+
Cache read: Comment/post_id-1
|
365
|
+
Cache write: Comment/post_id-1
|
366
|
+
Cache write: Comment/1
|
367
|
+
Cache read: Comment/post_id-1
|
368
|
+
Cache read: Comment/1
|
369
|
+
Cache fetch_hit: Comment/1
|
370
|
+
Cache read: Comment/post_id-1
|
371
|
+
Connecting to database specified by database.yml
|
372
|
+
Connecting to database specified by database.yml
|
373
|
+
Connecting to database specified by database.yml
|
374
|
+
Connecting to database specified by database.yml
|
375
|
+
Connecting to database specified by database.yml
|
376
|
+
Connecting to database specified by database.yml
|
377
|
+
Connecting to database specified by database.yml
|
378
|
+
Connecting to database specified by database.yml
|
379
|
+
Connecting to database specified by database.yml
|
380
|
+
Connecting to database specified by database.yml
|
381
|
+
Connecting to database specified by database.yml
|
382
|
+
Connecting to database specified by database.yml
|
383
|
+
Connecting to database specified by database.yml
|
384
|
+
Connecting to database specified by database.yml
|
385
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
386
|
+
[1m[35m (2.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
387
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
388
|
+
[1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
389
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
390
|
+
Migrating to CreateUsers (20120824210455)
|
391
|
+
[1m[35m (0.0ms)[0m begin transaction
|
392
|
+
[1m[36m (0.6ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "password" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
393
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210455')
|
394
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
395
|
+
Migrating to CreateUserDetails (20120824210529)
|
396
|
+
[1m[35m (0.0ms)[0m begin transaction
|
397
|
+
[1m[36m (0.6ms)[0m [1mCREATE TABLE "user_details" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "name" varchar(255), "age" integer, "sex" varchar(255), "location" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
398
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_details")
|
399
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_user_details_on_user_id" ON "user_details" ("user_id")[0m
|
400
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210529')
|
401
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
402
|
+
Migrating to CreatePosts (20120824210653)
|
403
|
+
[1m[35m (0.0ms)[0m begin transaction
|
404
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "comments_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
405
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210653')
|
406
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
407
|
+
Migrating to CreateComments (20120824210731)
|
408
|
+
[1m[35m (0.0ms)[0m begin transaction
|
409
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
410
|
+
[1m[35m (0.1ms)[0m PRAGMA index_list("comments")
|
411
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
412
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210731')
|
413
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
414
|
+
[1m[35m (0.5ms)[0m select sqlite_version(*)
|
415
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
416
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("comments")
|
417
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_comments_on_post_id')[0m
|
418
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
419
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("user_details")[0m
|
420
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_user_details_on_user_id')
|
421
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
422
|
+
Connecting to database specified by database.yml
|
423
|
+
Connecting to database specified by database.yml
|
424
|
+
Connecting to database specified by database.yml
|
425
|
+
Connecting to database specified by database.yml
|
426
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
427
|
+
[1m[35m (2.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
428
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
429
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
430
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
431
|
+
Migrating to CreateUsers (20120824210455)
|
432
|
+
[1m[35m (0.0ms)[0m begin transaction
|
433
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "password" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
434
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210455')
|
435
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
436
|
+
Migrating to CreateComments (20120824210731)
|
437
|
+
[1m[35m (0.0ms)[0m begin transaction
|
438
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
439
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("comments")
|
440
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
441
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210731')
|
442
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
443
|
+
Migrating to CreatePosts (20120824210927)
|
444
|
+
[1m[35m (0.1ms)[0m begin transaction
|
445
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "title" varchar(255), "body" text, "comments_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
446
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
447
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")[0m
|
448
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120824210927')
|
449
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
450
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
451
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
452
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("comments")
|
453
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_comments_on_post_id')[0m
|
454
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
455
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_posts_on_user_id')[0m
|
456
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
457
|
+
Connecting to database specified by database.yml
|
458
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
459
|
+
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
460
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
461
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("comments")
|
462
|
+
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
463
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "title" varchar(255), "body" text, "comments_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
464
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
465
|
+
[1m[35m (1.8ms)[0m CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
|
466
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "password" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
467
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
468
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
469
|
+
[1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
470
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
471
|
+
[1m[35m (2.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120824210927')
|
472
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120824210455')[0m
|
473
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120824210731')
|
474
|
+
Connecting to database specified by database.yml
|
475
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
476
|
+
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
477
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
478
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("comments")
|
479
|
+
[1m[36m (1.6ms)[0m [1mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
480
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "title" varchar(255), "body" text, "comments_count" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
481
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
482
|
+
[1m[35m (1.4ms)[0m CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
|
483
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "password" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
484
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
485
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
486
|
+
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
487
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
488
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120824210927')
|
489
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120824210455')[0m
|
490
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120824210731')
|
491
|
+
Connecting to database specified by database.yml
|
492
|
+
Dalli::Server#connect localhost:11211
|
493
|
+
Cache read: User/1
|
494
|
+
Cache generate: User/1
|
495
|
+
Cache write: User/1
|
496
|
+
Cache read: Post/user_id-1
|
497
|
+
Cache write: Post/user_id-1
|
498
|
+
Cache write: Post/1
|