test/dummy/log/development.log in query_report-1.0.1 vs test/dummy/log/development.log in query_report-1.0.2

- old
+ new

@@ -31504,5 +31504,3853 @@ Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.5ms) Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) LIMIT 25 OFFSET 0  (0.1ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-03-29 00:00:00.000000' AND "invoices"."created_at" <= '2013-09-29 00:00:00.000000')) Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (46.6ms) Completed 200 OK in 61ms (Views: 50.4ms | ActiveRecord: 0.6ms) +Connecting to database specified by database.yml + + +Started GET "/invoices" for 127.0.0.1 at 2013-09-03 09:37:20 +0600 +Processing by InvoicesController#index as HTML +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (7.4ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (2.2ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (3.9ms) + Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (74.7ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (126.9ms) +Completed 200 OK in 496ms (Views: 306.3ms | ActiveRecord: 37.5ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-03 09:37:21 +0600 +Served asset /application.css - 200 OK (7ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-03 09:37:21 +0600 +Served asset /invoices.css - 200 OK (17ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-03 09:37:21 +0600 +Served asset /scaffold.css - 200 OK (2ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-03 09:37:21 +0600 +Served asset /jquery.js - 200 OK (10ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-03 09:37:21 +0600 +Served asset /invoices.js - 200 OK (1ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-03 09:37:21 +0600 +Served asset /jquery_ujs.js - 200 OK (2ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-03 09:37:21 +0600 +Served asset /users.css - 200 OK (2ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-03 09:37:21 +0600 +Served asset /users.js - 200 OK (3ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-03 09:37:21 +0600 +Served asset /application.js - 200 OK (8ms) +Connecting to database specified by database.yml +  (3.3ms) select sqlite_version(*) +  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  +  (0.1ms) begin transaction + SQL (44.8ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Tue, 03 Sep 2013 03:38:43 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Tue, 03 Sep 2013 03:38:43 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:38:43 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:38:43 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:38:43 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:38:43 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:38:43 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:38:43 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:38:43 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:38:43 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:38:43 UTC +00:00]] +  (0.1ms) commit transaction +  (0.2ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.3ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:38:47 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:38:47 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:38:47 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.3ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:38:47 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:38:47 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:38:47 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.3ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:38:47 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:38:47 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:38:47 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:38:47 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:38:47 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:38:47 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:38:47 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:38:47 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:38:47 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:38:47 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:38:47 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:38:47 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:38:47 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 34 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 +Connecting to database specified by database.yml + + +Started GET "/invoices" for 127.0.0.1 at 2013-09-03 09:39:42 +0600 +Processing by InvoicesController#index as HTML +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (7.4ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (2.1ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (3.9ms) + Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (75.0ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (132.8ms) +Completed 200 OK in 394ms (Views: 204.6ms | ActiveRecord: 37.7ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-03 09:39:43 +0600 +Served asset /application.css - 200 OK (32ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-03 09:39:43 +0600 +Served asset /users.css - 200 OK (2ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-03 09:39:43 +0600 +Served asset /jquery.js - 200 OK (9ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-03 09:39:43 +0600 +Served asset /scaffold.css - 200 OK (3ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-03 09:39:43 +0600 +Served asset /jquery_ujs.js - 200 OK (3ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-03 09:39:43 +0600 +Served asset /invoices.css - 200 OK (2ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-03 09:39:43 +0600 +Served asset /invoices.js - 200 OK (3ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-03 09:39:43 +0600 +Served asset /users.js - 200 OK (2ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-03 09:39:43 +0600 +Served asset /application.js - 200 OK (10ms) + + +Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=another&q%5Bcreated_at_gteq%5D=2013-04-03&q%5Bcreated_at_lteq%5D=2013-10-03&q%5Bpaid_eq%5D=&commit=Search" for 127.0.0.1 at 2013-09-03 09:39:47 +0600 +Processing by InvoicesController#index as HTML + Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"another", "created_at_gteq"=>"2013-04-03", "created_at_lteq"=>"2013-10-03", "paid_eq"=>""}, "commit"=>"Search"} +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (1.4ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.4ms) + Invoice Load (0.3ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (15.4ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (34.4ms) +Completed 200 OK in 72ms (Views: 44.4ms | ActiveRecord: 1.4ms) + + +Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-04-03&q%5Bcreated_at_lteq%5D=2013-10-03&q%5Bpaid_eq%5D=&commit=Search" for 127.0.0.1 at 2013-09-03 09:39:51 +0600 +Processing by InvoicesController#index as HTML + Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-04-03", "created_at_lteq"=>"2013-10-03", "paid_eq"=>""}, "commit"=>"Search"} +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (3.0ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (1.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.4ms) + Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (29.8ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (67.1ms) +Completed 200 OK in 141ms (Views: 116.1ms | ActiveRecord: 1.5ms) + + +Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-04-03&q%5Bcreated_at_lteq%5D=2013-10-03&q%5Bpaid_eq%5D=false&commit=Search" for 127.0.0.1 at 2013-09-03 09:39:55 +0600 +Processing by InvoicesController#index as HTML + Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-04-03", "created_at_lteq"=>"2013-10-03", "paid_eq"=>"false"}, "commit"=>"Search"} +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (1.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.3ms) + Invoice Load (0.3ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (13.6ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (31.5ms) +Completed 200 OK in 63ms (Views: 40.5ms | ActiveRecord: 1.3ms) +Connecting to database specified by database.yml +  (3.1ms) select sqlite_version(*) +  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  +  (0.1ms) begin transaction + SQL (10.0ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Tue, 03 Sep 2013 03:44:51 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Tue, 03 Sep 2013 03:44:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:44:51 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:44:51 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:44:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:44:51 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:44:51 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:44:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:44:51 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:44:51 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:44:51 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:44:52 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:44:52 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:44:52 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:44:52 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:44:52 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:44:52 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:44:52 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:44:52 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:44:52 UTC +00:00]] +  (0.0ms) commit transaction +  (0.2ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:44:55 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:44:55 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:44:55 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" + User Load (0.3ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:44:55 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:44:55 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:44:55 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 34 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:44:55 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:44:55 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:44:55 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:44:55 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:44:55 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:44:55 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:44:55 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:44:55 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:44:55 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:44:55 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 +Connecting to database specified by database.yml + + +Started GET "/" for 127.0.0.1 at 2013-09-03 09:45:12 +0600 +Processing by InvoicesController#index as HTML +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (7.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (2.2ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (4.0ms) + Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (48.9ms) +  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (90.0ms) +Completed 200 OK in 336ms (Views: 145.1ms | ActiveRecord: 6.2ms) + + +Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-04-03&q%5Bcreated_at_lteq%5D=2013-10-03&q%5Bpaid_eq%5D=false&commit=Search" for 127.0.0.1 at 2013-09-03 09:45:16 +0600 +Processing by InvoicesController#index as HTML + Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-04-03", "created_at_lteq"=>"2013-10-03", "paid_eq"=>"false"}, "commit"=>"Search"} +  (0.3ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (1.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.3ms) + Invoice Load (0.3ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (15.1ms) +  (0.4ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (33.6ms) +Completed 200 OK in 105ms (Views: 80.9ms | ActiveRecord: 1.3ms) + + +Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-04-03&q%5Bcreated_at_lteq%5D=2013-10-03&q%5Bpaid_eq%5D=&commit=Search" for 127.0.0.1 at 2013-09-03 09:45:19 +0600 +Processing by InvoicesController#index as HTML + Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-04-03", "created_at_lteq"=>"2013-10-03", "paid_eq"=>""}, "commit"=>"Search"} +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (1.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.3ms) + Invoice Load (0.4ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (25.6ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (59.4ms) +Completed 200 OK in 90ms (Views: 68.4ms | ActiveRecord: 1.4ms) + + +Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=another&q%5Bcreated_at_gteq%5D=2013-04-03&q%5Bcreated_at_lteq%5D=2013-10-03&q%5Bpaid_eq%5D=&commit=Search" for 127.0.0.1 at 2013-09-03 09:45:22 +0600 +Processing by InvoicesController#index as HTML + Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"another", "created_at_gteq"=>"2013-04-03", "created_at_lteq"=>"2013-10-03", "paid_eq"=>""}, "commit"=>"Search"} +  (0.3ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (1.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.3ms) + Invoice Load (0.4ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (15.0ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."title" LIKE '%another%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (33.8ms) +Completed 200 OK in 67ms (Views: 43.8ms | ActiveRecord: 1.3ms) + + +Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-04-03&q%5Bcreated_at_lteq%5D=2013-10-03&q%5Bpaid_eq%5D=&commit=Search" for 127.0.0.1 at 2013-09-03 09:45:26 +0600 +Processing by InvoicesController#index as HTML + Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-04-03", "created_at_lteq"=>"2013-10-03", "paid_eq"=>""}, "commit"=>"Search"} +  (2.9ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (1.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.3ms) + Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (26.1ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (60.1ms) +Completed 200 OK in 134ms (Views: 69.2ms | ActiveRecord: 4.0ms) + + +Started GET "/?commit=Search&q%5Bcreated_at_gteq%5D=2013-04-03&q%5Bcreated_at_lteq%5D=2013-10-03&q%5Bpaid_eq%5D=&q%5Bs%5D=title+asc&q%5Btitle_cont%5D=&utf8=%E2%9C%93" for 127.0.0.1 at 2013-09-03 09:45:30 +0600 +Processing by InvoicesController#index as HTML + Parameters: {"commit"=>"Search", "q"=>{"created_at_gteq"=>"2013-04-03", "created_at_lteq"=>"2013-10-03", "paid_eq"=>"", "s"=>"title asc", "title_cont"=>""}, "utf8"=>"✓"} +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (1.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.3ms) + Invoice Load (1.0ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) ORDER BY "invoices"."title" ASC LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (26.2ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (60.2ms) +Completed 200 OK in 91ms (Views: 68.6ms | ActiveRecord: 1.9ms) + + +Started GET "/" for 127.0.0.1 at 2013-09-03 09:47:37 +0600 +Processing by InvoicesController#index as HTML +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.4ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (1.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (1.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.3ms) + Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (37.8ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (67.6ms) +Completed 200 OK in 101ms (Views: 76.6ms | ActiveRecord: 2.2ms) + + +Started GET "/" for 127.0.0.1 at 2013-09-03 09:49:48 +0600 +Processing by InvoicesController#index as HTML +  (2.3ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (3.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (1.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (1.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.4ms) + Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (25.6ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (57.1ms) +Completed 200 OK in 128ms (Views: 66.2ms | ActiveRecord: 3.4ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-03 09:49:48 +0600 +Served asset /application.css - 200 OK (20ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-03 09:49:48 +0600 +Served asset /invoices.css - 200 OK (3ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-03 09:49:48 +0600 +Served asset /scaffold.css - 200 OK (2ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-03 09:49:48 +0600 +Served asset /users.css - 200 OK (2ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-03 09:49:48 +0600 +Served asset /jquery.js - 200 OK (8ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-03 09:49:48 +0600 +Served asset /jquery_ujs.js - 200 OK (4ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-03 09:49:48 +0600 +Served asset /invoices.js - 200 OK (2ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-03 09:49:48 +0600 +Served asset /users.js - 200 OK (2ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-03 09:49:48 +0600 +Served asset /application.js - 200 OK (9ms) +Connecting to database specified by database.yml +  (3.1ms) select sqlite_version(*) +  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  +  (0.1ms) begin transaction + SQL (8.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:59:50 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:59:50 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:59:50 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:59:50 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:59:50 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:59:50 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:59:50 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:59:50 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:59:50 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:59:50 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:59:51 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:59:51 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:59:51 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 34 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:59:51 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:59:51 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:59:51 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:59:51 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:59:51 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:59:51 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:59:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.2ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.3ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 03:59:54 UTC +00:00], ["dob", Wed, 03 Sep 2003 03:59:54 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 03:59:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 03:59:54 UTC +00:00], ["dob", Fri, 03 Sep 1993 03:59:54 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 03:59:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 03:59:54 UTC +00:00], ["dob", Mon, 03 Sep 1979 03:59:54 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 03:59:54 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" +Connecting to database specified by database.yml +  (3.1ms) select sqlite_version(*) +  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  +  (0.1ms) begin transaction + SQL (9.8ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:00:42 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:00:42 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:00:42 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:00:42 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:00:42 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:00:42 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:00:42 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:00:42 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:00:42 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:00:42 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:00:42 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:00:42 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:00:43 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 34 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:00:43 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:00:43 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:00:43 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:00:43 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:00:43 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:00:43 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:00:43 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:00:43 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:00:43 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:00:43 UTC +00:00]] +  (0.1ms) commit transaction +  (0.2ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.2ms) SELECT "users".* FROM "users" +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +  (3.1ms) select sqlite_version(*) +  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  +  (0.1ms) begin transaction + SQL (42.6ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Tue, 03 Sep 2013 04:04:40 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Tue, 03 Sep 2013 04:04:40 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:04:41 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:04:41 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:04:41 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:04:41 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:04:41 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:04:41 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:04:41 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:04:41 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:04:41 UTC +00:00]] +  (0.1ms) commit transaction +  (0.2ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:04:44 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:04:44 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:04:44 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:04:44 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:04:44 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:04:44 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.3ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:04:44 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:04:44 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:04:44 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:04:44 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:04:44 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:04:44 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:04:44 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:04:44 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:04:44 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:04:44 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:04:44 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:04:44 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:04:44 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 34 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 +Connecting to database specified by database.yml + + +Started GET "/" for 127.0.0.1 at 2013-09-03 10:04:57 +0600 +Processing by InvoicesController#index as HTML +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (7.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (2.1ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (3.9ms) + Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (42.1ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (127.9ms) +Completed 200 OK in 377ms (Views: 195.5ms | ActiveRecord: 6.2ms) + + +Started GET "/" for 127.0.0.1 at 2013-09-03 10:05:01 +0600 +Processing by InvoicesController#index as HTML +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (2.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (1.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (1.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.3ms) + Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (25.3ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (55.4ms) +Completed 200 OK in 121ms (Views: 103.1ms | ActiveRecord: 1.5ms) +Connecting to database specified by database.yml +  (3.2ms) select sqlite_version(*) +  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  + User Load (2.2ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (38.8ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:06:19 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:06:19 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:06:19 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 34 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:06:19 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:06:19 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:06:19 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:06:19 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:06:19 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:06:19 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:06:19 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:06:19 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:06:19 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 13]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1 + User Load (0.2ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:06:19 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:06:19 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:06:19 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:06:19 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:06:19 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:06:19 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:06:19 UTC +00:00]] +  (0.1ms) commit transaction +  (0.2ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.3ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:06:23 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:06:23 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:06:23 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:06:23 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:06:23 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:06:23 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:06:23 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:06:23 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:06:23 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" +Connecting to database specified by database.yml + + +Started GET "/" for 127.0.0.1 at 2013-09-03 10:07:28 +0600 +Processing by InvoicesController#index as HTML +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (7.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.4ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (2.2ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (4.0ms) + Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (41.7ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (126.6ms) +Completed 200 OK in 387ms (Views: 199.8ms | ActiveRecord: 5.3ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-03 10:07:28 +0600 +Served asset /application.css - 200 OK (25ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-03 10:07:28 +0600 +Served asset /jquery.js - 200 OK (8ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-03 10:07:28 +0600 +Served asset /invoices.css - 200 OK (2ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-03 10:07:28 +0600 +Served asset /scaffold.css - 200 OK (3ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-03 10:07:28 +0600 +Served asset /users.css - 200 OK (2ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-03 10:07:28 +0600 +Served asset /jquery_ujs.js - 200 OK (2ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-03 10:07:28 +0600 +Served asset /invoices.js - 200 OK (2ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-03 10:07:28 +0600 +Served asset /application.js - 200 OK (9ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-03 10:07:28 +0600 +Served asset /users.js - 200 OK (3ms) + + +Started GET "/" for 127.0.0.1 at 2013-09-03 10:08:12 +0600 +Processing by InvoicesController#index as HTML +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (4.8ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (1.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (1.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (2.4ms) + Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (27.1ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (59.9ms) +Completed 200 OK in 87ms (Views: 69.5ms | ActiveRecord: 1.5ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-03 10:08:13 +0600 +Served asset /application.css - 304 Not Modified (8ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-03 10:08:13 +0600 +Served asset /scaffold.css - 304 Not Modified (0ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-03 10:08:13 +0600 +Served asset /invoices.css - 304 Not Modified (0ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-03 10:08:13 +0600 +Served asset /jquery.js - 304 Not Modified (5ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-03 10:08:13 +0600 +Served asset /jquery_ujs.js - 304 Not Modified (0ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-03 10:08:13 +0600 +Served asset /users.css - 304 Not Modified (0ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-03 10:08:13 +0600 +Served asset /invoices.js - 304 Not Modified (0ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-03 10:08:13 +0600 +Served asset /application.js - 304 Not Modified (2ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-03 10:08:13 +0600 +Served asset /users.js - 304 Not Modified (0ms) +Connecting to database specified by database.yml + + +Started GET "/" for 127.0.0.1 at 2013-09-03 10:08:48 +0600 +Processing by InvoicesController#index as HTML +  (0.4ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) +  (0.3ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (9.4ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_chart.html.erb (1.7ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (3.8ms) + Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (40.8ms) +  (0.4ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (131.8ms) +Completed 200 OK in 385ms (Views: 198.2ms | ActiveRecord: 6.5ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-03 10:08:48 +0600 +Served asset /application.css - 304 Not Modified (11ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-03 10:08:48 +0600 +Served asset /jquery_ujs.js - 304 Not Modified (1ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-03 10:08:48 +0600 +Served asset /users.css - 304 Not Modified (3ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-03 10:08:49 +0600 +Served asset /invoices.css - 304 Not Modified (1ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-03 10:08:49 +0600 +Served asset /jquery.js - 304 Not Modified (4ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-03 10:08:49 +0600 +Served asset /scaffold.css - 304 Not Modified (1ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-03 10:08:49 +0600 +Served asset /invoices.js - 304 Not Modified (1ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-03 10:08:49 +0600 +Served asset /users.js - 304 Not Modified (1ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-03 10:08:49 +0600 +Served asset /application.js - 304 Not Modified (5ms) +Connecting to database specified by database.yml + + +Started GET "/" for 127.0.0.1 at 2013-09-03 10:23:19 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (26.0ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (0.9ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.3ms) + Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (5.6ms) +  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (41.9ms) +Completed 200 OK in 153ms (Views: 92.4ms | ActiveRecord: 2.3ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-03 10:23:20 +0600 +Served asset /application.css - 304 Not Modified (11ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-03 10:23:20 +0600 +Served asset /jquery_ujs.js - 304 Not Modified (1ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-03 10:23:20 +0600 +Served asset /scaffold.css - 304 Not Modified (1ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-03 10:23:20 +0600 +Served asset /invoices.css - 304 Not Modified (0ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-03 10:23:20 +0600 +Served asset /jquery.js - 304 Not Modified (5ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-03 10:23:20 +0600 +Served asset /users.css - 304 Not Modified (1ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-03 10:23:20 +0600 +Served asset /invoices.js - 304 Not Modified (0ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-03 10:23:20 +0600 +Served asset /application.js - 304 Not Modified (4ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-03 10:23:20 +0600 +Served asset /users.js - 304 Not Modified (1ms) + + +Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-04-03&q%5Bcreated_at_lteq%5D=2013-10-03&q%5Bpaid_eq%5D=false&commit=Search" for 127.0.0.1 at 2013-09-03 10:23:31 +0600 +Processing by InvoicesController#index as HTML + Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-04-03", "created_at_lteq"=>"2013-10-03", "paid_eq"=>"false"}, "commit"=>"Search"} + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (27.4ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (1.0ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.1ms) + Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (11.6ms) +  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (44.7ms) +Completed 200 OK in 49ms (Views: 48.2ms | ActiveRecord: 0.3ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-03 10:23:31 +0600 +Served asset /application.css - 304 Not Modified (2ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-03 10:23:31 +0600 +Served asset /invoices.css - 304 Not Modified (0ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-03 10:23:31 +0600 +Served asset /scaffold.css - 304 Not Modified (2ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-03 10:23:31 +0600 +Served asset /users.css - 304 Not Modified (0ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-03 10:23:31 +0600 +Served asset /jquery.js - 304 Not Modified (0ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-03 10:23:31 +0600 +Served asset /jquery_ujs.js - 304 Not Modified (0ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-03 10:23:31 +0600 +Served asset /invoices.js - 304 Not Modified (0ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-03 10:23:31 +0600 +Served asset /users.js - 304 Not Modified (0ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-03 10:23:31 +0600 +Served asset /application.js - 304 Not Modified (0ms) + + +Started GET "/" for 127.0.0.1 at 2013-09-03 10:24:21 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (26.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (0.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.0ms) + Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (15.6ms) +  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (54.3ms) +Completed 200 OK in 61ms (Views: 58.2ms | ActiveRecord: 0.8ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-03 10:24:22 +0600 +Served asset /application.css - 304 Not Modified (3ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-03 10:24:22 +0600 +Served asset /jquery_ujs.js - 304 Not Modified (0ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-03 10:24:22 +0600 +Served asset /users.css - 304 Not Modified (0ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-03 10:24:22 +0600 +Served asset /scaffold.css - 304 Not Modified (0ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-03 10:24:22 +0600 +Served asset /invoices.css - 304 Not Modified (0ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-03 10:24:22 +0600 +Served asset /jquery.js - 304 Not Modified (0ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-03 10:24:22 +0600 +Served asset /invoices.js - 304 Not Modified (0ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-03 10:24:22 +0600 +Served asset /users.js - 304 Not Modified (0ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-03 10:24:22 +0600 +Served asset /application.js - 304 Not Modified (0ms) +Connecting to database specified by database.yml +  (1.5ms) select sqlite_version(*) +  (0.2ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  + User Load (1.0ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (22.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:24:58 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:24:58 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:24:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:24:58 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:24:58 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:24:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:24:58 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:24:58 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:24:58 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:24:58 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:24:58 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:24:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:24:58 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:24:58 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:24:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:24:58 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:24:58 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:24:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.0ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:24:59 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:24:59 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:24:59 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 10]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1 + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:24:59 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:24:59 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:24:59 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 34 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:24:59 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:24:59 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:24:59 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-03 00:00:00.000000' AND "users"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:24:59 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:24:59 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:24:59 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Wed, 03 Sep 2003 04:24:59 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Fri, 03 Sep 1993 04:24:59 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00], ["dob", Mon, 03 Sep 1979 04:24:59 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 03 Sep 2013 04:24:59 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + + +Started GET "/" for 127.0.0.1 at 2013-09-03 10:33:50 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (4.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (0.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.0ms) + Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (14.6ms) +  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (29.2ms) +Completed 200 OK in 35ms (Views: 32.9ms | ActiveRecord: 0.7ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-03 10:33:50 +0600 +Served asset /application.css - 304 Not Modified (1ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-03 10:33:50 +0600 +Served asset /jquery_ujs.js - 304 Not Modified (0ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-03 10:33:50 +0600 +Served asset /invoices.css - 304 Not Modified (0ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-03 10:33:50 +0600 +Served asset /scaffold.css - 304 Not Modified (0ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-03 10:33:50 +0600 +Served asset /users.css - 304 Not Modified (0ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-03 10:33:50 +0600 +Served asset /jquery.js - 304 Not Modified (3ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-03 10:33:50 +0600 +Served asset /invoices.js - 304 Not Modified (0ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-03 10:33:50 +0600 +Served asset /users.js - 304 Not Modified (0ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-03 10:33:50 +0600 +Served asset /application.js - 304 Not Modified (0ms) +Connecting to database specified by database.yml + + +Started GET "/" for 127.0.0.1 at 2013-09-03 10:34:20 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (25.4ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (1.1ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.3ms) + Invoice Load (0.3ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (19.2ms) +  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (79.3ms) +Completed 200 OK in 167ms (Views: 109.9ms | ActiveRecord: 2.4ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-03 10:34:20 +0600 +Served asset /application.css - 304 Not Modified (4ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-03 10:34:20 +0600 +Served asset /scaffold.css - 304 Not Modified (1ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-03 10:34:20 +0600 +Served asset /invoices.css - 304 Not Modified (1ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-03 10:34:20 +0600 +Served asset /jquery.js - 304 Not Modified (3ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-03 10:34:20 +0600 +Served asset /users.css - 304 Not Modified (1ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-03 10:34:20 +0600 +Served asset /jquery_ujs.js - 304 Not Modified (1ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-03 10:34:20 +0600 +Served asset /invoices.js - 304 Not Modified (1ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-03 10:34:20 +0600 +Served asset /users.js - 304 Not Modified (1ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-03 10:34:20 +0600 +Served asset /application.js - 304 Not Modified (4ms) + + +Started GET "/" for 127.0.0.1 at 2013-09-03 10:35:16 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (4.8ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (0.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.1ms) + Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (15.9ms) +  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (30.9ms) +Completed 500 Internal Server Error in 37ms + +NoMethodError (undefined method `default' for #<Array:0x007fa6348a4df0>): + app/controllers/invoices_controller.rb:40:in `index' + + + Rendered /usr/local/rvm/gems/ruby-1.9.3-p429/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms) + Rendered /usr/local/rvm/gems/ruby-1.9.3-p429/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.7ms) + Rendered /usr/local/rvm/gems/ruby-1.9.3-p429/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (6.0ms) + + +Started GET "/" for 127.0.0.1 at 2013-09-03 10:35:28 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (4.1ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (0.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.1ms) + Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (14.9ms) +  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-03 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (28.8ms) +Completed 200 OK in 35ms (Views: 32.1ms | ActiveRecord: 0.7ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-03 10:35:28 +0600 +Served asset /application.css - 304 Not Modified (5ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-03 10:35:28 +0600 +Served asset /users.css - 304 Not Modified (0ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-03 10:35:28 +0600 +Served asset /jquery_ujs.js - 304 Not Modified (0ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-03 10:35:28 +0600 +Served asset /invoices.css - 304 Not Modified (0ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-03 10:35:28 +0600 +Served asset /jquery.js - 304 Not Modified (24ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-03 10:35:28 +0600 +Served asset /scaffold.css - 304 Not Modified (0ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-03 10:35:28 +0600 +Served asset /invoices.js - 304 Not Modified (0ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-03 10:35:28 +0600 +Served asset /users.js - 304 Not Modified (0ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-03 10:35:28 +0600 +Served asset /application.js - 304 Not Modified (0ms) +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +  (3.2ms) select sqlite_version(*) +  (0.3ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  + User Load (11.6ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (32.9ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:32:05 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:32:05 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:32:05 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:32:05 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:32:05 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:32:05 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:32:05 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:32:05 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:32:05 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-04 00:00:00.000000' AND "users"."created_at" <= '2013-10-04 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:32:05 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:32:05 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:32:05 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0 +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 13]] +  (0.0ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1 + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:32:05 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:32:05 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:32:05 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:32:05 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:32:06 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:32:06 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:32:06 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:32:06 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:32:06 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:32:06 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:32:06 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:32:06 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:32:06 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:32:08 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:32:08 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:32:08 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:32:08 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:32:08 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:32:08 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:32:08 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:32:08 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:32:08 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" +Connecting to database specified by database.yml + + +Started GET "/invoices" for 127.0.0.1 at 2013-09-04 09:40:01 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (40.8ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (3.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.9ms) + Invoice Load (0.5ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000' AND "invoices"."paid" = 'f')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (14.0ms) +  (0.4ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."title" LIKE '%invoice%' AND "invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (165.5ms) +Completed 200 OK in 505ms (Views: 344.5ms | ActiveRecord: 36.4ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-04 09:40:02 +0600 +Served asset /application.css - 304 Not Modified (14ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-04 09:40:02 +0600 +Served asset /invoices.js - 304 Not Modified (1ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-04 09:40:02 +0600 +Served asset /users.css - 304 Not Modified (1ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-04 09:40:02 +0600 +Served asset /users.js - 304 Not Modified (1ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-04 09:40:02 +0600 +Served asset /scaffold.css - 304 Not Modified (2ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-04 09:40:02 +0600 +Served asset /invoices.css - 304 Not Modified (1ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-04 09:40:02 +0600 +Served asset /application.js - 304 Not Modified (6ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-04 09:40:02 +0600 +Served asset /jquery.js - 200 OK (2ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-04 09:40:02 +0600 +Served asset /jquery_ujs.js - 200 OK (1ms) + + +Started GET "/invoices" for 127.0.0.1 at 2013-09-04 09:40:27 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (7.7ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (0.8ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.1ms) + Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."title" LIKE '%test%' AND "invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000' AND "invoices"."paid" = 'f')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (15.7ms) +  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."title" LIKE '%test%' AND "invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (30.4ms) +Completed 200 OK in 39ms (Views: 35.6ms | ActiveRecord: 0.9ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-04 09:40:27 +0600 +Served asset /application.css - 304 Not Modified (17ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-04 09:40:27 +0600 +Served asset /jquery_ujs.js - 304 Not Modified (0ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-04 09:40:27 +0600 +Served asset /users.css - 304 Not Modified (0ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-04 09:40:27 +0600 +Served asset /jquery.js - 304 Not Modified (9ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-04 09:40:27 +0600 +Served asset /scaffold.css - 304 Not Modified (0ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-04 09:40:27 +0600 +Served asset /invoices.css - 304 Not Modified (0ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-04 09:40:27 +0600 +Served asset /invoices.js - 304 Not Modified (0ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-04 09:40:27 +0600 +Served asset /users.js - 304 Not Modified (0ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-04 09:40:27 +0600 +Served asset /application.js - 304 Not Modified (2ms) + + +Started GET "/invoices" for 127.0.0.1 at 2013-09-04 09:41:23 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (14.9ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (1.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.1ms) + Invoice Load (0.4ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."title" LIKE '%test%' AND "invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (28.6ms) +  (0.4ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."title" LIKE '%test%' AND "invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (56.9ms) +Completed 200 OK in 72ms (Views: 66.5ms | ActiveRecord: 1.6ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-04 09:41:23 +0600 +Served asset /application.css - 200 OK (11ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-04 09:41:23 +0600 +Served asset /scaffold.css - 200 OK (0ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-04 09:41:23 +0600 +Served asset /jquery.js - 200 OK (0ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-04 09:41:23 +0600 +Served asset /users.css - 200 OK (0ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-04 09:41:23 +0600 +Served asset /invoices.css - 200 OK (0ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-04 09:41:23 +0600 +Served asset /jquery_ujs.js - 200 OK (2ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-04 09:41:23 +0600 +Served asset /invoices.js - 200 OK (0ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-04 09:41:23 +0600 +Served asset /users.js - 200 OK (0ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-04 09:41:23 +0600 +Served asset /application.js - 200 OK (1ms) + + +Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=test&q%5Bcreated_at_gteq%5D=2013-04-04&q%5Bcreated_at_lteq%5D=2013-10-04&q%5Bpaid_eq%5D=&commit=Search" for 127.0.0.1 at 2013-09-04 09:41:28 +0600 +Processing by InvoicesController#index as HTML + Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"test", "created_at_gteq"=>"2013-04-04", "created_at_lteq"=>"2013-10-04", "paid_eq"=>""}, "commit"=>"Search"} + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (9.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (1.4ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.1ms) + Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."title" LIKE '%test%' AND "invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (8.2ms) +  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."title" LIKE '%test%' AND "invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (25.2ms) +Completed 200 OK in 32ms (Views: 30.2ms | ActiveRecord: 0.4ms) + + +Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-04-04&q%5Bcreated_at_lteq%5D=2013-10-04&q%5Bpaid_eq%5D=&commit=Search" for 127.0.0.1 at 2013-09-04 09:41:32 +0600 +Processing by InvoicesController#index as HTML + Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-04-04", "created_at_lteq"=>"2013-10-04", "paid_eq"=>""}, "commit"=>"Search"} + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (8.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (1.4ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.1ms) + Invoice Load (0.3ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (15.3ms) +  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (61.9ms) +Completed 200 OK in 68ms (Views: 67.0ms | ActiveRecord: 0.5ms) + + +Started GET "/" for 127.0.0.1 at 2013-09-04 09:41:48 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (6.7ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (0.8ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.1ms) + Invoice Load (0.3ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (19.5ms) +  (0.2ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (39.3ms) +Completed 200 OK in 47ms (Views: 44.0ms | ActiveRecord: 0.9ms) +Connecting to database specified by database.yml +Connecting to database specified by database.yml + + +Started GET "/" for 127.0.0.1 at 2013-09-04 09:45:14 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (16.1ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.8ms) + Invoice Load (0.6ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (85.3ms) +  (0.5ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (202.8ms) +Completed 200 OK in 330ms (Views: 234.6ms | ActiveRecord: 23.0ms) + + +Started GET "/" for 127.0.0.1 at 2013-09-04 09:45:28 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (12.1ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (0.9ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.1ms) + Invoice Load (0.3ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000' AND "invoices"."paid" = 'f')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (20.0ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (45.2ms) +Completed 200 OK in 56ms (Views: 50.8ms | ActiveRecord: 1.5ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-04 09:45:28 +0600 +Served asset /application.css - 200 OK (12ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-04 09:45:28 +0600 +Served asset /scaffold.css - 200 OK (1ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-04 09:45:28 +0600 +Served asset /users.css - 200 OK (3ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-04 09:45:28 +0600 +Served asset /invoices.css - 200 OK (1ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-04 09:45:28 +0600 +Served asset /jquery.js - 200 OK (9ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-04 09:45:28 +0600 +Served asset /jquery_ujs.js - 200 OK (1ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-04 09:45:28 +0600 +Served asset /invoices.js - 200 OK (1ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-04 09:45:28 +0600 +Served asset /application.js - 200 OK (5ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-04 09:45:28 +0600 +Served asset /users.js - 200 OK (1ms) +Connecting to database specified by database.yml +  (34.1ms) select sqlite_version(*) +  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  + User Load (2.2ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (6.6ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:46:55 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:46:55 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:46:55 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:46:55 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:46:55 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:46:55 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:46:55 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:46:55 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:46:55 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:46:55 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:46:55 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:46:55 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:46:55 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:46:55 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:46:55 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users"  + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:46:55 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:46:55 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:46:55 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:46:55 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  + User Load (0.3ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:46:57 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:46:57 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:46:57 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:46:57 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:46:57 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:46:57 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:46:57 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:46:57 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:46:57 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 04 Sep 2013 03:46:58 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 04 Sep 2013 03:46:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 22]] +  (0.0ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 +Connecting to database specified by database.yml +  (34.3ms) select sqlite_version(*) +  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  +  (0.1ms) begin transaction + SQL (44.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:25 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:25 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:25 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:25 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:25 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:25 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:25 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:25 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:25 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users"  + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:25 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:25 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:25 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:25 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:25 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:25 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users"  + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:25 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:25 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:25 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:25 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:27 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:27 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:27 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:27 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:27 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:27 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:27 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:27 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:27 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users"  +Connecting to database specified by database.yml +  (1.6ms) select sqlite_version(*) +  (0.3ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  + User Load (2.2ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (38.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:37 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:37 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:37 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:37 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:37 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:37 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:37 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:37 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:37 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users"  + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:37 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:37 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:37 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:37 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:37 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:37 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users"  + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:37 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:37 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:37 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:37 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  + User Load (0.3ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:47:39 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:47:39 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:47:39 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:47:39 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:47:39 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:47:39 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:47:39 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:47:39 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:47:39 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 04 Sep 2013 03:47:40 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 04 Sep 2013 03:47:40 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 22]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 +Connecting to database specified by database.yml +  (1.6ms) select sqlite_version(*) +  (0.3ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  + User Load (1.2ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (25.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:48:54 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:48:54 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:48:54 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:48:54 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:48:54 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:48:54 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:48:54 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:48:54 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:48:54 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-04 00:00:00.000000' AND "users"."created_at" <= '2013-10-04 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:48:54 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:48:54 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:48:54 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:48:54 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:48:54 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:48:54 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:48:54 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:48:54 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:48:54 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:48:54 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:48:56 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:48:56 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:48:56 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:48:56 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:48:56 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:48:56 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:48:56 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:48:56 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:48:56 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 04 Sep 2013 03:48:57 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 04 Sep 2013 03:48:57 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 22]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 +Connecting to database specified by database.yml +  (3.1ms) select sqlite_version(*) +  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  + User Load (2.2ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (38.6ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:52:48 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:52:48 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:52:48 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:52:48 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:52:48 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:52:48 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:52:48 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:52:48 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:52:48 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:52:49 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:52:49 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:52:49 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:52:49 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:52:49 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:52:49 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:52:49 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:52:49 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:52:49 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.3ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:52:49 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:52:49 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:52:49 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:52:49 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:52:49 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:52:49 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:52:49 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:52:49 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:52:49 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:52:51 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:52:51 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:52:51 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:52:51 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:52:51 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:52:51 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:52:51 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:52:51 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:52:51 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-04 00:00:00.000000' AND "users"."created_at" <= '2013-10-04 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:52:51 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:52:51 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:52:51 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0 +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 04 Sep 2013 03:52:51 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 22]] +  (0.0ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 +Connecting to database specified by database.yml + + +Started GET "/" for 127.0.0.1 at 2013-09-04 09:54:28 +0600 +Connecting to database specified by database.yml +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (32.2ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (1.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.5ms) + Invoice Load (0.6ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000' AND "invoices"."paid" = 'f')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (50.6ms) +  (0.6ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (151.5ms) +Completed 200 OK in 280ms (Views: 203.4ms | ActiveRecord: 3.7ms) +  (1.8ms) select sqlite_version(*) +  (0.3ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  + User Load (1.5ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (24.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:54:29 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:54:29 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:54:29 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:54:29 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:54:29 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:54:29 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:54:29 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:54:29 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:54:29 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:54:29 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:54:29 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:54:29 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:54:29 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:54:29 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:54:29 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:54:29 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:54:29 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:54:29 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.3ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:54:31 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:54:31 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:54:31 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:54:31 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:54:31 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:54:31 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:54:31 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:54:31 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:54:31 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.3ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:54:32 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:54:32 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:54:32 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:54:32 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:54:32 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:54:32 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:54:32 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:54:32 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:54:32 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-04 00:00:00.000000' AND "users"."created_at" <= '2013-10-04 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00], ["dob", Thu, 04 Sep 2003 03:54:32 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00], ["dob", Sat, 04 Sep 1993 03:54:32 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00], ["dob", Tue, 04 Sep 1979 03:54:32 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0 +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 04 Sep 2013 03:54:32 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 22]] +  (0.1ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 + + +Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-04-04&q%5Bcreated_at_lteq%5D=2013-10-05&q%5Bpaid_eq%5D=false&commit=Search" for 127.0.0.1 at 2013-09-04 09:54:35 +0600 +Processing by InvoicesController#index as HTML + Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-04-04", "created_at_lteq"=>"2013-10-05", "paid_eq"=>"false"}, "commit"=>"Search"} + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (15.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (2.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.1ms) + Invoice Load (0.6ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-05 00:00:00.000000' AND "invoices"."paid" = 'f')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (26.9ms) +  (0.5ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-05 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (70.9ms) +Completed 200 OK in 102ms (Views: 99.8ms | ActiveRecord: 1.0ms) + + +Started GET "/?utf8=%E2%9C%93&q%5Btitle_cont%5D=&q%5Bcreated_at_gteq%5D=2013-09-01&q%5Bcreated_at_lteq%5D=2013-10-05&q%5Bpaid_eq%5D=false&commit=Search" for 127.0.0.1 at 2013-09-04 09:54:47 +0600 +Processing by InvoicesController#index as HTML + Parameters: {"utf8"=>"✓", "q"=>{"title_cont"=>"", "created_at_gteq"=>"2013-09-01", "created_at_lteq"=>"2013-10-05", "paid_eq"=>"false"}, "commit"=>"Search"} + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (7.5ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (1.3ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.1ms) + Invoice Load (0.3ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-09-01 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-05 00:00:00.000000' AND "invoices"."paid" = 'f')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (13.9ms) +  (0.3ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-09-01 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-05 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (35.8ms) +Completed 200 OK in 42ms (Views: 40.3ms | ActiveRecord: 0.6ms) +Connecting to database specified by database.yml +  (0.2ms) select sqlite_version(*) +  (232.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) +  (125.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +Migrating to CreateUsers (20130622120853) +  (0.0ms) begin transaction +  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130622120853') +  (168.7ms) commit transaction +Migrating to CreateInvoices (20130630132513) +  (0.1ms) begin transaction +  (0.3ms) CREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "total_paid" float, "total_charged" float, "paid" boolean, "received_by" integer, "invoiced_on" date, "paid_on" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130630132513') +  (162.6ms) commit transaction +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +  (0.1ms) select sqlite_version(*) +  (191.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) +  (156.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +Migrating to CreateUsers (20130622120853) +  (0.0ms) begin transaction +  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130622120853') +  (164.2ms) commit transaction +Migrating to CreateInvoices (20130630132513) +  (0.1ms) begin transaction +  (0.3ms) CREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "total_paid" float, "total_charged" float, "paid" boolean, "received_by_id" integer, "invoiced_on" date, "paid_on" date, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130630132513') +  (179.5ms) commit transaction +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Connecting to database specified by database.yml +IRB::Abort: abort then interrupt!: commit transaction +SQLite3::SQLException: cannot rollback - no transaction is active: rollback transaction +Connecting to database specified by database.yml + + +Started GET "/" for 127.0.0.1 at 2013-09-04 10:01:15 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (11.7ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (1.2ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.4ms) + Invoice Load (0.4ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000' AND "invoices"."paid" = 'f')) LIMIT 25 OFFSET 0 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (48.2ms) +  (0.6ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (113.9ms) +Completed 200 OK in 237ms (Views: 144.8ms | ActiveRecord: 21.9ms) + + +Started GET "/" for 127.0.0.1 at 2013-09-04 10:01:41 +0600 +Processing by InvoicesController#index as HTML + Rendered /home/jitu/projects/query_report/app/views/query_report/_search.html.erb (12.7ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_links.html.erb (1.6ms) + Rendered /home/jitu/projects/query_report/app/views/query_report/_charts.html.erb (0.1ms) + Invoice Load (0.6ms) SELECT "invoices".* FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000' AND "invoices"."paid" = 'f')) LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1 + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + Rendered /home/jitu/projects/query_report/app/views/query_report/_records.html.erb (159.8ms) +  (1.0ms) SELECT COUNT(*) FROM "invoices" WHERE (("invoices"."created_at" >= '2013-04-04 00:00:00.000000' AND "invoices"."created_at" <= '2013-10-04 00:00:00.000000' AND "invoices"."paid" = 'f')) + Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (199.7ms) +Completed 200 OK in 214ms (Views: 206.5ms | ActiveRecord: 3.6ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-09-04 10:01:42 +0600 +Served asset /application.css - 200 OK (18ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-09-04 10:01:42 +0600 +Served asset /users.css - 200 OK (44ms) + + +Started GET "/assets/invoices.css?body=1" for 127.0.0.1 at 2013-09-04 10:01:42 +0600 +Served asset /invoices.css - 200 OK (2ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-09-04 10:01:42 +0600 +Served asset /jquery.js - 200 OK (8ms) + + +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-09-04 10:01:42 +0600 +Served asset /scaffold.css - 200 OK (6ms) + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-09-04 10:01:42 +0600 +Served asset /jquery_ujs.js - 200 OK (3ms) + + +Started GET "/assets/invoices.js?body=1" for 127.0.0.1 at 2013-09-04 10:01:42 +0600 +Served asset /invoices.js - 200 OK (1ms) + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-09-04 10:01:42 +0600 +Served asset /users.js - 200 OK (2ms) + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-09-04 10:01:42 +0600 +Served asset /application.js - 200 OK (10ms) +Connecting to database specified by database.yml +  (3.2ms) select sqlite_version(*) +  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.3ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.3ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  + User Load (21.8ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (3.8ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:02:12 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:02:12 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:02:12 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:02:12 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:02:12 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:02:12 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:02:12 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:02:12 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:02:12 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:02:12 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:02:12 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:02:12 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:02:13 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:02:13 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:02:13 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:02:13 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:02:13 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:02:13 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.3ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:02:15 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:02:15 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:02:15 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 10]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1 + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:02:15 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:02:15 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:02:15 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0 + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:02:15 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:02:15 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:02:15 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-04 00:00:00.000000' AND "users"."created_at" <= '2013-10-04 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:02:15 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:02:15 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:02:15 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:02:15 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:02:15 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:02:15 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:02:15 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 +Connecting to database specified by database.yml +  (3.3ms) select sqlite_version(*) +  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.3ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.3ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  +  (0.1ms) begin transaction + SQL (43.6ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 04 Sep 2013 04:12:56 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 04 Sep 2013 04:12:56 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:12:56 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:12:56 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:12:56 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:12:56 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:12:56 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:12:56 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:12:56 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:12:56 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:12:56 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:12:58 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:12:58 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:12:58 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:12:58 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:12:58 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:12:58 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:12:58 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:12:58 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:12:58 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:12:58 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:12:58 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:12:58 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:12:58 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:12:58 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:12:58 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-04 00:00:00.000000' AND "users"."created_at" <= '2013-10-04 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:12:58 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:12:58 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:12:58 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:12:58 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0 +Connecting to database specified by database.yml +  (3.3ms) select sqlite_version(*) +  (0.5ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer) +  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) +  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)  +  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) +  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer)  + User Load (2.2ms) SELECT "users".* FROM "users" +  (0.1ms) begin transaction + SQL (39.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:13:53 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:13:53 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:13:53 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:13:53 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:13:53 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:13:53 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:13:53 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:13:53 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:13:53 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:13:54 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:13:54 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:13:54 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.2ms) SELECT "users".* FROM "users" + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:13:54 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:13:54 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:13:54 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."age" = 10 AND "users"."created_at" >= '2013-04-04 00:00:00.000000' AND "users"."created_at" <= '2013-10-04 00:00:00.000000')) LIMIT 25 OFFSET 0 + User Load (0.2ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:13:54 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:13:54 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:13:54 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.1ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0 +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 13]] +  (0.1ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1 + User Load (0.1ms) SELECT "users".* FROM "users" +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:13:54 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:13:54 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:13:54 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.1ms) SELECT "users".* FROM "users"  +  (0.0ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:13:54 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:13:54 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.0ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:13:54 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.0ms) commit transaction + User Load (0.1ms) SELECT "users".* FROM "users" + User Load (0.3ms) SELECT "users".* FROM "users"  +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Thu, 04 Sep 2003 04:13:54 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Sat, 04 Sep 1993 04:13:54 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.1ms) begin transaction + SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00], ["dob", Tue, 04 Sep 1979 04:13:54 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 04 Sep 2013 04:13:54 UTC +00:00]] +  (0.1ms) commit transaction +  (0.2ms) SELECT AVG("users"."age") AS avg_id FROM "users" +  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"  + User Load (0.3ms) SELECT "users".* FROM "users"