query_report 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,16 +39,17 @@ module QueryReport
39
39
 
40
40
  #convert param value which is a string to object like date and boolean
41
41
  def objectified_param_value
42
- @stringified_default ||= case @filter.type
43
- when :date
44
- @default.kind_of?(String) ? Date.current.parse(@default) : @default
45
- when :datetime
46
- @default.kind_of?(String) ? Time.zone.parse(@default) : @default
47
- when :boolean
48
- @default.to_boolean
49
- else
50
- @default
51
- end
42
+ @objectified_param_value ||= case @filter.type
43
+ when :date
44
+ format = I18n.t("date.formats.#{QueryReport.config.date_format}")
45
+ param_value.kind_of?(String) ? (Date.strptime(param_value, format) rescue param_value) : param_value
46
+ when :datetime
47
+ param_value.kind_of?(String) ? Time.zone.parse(param_value) : param_value
48
+ when :boolean
49
+ param_value.to_boolean
50
+ else
51
+ param_value
52
+ end
52
53
  end
53
54
  end
54
55
  end
@@ -83,7 +83,7 @@ module QueryReport
83
83
  end
84
84
 
85
85
  def custom?
86
- @block || @options[:manual] == true ? true : false
86
+ (@block || @options[:manual]) ? true : false
87
87
  end
88
88
 
89
89
  def search_keys
@@ -1,3 +1,3 @@
1
1
  module QueryReport
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
3
3
  end
@@ -45421,3 +45421,758 @@ Connecting to database specified by database.yml
45421
45421
  SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00]]
45422
45422
   (0.0ms) commit transaction
45423
45423
  User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
45424
+ Connecting to database specified by database.yml
45425
+  (1.3ms) select sqlite_version(*)
45426
+  (0.2ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
45427
+  (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) 
45428
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
45429
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
45430
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
45431
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
45432
+ User Load (1.3ms) SELECT "users".* FROM "users"
45433
+  (0.1ms) begin transaction
45434
+ SQL (23.7ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:29:42 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:29:42 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:29:42 UTC +00:00]]
45435
+  (0.0ms) commit transaction
45436
+  (0.0ms) begin transaction
45437
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:29:42 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:29:42 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:29:42 UTC +00:00]]
45438
+  (0.0ms) commit transaction
45439
+  (0.0ms) begin transaction
45440
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:29:42 UTC +00:00], ["dob", Tue, 09 Oct 1979 14:29:42 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:29:42 UTC +00:00]]
45441
+  (0.0ms) commit transaction
45442
+ User Load (0.1ms) SELECT "users".* FROM "users"
45443
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45444
+  (0.0ms) begin transaction
45445
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
45446
+  (0.0ms) commit transaction
45447
+  (0.0ms) begin transaction
45448
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
45449
+  (0.0ms) commit transaction
45450
+  (0.0ms) begin transaction
45451
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
45452
+  (0.0ms) commit transaction
45453
+  (0.0ms) begin transaction
45454
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:29:42 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:29:42 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:29:42 UTC +00:00]]
45455
+  (0.0ms) commit transaction
45456
+  (0.0ms) begin transaction
45457
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:29:42 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:29:42 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:29:42 UTC +00:00]]
45458
+  (0.0ms) commit transaction
45459
+  (0.0ms) begin transaction
45460
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:29:42 UTC +00:00], ["dob", Tue, 09 Oct 1979 14:29:42 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:29:42 UTC +00:00]]
45461
+  (0.0ms) commit transaction
45462
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"
45463
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
45464
+ User Load (0.1ms) SELECT "users".* FROM "users"
45465
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45466
+  (0.0ms) begin transaction
45467
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
45468
+  (0.0ms) commit transaction
45469
+  (0.0ms) begin transaction
45470
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
45471
+  (0.0ms) commit transaction
45472
+  (0.0ms) begin transaction
45473
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
45474
+  (0.0ms) commit transaction
45475
+  (0.0ms) begin transaction
45476
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:29:44 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45477
+  (0.0ms) commit transaction
45478
+  (0.0ms) begin transaction
45479
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:29:44 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45480
+  (0.0ms) commit transaction
45481
+  (0.0ms) begin transaction
45482
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", Tue, 09 Oct 1979 14:29:44 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45483
+  (0.0ms) commit transaction
45484
+ User Load (0.1ms) SELECT "users".* FROM "users"
45485
+  (0.1ms) begin transaction
45486
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45487
+  (0.0ms) commit transaction
45488
+  (0.0ms) begin transaction
45489
+ SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 10]]
45490
+  (0.0ms) commit transaction
45491
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1
45492
+ User Load (0.1ms) SELECT "users".* FROM "users"
45493
+  (0.0ms) begin transaction
45494
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
45495
+  (0.0ms) commit transaction
45496
+  (0.0ms) begin transaction
45497
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
45498
+  (0.0ms) commit transaction
45499
+  (0.0ms) begin transaction
45500
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
45501
+  (0.0ms) commit transaction
45502
+  (0.0ms) begin transaction
45503
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
45504
+  (0.0ms) commit transaction
45505
+  (0.0ms) begin transaction
45506
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:29:44 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45507
+  (0.0ms) commit transaction
45508
+  (0.0ms) begin transaction
45509
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:29:44 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45510
+  (0.0ms) commit transaction
45511
+  (0.0ms) begin transaction
45512
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45513
+  (0.0ms) commit transaction
45514
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
45515
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45516
+  (0.0ms) begin transaction
45517
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
45518
+  (0.0ms) commit transaction
45519
+  (0.0ms) begin transaction
45520
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
45521
+  (0.0ms) commit transaction
45522
+  (0.0ms) begin transaction
45523
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
45524
+  (0.0ms) commit transaction
45525
+  (0.0ms) begin transaction
45526
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:29:44 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45527
+  (0.0ms) commit transaction
45528
+  (0.0ms) begin transaction
45529
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:29:44 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45530
+  (0.0ms) commit transaction
45531
+  (0.0ms) begin transaction
45532
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45533
+  (0.0ms) commit transaction
45534
+ User Load (0.1ms) SELECT "users".* FROM "users"
45535
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45536
+  (0.0ms) begin transaction
45537
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
45538
+  (0.0ms) commit transaction
45539
+  (0.0ms) begin transaction
45540
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
45541
+  (0.0ms) commit transaction
45542
+  (0.1ms) begin transaction
45543
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
45544
+  (0.0ms) commit transaction
45545
+  (0.1ms) begin transaction
45546
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:29:44 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45547
+  (0.0ms) commit transaction
45548
+  (0.0ms) begin transaction
45549
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:29:44 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45550
+  (0.0ms) commit transaction
45551
+  (0.0ms) begin transaction
45552
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45553
+  (0.0ms) commit transaction
45554
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-10-09 14:29:44.000000' AND "users"."dob" <= '2013-11-09 14:29:44.000000')) LIMIT 25 OFFSET 0
45555
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45556
+  (0.0ms) begin transaction
45557
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
45558
+  (0.0ms) commit transaction
45559
+  (0.0ms) begin transaction
45560
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
45561
+  (0.0ms) commit transaction
45562
+  (0.0ms) begin transaction
45563
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
45564
+  (0.0ms) commit transaction
45565
+  (0.0ms) begin transaction
45566
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:29:44 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45567
+  (0.0ms) commit transaction
45568
+  (0.0ms) begin transaction
45569
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:29:44 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45570
+  (0.0ms) commit transaction
45571
+  (0.0ms) begin transaction
45572
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:29:44 UTC +00:00]]
45573
+  (0.0ms) commit transaction
45574
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
45575
+ Connecting to database specified by database.yml
45576
+  (1.3ms) select sqlite_version(*)
45577
+  (0.3ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
45578
+  (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) 
45579
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
45580
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
45581
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
45582
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
45583
+ User Load (1.0ms) SELECT "users".* FROM "users"
45584
+  (0.1ms) begin transaction
45585
+ SQL (2.8ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:35:05 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45586
+  (0.1ms) commit transaction
45587
+  (0.0ms) begin transaction
45588
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:35:05 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45589
+  (0.0ms) commit transaction
45590
+  (0.0ms) begin transaction
45591
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45592
+  (0.0ms) commit transaction
45593
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
45594
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45595
+  (0.0ms) begin transaction
45596
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
45597
+  (0.0ms) commit transaction
45598
+  (0.0ms) begin transaction
45599
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
45600
+  (0.0ms) commit transaction
45601
+  (0.0ms) begin transaction
45602
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
45603
+  (0.0ms) commit transaction
45604
+  (0.0ms) begin transaction
45605
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:35:05 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45606
+  (0.0ms) commit transaction
45607
+  (0.0ms) begin transaction
45608
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:35:05 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45609
+  (0.0ms) commit transaction
45610
+  (0.0ms) begin transaction
45611
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45612
+  (0.0ms) commit transaction
45613
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-10-09 14:35:05.000000' AND "users"."dob" <= '2013-11-09 14:35:05.000000')) LIMIT 25 OFFSET 0
45614
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45615
+  (0.0ms) begin transaction
45616
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
45617
+  (0.0ms) commit transaction
45618
+  (0.0ms) begin transaction
45619
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
45620
+  (0.0ms) commit transaction
45621
+  (0.0ms) begin transaction
45622
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
45623
+  (0.0ms) commit transaction
45624
+  (0.0ms) begin transaction
45625
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:35:05 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45626
+  (0.0ms) commit transaction
45627
+  (0.0ms) begin transaction
45628
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:35:05 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45629
+  (0.0ms) commit transaction
45630
+  (0.0ms) begin transaction
45631
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45632
+  (0.0ms) commit transaction
45633
+ User Load (0.1ms) SELECT "users".* FROM "users"
45634
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45635
+  (0.0ms) begin transaction
45636
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
45637
+  (0.0ms) commit transaction
45638
+  (0.0ms) begin transaction
45639
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
45640
+  (0.0ms) commit transaction
45641
+  (0.0ms) begin transaction
45642
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
45643
+  (0.0ms) commit transaction
45644
+  (0.0ms) begin transaction
45645
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:35:05 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45646
+  (0.0ms) commit transaction
45647
+  (0.0ms) begin transaction
45648
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:35:05 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45649
+  (0.0ms) commit transaction
45650
+  (0.0ms) begin transaction
45651
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45652
+  (0.0ms) commit transaction
45653
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
45654
+  (0.1ms) begin transaction
45655
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45656
+  (0.0ms) commit transaction
45657
+  (0.1ms) begin transaction
45658
+ SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 13]]
45659
+  (0.0ms) commit transaction
45660
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1
45661
+ User Load (0.1ms) SELECT "users".* FROM "users"
45662
+  (0.0ms) begin transaction
45663
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
45664
+  (0.0ms) commit transaction
45665
+  (0.0ms) begin transaction
45666
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
45667
+  (0.0ms) commit transaction
45668
+  (0.0ms) begin transaction
45669
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
45670
+  (0.0ms) commit transaction
45671
+  (0.0ms) begin transaction
45672
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
45673
+  (0.0ms) commit transaction
45674
+  (0.0ms) begin transaction
45675
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:35:05 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45676
+  (0.0ms) commit transaction
45677
+  (0.0ms) begin transaction
45678
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:35:05 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45679
+  (0.0ms) commit transaction
45680
+  (0.0ms) begin transaction
45681
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Tue, 09 Oct 1979 14:35:05 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45682
+  (0.0ms) commit transaction
45683
+ User Load (0.1ms) SELECT "users".* FROM "users"
45684
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45685
+  (0.0ms) begin transaction
45686
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
45687
+  (0.0ms) commit transaction
45688
+  (0.0ms) begin transaction
45689
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
45690
+  (0.0ms) commit transaction
45691
+  (0.0ms) begin transaction
45692
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
45693
+  (0.0ms) commit transaction
45694
+  (0.0ms) begin transaction
45695
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:35:05 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45696
+  (0.0ms) commit transaction
45697
+  (0.0ms) begin transaction
45698
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:35:05 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45699
+  (0.0ms) commit transaction
45700
+  (0.0ms) begin transaction
45701
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00], ["dob", Tue, 09 Oct 1979 14:35:05 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:35:05 UTC +00:00]]
45702
+  (0.0ms) commit transaction
45703
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"
45704
+  (0.0ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
45705
+ User Load (0.1ms) SELECT "users".* FROM "users"
45706
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45707
+  (0.0ms) begin transaction
45708
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
45709
+  (0.0ms) commit transaction
45710
+  (0.0ms) begin transaction
45711
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
45712
+  (0.0ms) commit transaction
45713
+  (0.0ms) begin transaction
45714
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
45715
+  (0.0ms) commit transaction
45716
+  (0.0ms) begin transaction
45717
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:35:07 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:35:07 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:35:07 UTC +00:00]]
45718
+  (0.0ms) commit transaction
45719
+  (0.0ms) begin transaction
45720
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:35:07 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:35:07 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:35:07 UTC +00:00]]
45721
+  (0.0ms) commit transaction
45722
+  (0.0ms) begin transaction
45723
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:35:07 UTC +00:00], ["dob", Tue, 09 Oct 1979 14:35:07 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:35:07 UTC +00:00]]
45724
+  (0.0ms) commit transaction
45725
+ User Load (0.1ms) SELECT "users".* FROM "users"
45726
+ Connecting to database specified by database.yml
45727
+  (1.9ms) select sqlite_version(*)
45728
+  (0.3ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
45729
+  (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) 
45730
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
45731
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
45732
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
45733
+  (0.2ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
45734
+ User Load (1.9ms) SELECT "users".* FROM "users"
45735
+  (0.1ms) begin transaction
45736
+ SQL (3.6ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:56:27 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45737
+  (0.1ms) commit transaction
45738
+  (0.0ms) begin transaction
45739
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:56:27 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45740
+  (0.1ms) commit transaction
45741
+  (0.0ms) begin transaction
45742
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45743
+  (0.0ms) commit transaction
45744
+ User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
45745
+ User Load (0.2ms) SELECT "users".* FROM "users" 
45746
+  (0.0ms) begin transaction
45747
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
45748
+  (0.0ms) commit transaction
45749
+  (0.0ms) begin transaction
45750
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
45751
+  (0.0ms) commit transaction
45752
+  (0.0ms) begin transaction
45753
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
45754
+  (0.0ms) commit transaction
45755
+  (0.0ms) begin transaction
45756
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:56:27 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45757
+  (0.0ms) commit transaction
45758
+  (0.0ms) begin transaction
45759
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:56:27 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45760
+  (0.0ms) commit transaction
45761
+  (0.0ms) begin transaction
45762
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45763
+  (0.0ms) commit transaction
45764
+ User Load (0.1ms) SELECT "users".* FROM "users"
45765
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45766
+  (0.0ms) begin transaction
45767
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
45768
+  (0.0ms) commit transaction
45769
+  (0.0ms) begin transaction
45770
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
45771
+  (0.0ms) commit transaction
45772
+  (0.0ms) begin transaction
45773
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
45774
+  (0.0ms) commit transaction
45775
+  (0.0ms) begin transaction
45776
+ SQL (0.6ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:56:27 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45777
+  (0.1ms) commit transaction
45778
+  (0.0ms) begin transaction
45779
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:56:27 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45780
+  (0.0ms) commit transaction
45781
+  (0.0ms) begin transaction
45782
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45783
+  (0.0ms) commit transaction
45784
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-10-09 14:56:27.000000' AND "users"."dob" <= '2013-11-09 14:56:27.000000')) LIMIT 25 OFFSET 0
45785
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45786
+  (0.0ms) begin transaction
45787
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
45788
+  (0.0ms) commit transaction
45789
+  (0.0ms) begin transaction
45790
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
45791
+  (0.0ms) commit transaction
45792
+  (0.0ms) begin transaction
45793
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
45794
+  (0.0ms) commit transaction
45795
+  (0.0ms) begin transaction
45796
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:56:27 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45797
+  (0.0ms) commit transaction
45798
+  (0.0ms) begin transaction
45799
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:56:27 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45800
+  (0.0ms) commit transaction
45801
+  (0.0ms) begin transaction
45802
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45803
+  (0.0ms) commit transaction
45804
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
45805
+  (0.1ms) begin transaction
45806
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45807
+  (0.0ms) commit transaction
45808
+  (0.0ms) begin transaction
45809
+ SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 13]]
45810
+  (0.1ms) commit transaction
45811
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1
45812
+ User Load (0.1ms) SELECT "users".* FROM "users"
45813
+  (0.0ms) begin transaction
45814
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
45815
+  (0.0ms) commit transaction
45816
+  (0.0ms) begin transaction
45817
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
45818
+  (0.0ms) commit transaction
45819
+  (0.0ms) begin transaction
45820
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
45821
+  (0.0ms) commit transaction
45822
+  (0.0ms) begin transaction
45823
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
45824
+  (0.0ms) commit transaction
45825
+  (0.0ms) begin transaction
45826
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:56:27 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45827
+  (0.0ms) commit transaction
45828
+  (0.0ms) begin transaction
45829
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:56:27 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45830
+  (0.0ms) commit transaction
45831
+  (0.0ms) begin transaction
45832
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Tue, 09 Oct 1979 14:56:27 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45833
+  (0.0ms) commit transaction
45834
+ User Load (0.1ms) SELECT "users".* FROM "users"
45835
+ User Load (0.2ms) SELECT "users".* FROM "users" 
45836
+  (0.1ms) begin transaction
45837
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
45838
+  (0.1ms) commit transaction
45839
+  (0.0ms) begin transaction
45840
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
45841
+  (0.0ms) commit transaction
45842
+  (0.0ms) begin transaction
45843
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
45844
+  (0.0ms) commit transaction
45845
+  (0.0ms) begin transaction
45846
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:56:27 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45847
+  (0.0ms) commit transaction
45848
+  (0.1ms) begin transaction
45849
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:56:27 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45850
+  (0.1ms) commit transaction
45851
+  (0.1ms) begin transaction
45852
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00], ["dob", Tue, 09 Oct 1979 14:56:27 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:56:27 UTC +00:00]]
45853
+  (0.1ms) commit transaction
45854
+  (0.2ms) SELECT AVG("users"."age") AS avg_id FROM "users"
45855
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
45856
+ User Load (0.1ms) SELECT "users".* FROM "users"
45857
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45858
+  (0.0ms) begin transaction
45859
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
45860
+  (0.0ms) commit transaction
45861
+  (0.0ms) begin transaction
45862
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
45863
+  (0.0ms) commit transaction
45864
+  (53.9ms) begin transaction
45865
+ SQL (0.6ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
45866
+  (0.1ms) commit transaction
45867
+  (0.0ms) begin transaction
45868
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 14:56:29 UTC +00:00], ["dob", Thu, 09 Oct 2003 14:56:29 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 14:56:29 UTC +00:00]]
45869
+  (0.0ms) commit transaction
45870
+  (0.0ms) begin transaction
45871
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 14:56:29 UTC +00:00], ["dob", Sat, 09 Oct 1993 14:56:29 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 14:56:29 UTC +00:00]]
45872
+  (0.0ms) commit transaction
45873
+  (0.0ms) begin transaction
45874
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 14:56:29 UTC +00:00], ["dob", Tue, 09 Oct 1979 14:56:29 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 14:56:29 UTC +00:00]]
45875
+  (0.0ms) commit transaction
45876
+ User Load (0.1ms) SELECT "users".* FROM "users"
45877
+ Connecting to database specified by database.yml
45878
+  (1.3ms) select sqlite_version(*)
45879
+  (0.2ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
45880
+  (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) 
45881
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
45882
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
45883
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
45884
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
45885
+  (0.1ms) begin transaction
45886
+ SQL (4.6ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00]]
45887
+  (0.0ms) commit transaction
45888
+  (0.0ms) begin transaction
45889
+ SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]]
45890
+  (0.0ms) commit transaction
45891
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
45892
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45893
+  (0.0ms) begin transaction
45894
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
45895
+  (0.0ms) commit transaction
45896
+  (0.0ms) begin transaction
45897
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:10 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00]]
45898
+  (0.0ms) commit transaction
45899
+  (0.0ms) begin transaction
45900
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:10 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00]]
45901
+  (0.0ms) commit transaction
45902
+  (0.0ms) begin transaction
45903
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00], ["dob", Tue, 09 Oct 1979 17:02:10 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00]]
45904
+  (0.0ms) commit transaction
45905
+ User Load (0.1ms) SELECT "users".* FROM "users"
45906
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45907
+  (0.0ms) begin transaction
45908
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
45909
+  (0.0ms) commit transaction
45910
+  (0.0ms) begin transaction
45911
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
45912
+  (0.0ms) commit transaction
45913
+  (0.0ms) begin transaction
45914
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
45915
+  (0.0ms) commit transaction
45916
+  (0.0ms) begin transaction
45917
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:10 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00]]
45918
+  (0.0ms) commit transaction
45919
+  (0.0ms) begin transaction
45920
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:10 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00]]
45921
+  (0.0ms) commit transaction
45922
+  (0.0ms) begin transaction
45923
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00], ["dob", Tue, 09 Oct 1979 17:02:10 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00]]
45924
+  (0.0ms) commit transaction
45925
+ User Load (0.1ms) SELECT "users".* FROM "users"
45926
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45927
+  (0.0ms) begin transaction
45928
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
45929
+  (0.0ms) commit transaction
45930
+  (0.0ms) begin transaction
45931
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
45932
+  (0.0ms) commit transaction
45933
+  (0.0ms) begin transaction
45934
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
45935
+  (0.0ms) commit transaction
45936
+  (0.0ms) begin transaction
45937
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:10 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00]]
45938
+  (0.0ms) commit transaction
45939
+  (0.0ms) begin transaction
45940
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:10 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00]]
45941
+  (0.0ms) commit transaction
45942
+  (0.0ms) begin transaction
45943
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00], ["dob", Tue, 09 Oct 1979 17:02:10 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:10 UTC +00:00]]
45944
+  (0.0ms) commit transaction
45945
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"
45946
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
45947
+ User Load (0.1ms) SELECT "users".* FROM "users"
45948
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45949
+  (0.0ms) begin transaction
45950
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
45951
+  (0.0ms) commit transaction
45952
+  (0.0ms) begin transaction
45953
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
45954
+  (0.0ms) commit transaction
45955
+  (0.0ms) begin transaction
45956
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
45957
+  (0.0ms) commit transaction
45958
+  (0.0ms) begin transaction
45959
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:12 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00]]
45960
+  (0.0ms) commit transaction
45961
+  (0.0ms) begin transaction
45962
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:12 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00]]
45963
+  (0.0ms) commit transaction
45964
+  (0.0ms) begin transaction
45965
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00]]
45966
+  (0.0ms) commit transaction
45967
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
45968
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45969
+  (0.0ms) begin transaction
45970
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
45971
+  (0.0ms) commit transaction
45972
+  (0.0ms) begin transaction
45973
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
45974
+  (0.0ms) commit transaction
45975
+  (0.0ms) begin transaction
45976
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
45977
+  (0.0ms) commit transaction
45978
+  (0.0ms) begin transaction
45979
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:12 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00]]
45980
+  (0.0ms) commit transaction
45981
+  (0.0ms) begin transaction
45982
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:12 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00]]
45983
+  (0.0ms) commit transaction
45984
+  (0.0ms) begin transaction
45985
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00]]
45986
+  (0.0ms) commit transaction
45987
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-10-09 17:02:12.000000' AND "users"."dob" <= '2013-11-09 17:02:12.000000')) LIMIT 25 OFFSET 0
45988
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45989
+  (0.0ms) begin transaction
45990
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
45991
+  (0.0ms) commit transaction
45992
+  (0.0ms) begin transaction
45993
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
45994
+  (0.0ms) commit transaction
45995
+  (0.0ms) begin transaction
45996
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
45997
+  (0.0ms) commit transaction
45998
+  (0.0ms) begin transaction
45999
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:12 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00]]
46000
+  (0.0ms) commit transaction
46001
+  (0.0ms) begin transaction
46002
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:12 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00]]
46003
+  (0.0ms) commit transaction
46004
+  (0.0ms) begin transaction
46005
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00]]
46006
+  (0.0ms) commit transaction
46007
+ User Load (0.1ms) SELECT "users".* FROM "users"
46008
+ User Load (0.1ms) SELECT "users".* FROM "users" 
46009
+  (0.0ms) begin transaction
46010
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
46011
+  (0.0ms) commit transaction
46012
+  (0.0ms) begin transaction
46013
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
46014
+  (0.0ms) commit transaction
46015
+  (0.0ms) begin transaction
46016
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
46017
+  (0.0ms) commit transaction
46018
+  (0.0ms) begin transaction
46019
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:12 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00]]
46020
+  (0.0ms) commit transaction
46021
+  (0.0ms) begin transaction
46022
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:12 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00]]
46023
+  (0.0ms) commit transaction
46024
+  (0.0ms) begin transaction
46025
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:12 UTC +00:00]]
46026
+  (0.0ms) commit transaction
46027
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
46028
+ Connecting to database specified by database.yml
46029
+  (1.4ms) select sqlite_version(*)
46030
+  (0.2ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46031
+  (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) 
46032
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46033
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46034
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46035
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46036
+ User Load (1.0ms) SELECT "users".* FROM "users"
46037
+  (0.1ms) begin transaction
46038
+ SQL (3.0ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:49 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46039
+  (0.0ms) commit transaction
46040
+  (0.0ms) begin transaction
46041
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:49 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46042
+  (0.0ms) commit transaction
46043
+  (0.0ms) begin transaction
46044
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46045
+  (0.0ms) commit transaction
46046
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
46047
+ User Load (0.1ms) SELECT "users".* FROM "users" 
46048
+  (0.0ms) begin transaction
46049
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
46050
+  (0.0ms) commit transaction
46051
+  (0.0ms) begin transaction
46052
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
46053
+  (0.0ms) commit transaction
46054
+  (0.0ms) begin transaction
46055
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
46056
+  (0.0ms) commit transaction
46057
+  (0.0ms) begin transaction
46058
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:49 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46059
+  (0.0ms) commit transaction
46060
+  (0.0ms) begin transaction
46061
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:49 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46062
+  (0.0ms) commit transaction
46063
+  (0.0ms) begin transaction
46064
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46065
+  (0.0ms) commit transaction
46066
+ User Load (0.1ms) SELECT "users".* FROM "users"
46067
+ User Load (0.1ms) SELECT "users".* FROM "users" 
46068
+  (0.0ms) begin transaction
46069
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
46070
+  (0.0ms) commit transaction
46071
+  (0.0ms) begin transaction
46072
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
46073
+  (0.0ms) commit transaction
46074
+  (0.0ms) begin transaction
46075
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
46076
+  (0.0ms) commit transaction
46077
+  (0.0ms) begin transaction
46078
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:49 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46079
+  (0.0ms) commit transaction
46080
+  (0.0ms) begin transaction
46081
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:49 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46082
+  (0.0ms) commit transaction
46083
+  (0.0ms) begin transaction
46084
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46085
+  (0.0ms) commit transaction
46086
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-10-09 17:02:49.000000' AND "users"."dob" <= '2013-11-09 17:02:49.000000')) LIMIT 25 OFFSET 0
46087
+ User Load (0.1ms) SELECT "users".* FROM "users" 
46088
+  (0.0ms) begin transaction
46089
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
46090
+  (0.0ms) commit transaction
46091
+  (0.0ms) begin transaction
46092
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
46093
+  (0.0ms) commit transaction
46094
+  (0.0ms) begin transaction
46095
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
46096
+  (0.0ms) commit transaction
46097
+  (0.0ms) begin transaction
46098
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:49 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46099
+  (0.0ms) commit transaction
46100
+  (0.0ms) begin transaction
46101
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:49 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46102
+  (0.0ms) commit transaction
46103
+  (0.0ms) begin transaction
46104
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46105
+  (0.0ms) commit transaction
46106
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
46107
+  (0.1ms) begin transaction
46108
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46109
+  (0.0ms) commit transaction
46110
+  (0.0ms) begin transaction
46111
+ SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 13]]
46112
+  (0.0ms) commit transaction
46113
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1
46114
+ User Load (0.1ms) SELECT "users".* FROM "users"
46115
+  (0.0ms) begin transaction
46116
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
46117
+  (0.0ms) commit transaction
46118
+  (0.0ms) begin transaction
46119
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
46120
+  (0.0ms) commit transaction
46121
+  (0.0ms) begin transaction
46122
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
46123
+  (0.0ms) commit transaction
46124
+  (0.0ms) begin transaction
46125
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
46126
+  (0.0ms) commit transaction
46127
+  (0.0ms) begin transaction
46128
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:49 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46129
+  (0.0ms) commit transaction
46130
+  (0.0ms) begin transaction
46131
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:49 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46132
+  (0.0ms) commit transaction
46133
+  (0.0ms) begin transaction
46134
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Tue, 09 Oct 1979 17:02:49 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46135
+  (0.0ms) commit transaction
46136
+ User Load (0.1ms) SELECT "users".* FROM "users"
46137
+ User Load (0.1ms) SELECT "users".* FROM "users" 
46138
+  (0.0ms) begin transaction
46139
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
46140
+  (0.0ms) commit transaction
46141
+  (0.0ms) begin transaction
46142
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
46143
+  (0.0ms) commit transaction
46144
+  (0.0ms) begin transaction
46145
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
46146
+  (0.0ms) commit transaction
46147
+  (0.0ms) begin transaction
46148
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:49 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46149
+  (0.0ms) commit transaction
46150
+  (0.0ms) begin transaction
46151
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:49 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46152
+  (0.0ms) commit transaction
46153
+  (0.0ms) begin transaction
46154
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00], ["dob", Tue, 09 Oct 1979 17:02:49 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:49 UTC +00:00]]
46155
+  (0.0ms) commit transaction
46156
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"
46157
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
46158
+ User Load (0.1ms) SELECT "users".* FROM "users"
46159
+ User Load (0.1ms) SELECT "users".* FROM "users" 
46160
+  (0.0ms) begin transaction
46161
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
46162
+  (0.0ms) commit transaction
46163
+  (0.0ms) begin transaction
46164
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
46165
+  (0.0ms) commit transaction
46166
+  (0.0ms) begin transaction
46167
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
46168
+  (0.0ms) commit transaction
46169
+  (0.0ms) begin transaction
46170
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 17:02:50 UTC +00:00], ["dob", Thu, 09 Oct 2003 17:02:50 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 17:02:50 UTC +00:00]]
46171
+  (0.0ms) commit transaction
46172
+  (0.0ms) begin transaction
46173
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 17:02:50 UTC +00:00], ["dob", Sat, 09 Oct 1993 17:02:50 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 17:02:50 UTC +00:00]]
46174
+  (0.0ms) commit transaction
46175
+  (0.0ms) begin transaction
46176
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:50 UTC +00:00], ["dob", Tue, 09 Oct 1979 17:02:50 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:50 UTC +00:00]]
46177
+  (0.0ms) commit transaction
46178
+ User Load (0.1ms) SELECT "users".* FROM "users"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_report
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: