query_report 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,10 +7,16 @@
7
7
  </thead>
8
8
 
9
9
  <tbody>
10
- <% report.records.each do |record| %>
10
+ <% records = report.has_any_rowspan? ? report.records_with_rowspan : report.records %>
11
+ <% records.each do |record| %>
11
12
  <tr>
12
13
  <% report.columns.each do |column| %>
13
- <td><%= record[column.humanize] %></td>
14
+ <% value = record[column.humanize] %>
15
+ <% if value.kind_of?(Hash) %>
16
+ <td rowspan="<%= value[:rowspan] %>"><%= value[:content] %></td>
17
+ <% elsif record.has_key?(column.humanize) %>
18
+ <td><%= value %></td>
19
+ <% end %>
14
20
  <% end %>
15
21
  </tr>
16
22
  <% end %>
@@ -15,6 +15,7 @@ module QueryReport
15
15
  # options[:comp] => the comparators used for ransack search, [:gteq, :lteq]
16
16
  # options[:show_total] => set true to calculate total for that column
17
17
  # options[:only_on_web] => the column will appear on the web and not appear in PDF or csv if set to true
18
+ # options[:rowspan] => the rows with same values in the same column will span if set to true
18
19
  def column(name, options={}, &block)
19
20
  @columns << Column.new(self, name, options, block)
20
21
  end
@@ -47,7 +48,7 @@ module QueryReport
47
48
 
48
49
  def initialize(report, column_name, options={}, block = nil)
49
50
  @report, @name, @options = report, column_name, options
50
- @type = @report.model_class.columns_hash[column_name.to_s].try(:type) || options[:type] || :string
51
+ @type = @report.model_class.columns_hash[column_name.to_s].try(:type) || options[:type] || :string rescue :string
51
52
  @data = block || column_name.to_sym
52
53
  end
53
54
 
@@ -59,6 +60,10 @@ module QueryReport
59
60
  @options[:sortable] == true
60
61
  end
61
62
 
63
+ def rowspan?
64
+ @options[:rowspan] == true
65
+ end
66
+
62
67
  def humanize
63
68
  @humanize ||= options[:as] || @report.model_class.human_attribute_name(name)
64
69
  end
@@ -42,5 +42,38 @@ module QueryReport
42
42
  Hash[*array.flatten]
43
43
  end
44
44
  end
45
+
46
+ def has_any_rowspan?
47
+ @has_any_rowspan = @columns.any?(&:rowspan?) if @has_any_rowspan.nil?
48
+ @has_any_rowspan
49
+ end
50
+
51
+ def records_with_rowspan
52
+ @records_with_rowspan ||= map_rowspan(records)
53
+ end
54
+
55
+ def all_records_with_rowspan
56
+ @all_records_with_rowspan ||= map_rowspan(all_records)
57
+ end
58
+
59
+ def map_rowspan(rec)
60
+ last_reset_index = @columns.select(&:rowspan?).inject({}) { |hash, column| hash[column.humanize] = 0; hash }
61
+ last_column_content = {}
62
+ rec.each_with_index do |row, index|
63
+ last_reset_index.each do |col, last_index|
64
+ content = row[col]
65
+ last_content = last_column_content[col]
66
+ if index == 0 || content != last_content
67
+ last_column_content[col] = content
68
+ last_reset_index[col] = index
69
+ #initialize
70
+ row[col] = {content: content, rowspan: 1}
71
+ elsif content == last_content
72
+ rec[last_index][col][:rowspan] += 1
73
+ row.delete col
74
+ end
75
+ end
76
+ end
77
+ end
45
78
  end
46
79
  end
@@ -54,12 +54,12 @@ module QueryReport
54
54
  end
55
55
 
56
56
  def table_content_for(report)
57
- table_items = report.all_records
57
+ table_items = report.all_records_with_rowspan
58
58
  items = table_items.map do |item|
59
59
  item_values = []
60
60
 
61
61
  report_columns.collect(&:humanize).each do |column|
62
- item_values << fix_content(item[column].to_s)
62
+ item_values << fix_content(item[column]) if item.has_key? column
63
63
  end
64
64
  item_values
65
65
  end
@@ -90,7 +90,7 @@ module QueryReport
90
90
  end
91
91
 
92
92
  def fix_content(content)
93
- content
93
+ content.kind_of?(Hash) ? content : content.to_s
94
94
  end
95
95
 
96
96
  private
@@ -1,3 +1,3 @@
1
1
  module QueryReport
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
@@ -44479,3 +44479,945 @@ Connecting to database specified by database.yml
44479
44479
  SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 06 Oct 2013 06:16:02 UTC +00:00], ["dob", Sat, 06 Oct 1979 06:16:02 UTC +00:00], ["name", "User#3"], ["updated_at", Sun, 06 Oct 2013 06:16:02 UTC +00:00]]
44480
44480
   (0.0ms) commit transaction
44481
44481
  User Load (0.1ms) SELECT "users".* FROM "users"
44482
+ Connecting to database specified by database.yml
44483
+ Connecting to database specified by database.yml
44484
+ Connecting to database specified by database.yml
44485
+ Connecting to database specified by database.yml
44486
+ Connecting to database specified by database.yml
44487
+ Connecting to database specified by database.yml
44488
+ Connecting to database specified by database.yml
44489
+ Connecting to database specified by database.yml
44490
+ Connecting to database specified by database.yml
44491
+ Connecting to database specified by database.yml
44492
+ Connecting to database specified by database.yml
44493
+ Connecting to database specified by database.yml
44494
+ Connecting to database specified by database.yml
44495
+ Connecting to database specified by database.yml
44496
+ Connecting to database specified by database.yml
44497
+ Connecting to database specified by database.yml
44498
+ Connecting to database specified by database.yml
44499
+ Connecting to database specified by database.yml
44500
+  (5.3ms) select sqlite_version(*)
44501
+  (0.8ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
44502
+  (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) 
44503
+  (0.4ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
44504
+  (0.4ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
44505
+  (0.4ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
44506
+  (0.4ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
44507
+  (0.2ms) begin transaction
44508
+ SQL (18.5ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00]]
44509
+  (0.2ms) commit transaction
44510
+  (0.2ms) begin transaction
44511
+ SQL (0.3ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]]
44512
+  (0.1ms) commit transaction
44513
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
44514
+ User Load (0.3ms) SELECT "users".* FROM "users" 
44515
+  (0.1ms) begin transaction
44516
+ SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
44517
+  (0.1ms) commit transaction
44518
+  (0.1ms) begin transaction
44519
+ SQL (0.6ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00], ["dob", Wed, 08 Oct 2003 13:18:36 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00]]
44520
+  (0.1ms) commit transaction
44521
+  (0.1ms) begin transaction
44522
+ SQL (0.6ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00], ["dob", Fri, 08 Oct 1993 13:18:36 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00]]
44523
+  (0.1ms) commit transaction
44524
+  (0.1ms) begin transaction
44525
+ SQL (0.5ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00], ["dob", Mon, 08 Oct 1979 13:18:36 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00]]
44526
+  (0.1ms) commit transaction
44527
+ User Load (0.2ms) SELECT "users".* FROM "users"
44528
+ User Load (0.3ms) SELECT "users".* FROM "users" 
44529
+  (0.1ms) begin transaction
44530
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
44531
+  (0.1ms) commit transaction
44532
+  (0.1ms) begin transaction
44533
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
44534
+  (0.1ms) commit transaction
44535
+  (0.1ms) begin transaction
44536
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
44537
+  (0.1ms) commit transaction
44538
+  (0.1ms) begin transaction
44539
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00], ["dob", Wed, 08 Oct 2003 13:18:36 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00]]
44540
+  (0.1ms) commit transaction
44541
+  (0.1ms) begin transaction
44542
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00], ["dob", Fri, 08 Oct 1993 13:18:36 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00]]
44543
+  (0.1ms) commit transaction
44544
+  (0.1ms) begin transaction
44545
+ SQL (0.5ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00], ["dob", Mon, 08 Oct 1979 13:18:36 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 08 Oct 2013 13:18:36 UTC +00:00]]
44546
+  (0.1ms) commit transaction
44547
+  (0.3ms) SELECT AVG("users"."age") AS avg_id FROM "users"
44548
+  (0.2ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
44549
+ User Load (0.3ms) SELECT "users".* FROM "users"
44550
+ User Load (0.3ms) SELECT "users".* FROM "users" 
44551
+  (0.1ms) begin transaction
44552
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
44553
+  (0.1ms) commit transaction
44554
+  (0.1ms) begin transaction
44555
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
44556
+  (0.1ms) commit transaction
44557
+  (0.1ms) begin transaction
44558
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
44559
+  (0.1ms) commit transaction
44560
+  (0.1ms) begin transaction
44561
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 08 Oct 2013 13:18:40 UTC +00:00], ["dob", Wed, 08 Oct 2003 13:18:40 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 08 Oct 2013 13:18:40 UTC +00:00]]
44562
+  (0.1ms) commit transaction
44563
+  (0.1ms) begin transaction
44564
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 08 Oct 2013 13:18:40 UTC +00:00], ["dob", Fri, 08 Oct 1993 13:18:40 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 08 Oct 2013 13:18:40 UTC +00:00]]
44565
+  (0.1ms) commit transaction
44566
+  (0.1ms) begin transaction
44567
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 08 Oct 2013 13:18:40 UTC +00:00], ["dob", Mon, 08 Oct 1979 13:18:40 UTC +00:00], ["name", "User#3"], ["updated_at", Tue, 08 Oct 2013 13:18:40 UTC +00:00]]
44568
+  (0.1ms) commit transaction
44569
+ User Load (0.2ms) SELECT "users".* FROM "users"
44570
+ User Load (0.3ms) SELECT "users".* FROM "users" 
44571
+  (0.1ms) begin transaction
44572
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
44573
+  (0.1ms) commit transaction
44574
+  (0.1ms) begin transaction
44575
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
44576
+  (0.1ms) commit transaction
44577
+  (0.1ms) begin transaction
44578
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
44579
+  (0.1ms) commit transaction
44580
+  (0.0ms) begin transaction
44581
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00], ["dob", Wed, 08 Oct 2003 13:18:41 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00]]
44582
+  (0.1ms) commit transaction
44583
+  (0.1ms) begin transaction
44584
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00], ["dob", Fri, 08 Oct 1993 13:18:41 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00]]
44585
+  (0.1ms) commit transaction
44586
+  (0.1ms) begin transaction
44587
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00]]
44588
+  (0.1ms) commit transaction
44589
+ User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
44590
+ User Load (0.3ms) SELECT "users".* FROM "users" 
44591
+  (0.1ms) begin transaction
44592
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
44593
+  (0.1ms) commit transaction
44594
+  (0.1ms) begin transaction
44595
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
44596
+  (0.1ms) commit transaction
44597
+  (0.1ms) begin transaction
44598
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
44599
+  (0.0ms) commit transaction
44600
+  (0.1ms) begin transaction
44601
+ SQL (0.5ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00], ["dob", Wed, 08 Oct 2003 13:18:41 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00]]
44602
+  (0.1ms) commit transaction
44603
+  (0.1ms) begin transaction
44604
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00], ["dob", Fri, 08 Oct 1993 13:18:41 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00]]
44605
+  (0.1ms) commit transaction
44606
+  (0.1ms) begin transaction
44607
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00]]
44608
+  (0.1ms) commit transaction
44609
+ User Load (0.2ms) SELECT "users".* FROM "users"
44610
+ User Load (0.2ms) SELECT "users".* FROM "users" 
44611
+  (0.1ms) begin transaction
44612
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
44613
+  (0.1ms) commit transaction
44614
+  (0.1ms) begin transaction
44615
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
44616
+  (0.1ms) commit transaction
44617
+  (0.1ms) begin transaction
44618
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
44619
+  (0.1ms) commit transaction
44620
+  (0.1ms) begin transaction
44621
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00], ["dob", Wed, 08 Oct 2003 13:18:41 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00]]
44622
+  (0.1ms) commit transaction
44623
+  (0.1ms) begin transaction
44624
+ SQL (0.6ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00], ["dob", Fri, 08 Oct 1993 13:18:41 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00]]
44625
+  (0.1ms) commit transaction
44626
+  (0.0ms) begin transaction
44627
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00]]
44628
+  (0.0ms) commit transaction
44629
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-10-08 13:18:41.000000' AND "users"."dob" <= '2013-11-08 13:18:41.000000')) LIMIT 25 OFFSET 0
44630
+ User Load (0.2ms) SELECT "users".* FROM "users" 
44631
+  (0.1ms) begin transaction
44632
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
44633
+  (0.1ms) commit transaction
44634
+  (0.1ms) begin transaction
44635
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
44636
+  (0.1ms) commit transaction
44637
+  (0.1ms) begin transaction
44638
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
44639
+  (0.1ms) commit transaction
44640
+  (0.1ms) begin transaction
44641
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00], ["dob", Wed, 08 Oct 2003 13:18:41 UTC +00:00], ["name", "User#1"], ["updated_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00]]
44642
+  (0.0ms) commit transaction
44643
+  (0.1ms) begin transaction
44644
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00], ["dob", Fri, 08 Oct 1993 13:18:41 UTC +00:00], ["name", "User#2"], ["updated_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00]]
44645
+  (0.1ms) commit transaction
44646
+  (0.0ms) begin transaction
44647
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Tue, 08 Oct 2013 13:18:41 UTC +00:00]]
44648
+  (0.1ms) commit transaction
44649
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
44650
+ Connecting to database specified by database.yml
44651
+ Connecting to database specified by database.yml
44652
+ Connecting to database specified by database.yml
44653
+ Connecting to database specified by database.yml
44654
+ Connecting to database specified by database.yml
44655
+ Connecting to database specified by database.yml
44656
+ Connecting to database specified by database.yml
44657
+ Connecting to database specified by database.yml
44658
+ Connecting to database specified by database.yml
44659
+ Connecting to database specified by database.yml
44660
+ Connecting to database specified by database.yml
44661
+ Connecting to database specified by database.yml
44662
+ Connecting to database specified by database.yml
44663
+ Connecting to database specified by database.yml
44664
+ Connecting to database specified by database.yml
44665
+ Connecting to database specified by database.yml
44666
+ Connecting to database specified by database.yml
44667
+ Connecting to database specified by database.yml
44668
+ Connecting to database specified by database.yml
44669
+ Connecting to database specified by database.yml
44670
+ Connecting to database specified by database.yml
44671
+ Connecting to database specified by database.yml
44672
+ Connecting to database specified by database.yml
44673
+ Connecting to database specified by database.yml
44674
+  (1.5ms) select sqlite_version(*)
44675
+  (0.3ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
44676
+  (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) 
44677
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
44678
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
44679
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
44680
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
44681
+ User Load (14.3ms) SELECT "users".* FROM "users"
44682
+  (0.1ms) begin transaction
44683
+ SQL (12.9ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 04:47:06 UTC +00:00], ["dob", Thu, 09 Oct 2003 04:47:06 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 04:47:06 UTC +00:00]]
44684
+  (0.0ms) commit transaction
44685
+  (0.1ms) begin transaction
44686
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 04:47:06 UTC +00:00], ["dob", Sat, 09 Oct 1993 04:47:06 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 04:47:06 UTC +00:00]]
44687
+  (0.0ms) commit transaction
44688
+  (0.0ms) begin transaction
44689
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 04:47:06 UTC +00:00], ["dob", Tue, 09 Oct 1979 04:47:06 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 04:47:06 UTC +00:00]]
44690
+  (0.0ms) commit transaction
44691
+ User Load (0.1ms) SELECT "users".* FROM "users"
44692
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44693
+  (0.1ms) begin transaction
44694
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
44695
+  (0.0ms) commit transaction
44696
+  (0.0ms) begin transaction
44697
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
44698
+  (0.0ms) commit transaction
44699
+  (0.0ms) begin transaction
44700
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
44701
+  (0.0ms) commit transaction
44702
+  (0.0ms) begin transaction
44703
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 04:47:06 UTC +00:00], ["dob", Thu, 09 Oct 2003 04:47:06 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 04:47:06 UTC +00:00]]
44704
+  (0.0ms) commit transaction
44705
+  (0.0ms) begin transaction
44706
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 04:47:06 UTC +00:00], ["dob", Sat, 09 Oct 1993 04:47:06 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 04:47:06 UTC +00:00]]
44707
+  (0.0ms) commit transaction
44708
+  (0.0ms) begin transaction
44709
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 04:47:06 UTC +00:00], ["dob", Tue, 09 Oct 1979 04:47:06 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 04:47:06 UTC +00:00]]
44710
+  (0.0ms) commit transaction
44711
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"
44712
+  (0.0ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
44713
+ User Load (0.1ms) SELECT "users".* FROM "users"
44714
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44715
+  (0.0ms) begin transaction
44716
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
44717
+  (0.0ms) commit transaction
44718
+  (0.0ms) begin transaction
44719
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
44720
+  (0.0ms) commit transaction
44721
+  (0.0ms) begin transaction
44722
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
44723
+  (0.0ms) commit transaction
44724
+  (0.0ms) begin transaction
44725
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", Thu, 09 Oct 2003 04:47:07 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44726
+  (0.0ms) commit transaction
44727
+  (0.0ms) begin transaction
44728
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", Sat, 09 Oct 1993 04:47:07 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44729
+  (0.0ms) commit transaction
44730
+  (0.0ms) begin transaction
44731
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", Tue, 09 Oct 1979 04:47:07 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44732
+  (0.0ms) commit transaction
44733
+ User Load (0.1ms) SELECT "users".* FROM "users"
44734
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44735
+  (0.0ms) begin transaction
44736
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
44737
+  (0.0ms) commit transaction
44738
+  (0.0ms) begin transaction
44739
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
44740
+  (0.0ms) commit transaction
44741
+  (0.0ms) begin transaction
44742
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
44743
+  (0.0ms) commit transaction
44744
+  (0.0ms) begin transaction
44745
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", Thu, 09 Oct 2003 04:47:07 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44746
+  (0.0ms) commit transaction
44747
+  (0.0ms) begin transaction
44748
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", Sat, 09 Oct 1993 04:47:07 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44749
+  (0.0ms) commit transaction
44750
+  (0.0ms) begin transaction
44751
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44752
+  (0.0ms) commit transaction
44753
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
44754
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44755
+  (0.0ms) begin transaction
44756
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
44757
+  (0.0ms) commit transaction
44758
+  (0.0ms) begin transaction
44759
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
44760
+  (0.0ms) commit transaction
44761
+  (0.0ms) begin transaction
44762
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
44763
+  (0.0ms) commit transaction
44764
+  (0.0ms) begin transaction
44765
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", Thu, 09 Oct 2003 04:47:07 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44766
+  (0.0ms) commit transaction
44767
+  (0.0ms) begin transaction
44768
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", Sat, 09 Oct 1993 04:47:07 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44769
+  (0.0ms) commit transaction
44770
+  (0.0ms) begin transaction
44771
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44772
+  (0.0ms) commit transaction
44773
+ User Load (0.1ms) SELECT "users".* FROM "users"
44774
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44775
+  (0.0ms) begin transaction
44776
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
44777
+  (0.0ms) commit transaction
44778
+  (0.0ms) begin transaction
44779
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
44780
+  (0.0ms) commit transaction
44781
+  (0.0ms) begin transaction
44782
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
44783
+  (0.0ms) commit transaction
44784
+  (0.0ms) begin transaction
44785
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", Thu, 09 Oct 2003 04:47:07 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44786
+  (0.0ms) commit transaction
44787
+  (0.0ms) begin transaction
44788
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", Sat, 09 Oct 1993 04:47:07 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44789
+  (0.0ms) commit transaction
44790
+  (0.0ms) begin transaction
44791
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44792
+  (0.0ms) commit transaction
44793
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-10-09 04:47:07.000000' AND "users"."dob" <= '2013-11-09 04:47:07.000000')) LIMIT 25 OFFSET 0
44794
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44795
+  (0.0ms) begin transaction
44796
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
44797
+  (0.0ms) commit transaction
44798
+  (0.0ms) begin transaction
44799
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
44800
+  (0.0ms) commit transaction
44801
+  (0.0ms) begin transaction
44802
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
44803
+  (0.0ms) commit transaction
44804
+  (0.0ms) begin transaction
44805
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", Thu, 09 Oct 2003 04:47:07 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44806
+  (0.0ms) commit transaction
44807
+  (0.0ms) begin transaction
44808
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", Sat, 09 Oct 1993 04:47:07 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44809
+  (0.0ms) commit transaction
44810
+  (0.0ms) begin transaction
44811
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44812
+  (0.0ms) commit transaction
44813
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
44814
+  (0.1ms) begin transaction
44815
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 09 Oct 2013 04:47:07 UTC +00:00]]
44816
+  (0.0ms) commit transaction
44817
+  (0.0ms) begin transaction
44818
+ SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 22]]
44819
+  (0.0ms) commit transaction
44820
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1
44821
+ Connecting to database specified by database.yml
44822
+  (1.3ms) select sqlite_version(*)
44823
+  (0.2ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
44824
+  (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) 
44825
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
44826
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
44827
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
44828
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
44829
+  (0.0ms) begin transaction
44830
+ SQL (3.9ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00]]
44831
+  (0.0ms) commit transaction
44832
+  (0.0ms) begin transaction
44833
+ SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]]
44834
+  (0.0ms) commit transaction
44835
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
44836
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44837
+  (0.0ms) begin transaction
44838
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
44839
+  (0.0ms) commit transaction
44840
+  (0.0ms) begin transaction
44841
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:04:13 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00]]
44842
+  (0.0ms) commit transaction
44843
+  (0.0ms) begin transaction
44844
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:04:13 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00]]
44845
+  (0.0ms) commit transaction
44846
+  (0.0ms) begin transaction
44847
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00], ["dob", Tue, 09 Oct 1979 05:04:13 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00]]
44848
+  (0.0ms) commit transaction
44849
+ User Load (0.1ms) SELECT "users".* FROM "users"
44850
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44851
+  (0.0ms) begin transaction
44852
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
44853
+  (0.0ms) commit transaction
44854
+  (0.0ms) begin transaction
44855
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
44856
+  (0.0ms) commit transaction
44857
+  (0.0ms) begin transaction
44858
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
44859
+  (0.0ms) commit transaction
44860
+  (0.0ms) begin transaction
44861
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:04:13 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00]]
44862
+  (0.0ms) commit transaction
44863
+  (0.0ms) begin transaction
44864
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:04:13 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00]]
44865
+  (0.0ms) commit transaction
44866
+  (0.0ms) begin transaction
44867
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00], ["dob", Tue, 09 Oct 1979 05:04:13 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:04:13 UTC +00:00]]
44868
+  (0.0ms) commit transaction
44869
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"
44870
+  (0.0ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
44871
+ User Load (0.1ms) SELECT "users".* FROM "users"
44872
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44873
+  (0.0ms) begin transaction
44874
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
44875
+  (0.0ms) commit transaction
44876
+  (0.0ms) begin transaction
44877
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
44878
+  (0.0ms) commit transaction
44879
+  (0.0ms) begin transaction
44880
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
44881
+  (0.0ms) commit transaction
44882
+  (0.0ms) begin transaction
44883
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:04:15 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44884
+  (0.0ms) commit transaction
44885
+  (0.0ms) begin transaction
44886
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:04:15 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44887
+  (0.0ms) commit transaction
44888
+  (0.0ms) begin transaction
44889
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", Tue, 09 Oct 1979 05:04:15 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44890
+  (0.0ms) commit transaction
44891
+ User Load (0.1ms) SELECT "users".* FROM "users"
44892
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44893
+  (0.0ms) begin transaction
44894
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
44895
+  (0.0ms) commit transaction
44896
+  (0.0ms) begin transaction
44897
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
44898
+  (0.0ms) commit transaction
44899
+  (0.0ms) begin transaction
44900
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
44901
+  (0.0ms) commit transaction
44902
+  (0.0ms) begin transaction
44903
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:04:15 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44904
+  (0.0ms) commit transaction
44905
+  (0.0ms) begin transaction
44906
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:04:15 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44907
+  (0.0ms) commit transaction
44908
+  (0.0ms) begin transaction
44909
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44910
+  (0.0ms) commit transaction
44911
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
44912
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44913
+  (0.0ms) begin transaction
44914
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
44915
+  (0.0ms) commit transaction
44916
+  (0.0ms) begin transaction
44917
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
44918
+  (0.0ms) commit transaction
44919
+  (0.0ms) begin transaction
44920
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
44921
+  (0.0ms) commit transaction
44922
+  (0.0ms) begin transaction
44923
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:04:15 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44924
+  (0.0ms) commit transaction
44925
+  (0.0ms) begin transaction
44926
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:04:15 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44927
+  (0.0ms) commit transaction
44928
+  (0.0ms) begin transaction
44929
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44930
+  (0.0ms) commit transaction
44931
+ User Load (0.1ms) SELECT "users".* FROM "users"
44932
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44933
+  (0.0ms) begin transaction
44934
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
44935
+  (0.0ms) commit transaction
44936
+  (0.0ms) begin transaction
44937
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
44938
+  (0.0ms) commit transaction
44939
+  (0.0ms) begin transaction
44940
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
44941
+  (0.0ms) commit transaction
44942
+  (0.0ms) begin transaction
44943
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:04:15 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44944
+  (0.0ms) commit transaction
44945
+  (0.0ms) begin transaction
44946
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:04:15 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44947
+  (0.0ms) commit transaction
44948
+  (0.0ms) begin transaction
44949
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44950
+  (0.0ms) commit transaction
44951
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-10-09 05:04:15.000000' AND "users"."dob" <= '2013-11-09 05:04:15.000000')) LIMIT 25 OFFSET 0
44952
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44953
+  (0.0ms) begin transaction
44954
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
44955
+  (0.0ms) commit transaction
44956
+  (0.0ms) begin transaction
44957
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
44958
+  (0.0ms) commit transaction
44959
+  (0.0ms) begin transaction
44960
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
44961
+  (0.0ms) commit transaction
44962
+  (0.0ms) begin transaction
44963
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:04:15 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44964
+  (0.0ms) commit transaction
44965
+  (0.0ms) begin transaction
44966
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:04:15 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44967
+  (0.0ms) commit transaction
44968
+  (0.0ms) begin transaction
44969
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:04:15 UTC +00:00]]
44970
+  (0.0ms) commit transaction
44971
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
44972
+ Connecting to database specified by database.yml
44973
+ Connecting to database specified by database.yml
44974
+ Connecting to database specified by database.yml
44975
+  (1.3ms) select sqlite_version(*)
44976
+  (0.2ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
44977
+  (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) 
44978
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
44979
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
44980
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
44981
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
44982
+ User Load (0.9ms) SELECT "users".* FROM "users"
44983
+  (0.0ms) begin transaction
44984
+ SQL (2.7ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:30:39 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:30:39 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:30:39 UTC +00:00]]
44985
+  (0.0ms) commit transaction
44986
+  (0.0ms) begin transaction
44987
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:30:39 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:30:39 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:30:39 UTC +00:00]]
44988
+  (0.0ms) commit transaction
44989
+  (0.0ms) begin transaction
44990
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:30:39 UTC +00:00], ["dob", Tue, 09 Oct 1979 05:30:39 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:30:39 UTC +00:00]]
44991
+  (0.0ms) commit transaction
44992
+ User Load (0.1ms) SELECT "users".* FROM "users"
44993
+ User Load (0.1ms) SELECT "users".* FROM "users" 
44994
+  (0.0ms) begin transaction
44995
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
44996
+  (0.0ms) commit transaction
44997
+  (0.0ms) begin transaction
44998
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
44999
+  (0.0ms) commit transaction
45000
+  (0.0ms) begin transaction
45001
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
45002
+  (0.0ms) commit transaction
45003
+  (0.0ms) begin transaction
45004
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:30:39 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:30:39 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:30:39 UTC +00:00]]
45005
+  (0.0ms) commit transaction
45006
+  (0.0ms) begin transaction
45007
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:30:39 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:30:39 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:30:39 UTC +00:00]]
45008
+  (0.0ms) commit transaction
45009
+  (0.0ms) begin transaction
45010
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:30:39 UTC +00:00], ["dob", Tue, 09 Oct 1979 05:30:39 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:30:39 UTC +00:00]]
45011
+  (0.0ms) commit transaction
45012
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"
45013
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
45014
+ User Load (0.1ms) SELECT "users".* FROM "users"
45015
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45016
+  (0.0ms) begin transaction
45017
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
45018
+  (0.0ms) commit transaction
45019
+  (0.0ms) begin transaction
45020
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
45021
+  (0.0ms) commit transaction
45022
+  (0.0ms) begin transaction
45023
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
45024
+  (0.0ms) commit transaction
45025
+  (0.0ms) begin transaction
45026
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:30:41 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45027
+  (0.0ms) commit transaction
45028
+  (0.0ms) begin transaction
45029
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:30:41 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45030
+  (0.0ms) commit transaction
45031
+  (0.0ms) begin transaction
45032
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", Tue, 09 Oct 1979 05:30:41 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45033
+  (0.0ms) commit transaction
45034
+ User Load (0.1ms) SELECT "users".* FROM "users"
45035
+  (0.1ms) begin transaction
45036
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45037
+  (0.0ms) commit transaction
45038
+  (0.0ms) begin transaction
45039
+ SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 10]]
45040
+  (0.0ms) commit transaction
45041
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1
45042
+ User Load (0.1ms) SELECT "users".* FROM "users"
45043
+  (0.1ms) begin transaction
45044
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
45045
+  (0.0ms) commit transaction
45046
+  (0.0ms) begin transaction
45047
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
45048
+  (0.0ms) commit transaction
45049
+  (0.0ms) begin transaction
45050
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
45051
+  (0.0ms) commit transaction
45052
+  (0.0ms) begin transaction
45053
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
45054
+  (0.0ms) commit transaction
45055
+  (0.0ms) begin transaction
45056
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:30:41 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45057
+  (0.0ms) commit transaction
45058
+  (0.0ms) begin transaction
45059
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:30:41 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45060
+  (0.0ms) commit transaction
45061
+  (0.0ms) begin transaction
45062
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45063
+  (0.0ms) commit transaction
45064
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
45065
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45066
+  (0.0ms) begin transaction
45067
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
45068
+  (0.0ms) commit transaction
45069
+  (0.0ms) begin transaction
45070
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
45071
+  (0.0ms) commit transaction
45072
+  (0.0ms) begin transaction
45073
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
45074
+  (0.0ms) commit transaction
45075
+  (0.0ms) begin transaction
45076
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:30:41 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45077
+  (0.0ms) commit transaction
45078
+  (0.0ms) begin transaction
45079
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:30:41 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45080
+  (0.0ms) commit transaction
45081
+  (0.0ms) begin transaction
45082
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45083
+  (0.0ms) commit transaction
45084
+ User Load (0.1ms) SELECT "users".* FROM "users"
45085
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45086
+  (0.0ms) begin transaction
45087
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
45088
+  (0.0ms) commit transaction
45089
+  (0.0ms) begin transaction
45090
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
45091
+  (0.0ms) commit transaction
45092
+  (0.0ms) begin transaction
45093
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
45094
+  (0.0ms) commit transaction
45095
+  (0.0ms) begin transaction
45096
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:30:41 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45097
+  (0.0ms) commit transaction
45098
+  (0.0ms) begin transaction
45099
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:30:41 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45100
+  (0.0ms) commit transaction
45101
+  (0.0ms) begin transaction
45102
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45103
+  (0.0ms) commit transaction
45104
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-10-09 05:30:41.000000' AND "users"."dob" <= '2013-11-09 05:30:41.000000')) LIMIT 25 OFFSET 0
45105
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45106
+  (0.0ms) begin transaction
45107
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
45108
+  (0.0ms) commit transaction
45109
+  (0.0ms) begin transaction
45110
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
45111
+  (0.0ms) commit transaction
45112
+  (0.0ms) begin transaction
45113
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
45114
+  (0.0ms) commit transaction
45115
+  (0.0ms) begin transaction
45116
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:30:41 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45117
+  (0.0ms) commit transaction
45118
+  (0.0ms) begin transaction
45119
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:30:41 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45120
+  (0.0ms) commit transaction
45121
+  (0.0ms) begin transaction
45122
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:30:41 UTC +00:00]]
45123
+  (0.0ms) commit transaction
45124
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
45125
+ Connecting to database specified by database.yml
45126
+  (1.3ms) select sqlite_version(*)
45127
+  (0.3ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
45128
+  (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) 
45129
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
45130
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
45131
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
45132
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
45133
+ User Load (2.5ms) SELECT "users".* FROM "users"
45134
+  (0.1ms) begin transaction
45135
+ SQL (3.0ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:32:16 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:32:16 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:32:16 UTC +00:00]]
45136
+  (0.0ms) commit transaction
45137
+  (0.1ms) begin transaction
45138
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:32:16 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:32:16 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:32:16 UTC +00:00]]
45139
+  (0.0ms) commit transaction
45140
+  (0.1ms) begin transaction
45141
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:32:16 UTC +00:00], ["dob", Tue, 09 Oct 1979 05:32:16 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:32:16 UTC +00:00]]
45142
+  (0.1ms) commit transaction
45143
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"
45144
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
45145
+ User Load (0.1ms) SELECT "users".* FROM "users"
45146
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45147
+  (0.0ms) begin transaction
45148
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
45149
+  (0.0ms) commit transaction
45150
+  (0.0ms) begin transaction
45151
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
45152
+  (0.0ms) commit transaction
45153
+  (0.0ms) begin transaction
45154
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
45155
+  (0.0ms) commit transaction
45156
+  (0.0ms) begin transaction
45157
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:32:18 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45158
+  (0.0ms) commit transaction
45159
+  (0.0ms) begin transaction
45160
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:32:18 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45161
+  (0.0ms) commit transaction
45162
+  (0.0ms) begin transaction
45163
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Tue, 09 Oct 1979 05:32:18 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45164
+  (0.0ms) commit transaction
45165
+ User Load (0.1ms) SELECT "users".* FROM "users"
45166
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45167
+  (0.0ms) begin transaction
45168
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
45169
+  (0.0ms) commit transaction
45170
+  (0.0ms) begin transaction
45171
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
45172
+  (0.0ms) commit transaction
45173
+  (0.0ms) begin transaction
45174
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
45175
+  (0.0ms) commit transaction
45176
+  (0.0ms) begin transaction
45177
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:32:18 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45178
+  (0.0ms) commit transaction
45179
+  (0.0ms) begin transaction
45180
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:32:18 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45181
+  (0.0ms) commit transaction
45182
+  (0.0ms) begin transaction
45183
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Tue, 09 Oct 1979 05:32:18 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45184
+  (0.0ms) commit transaction
45185
+ User Load (0.2ms) SELECT "users".* FROM "users"
45186
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45187
+  (0.0ms) begin transaction
45188
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
45189
+  (0.0ms) commit transaction
45190
+  (0.0ms) begin transaction
45191
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
45192
+  (0.0ms) commit transaction
45193
+  (0.0ms) begin transaction
45194
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
45195
+  (0.0ms) commit transaction
45196
+  (0.0ms) begin transaction
45197
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:32:18 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45198
+  (0.0ms) commit transaction
45199
+  (0.0ms) begin transaction
45200
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:32:18 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45201
+  (0.0ms) commit transaction
45202
+  (0.0ms) begin transaction
45203
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45204
+  (0.0ms) commit transaction
45205
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
45206
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45207
+  (0.0ms) begin transaction
45208
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
45209
+  (0.0ms) commit transaction
45210
+  (0.0ms) begin transaction
45211
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
45212
+  (0.0ms) commit transaction
45213
+  (0.0ms) begin transaction
45214
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
45215
+  (0.0ms) commit transaction
45216
+  (0.0ms) begin transaction
45217
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:32:18 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45218
+  (0.0ms) commit transaction
45219
+  (0.0ms) begin transaction
45220
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:32:18 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45221
+  (0.0ms) commit transaction
45222
+  (0.0ms) begin transaction
45223
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45224
+  (0.0ms) commit transaction
45225
+ User Load (0.1ms) SELECT "users".* FROM "users"
45226
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45227
+  (0.0ms) begin transaction
45228
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
45229
+  (0.0ms) commit transaction
45230
+  (0.0ms) begin transaction
45231
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
45232
+  (0.0ms) commit transaction
45233
+  (0.0ms) begin transaction
45234
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
45235
+  (0.0ms) commit transaction
45236
+  (0.1ms) begin transaction
45237
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:32:18 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45238
+  (0.0ms) commit transaction
45239
+  (0.0ms) begin transaction
45240
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:32:18 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45241
+  (0.1ms) commit transaction
45242
+  (0.0ms) begin transaction
45243
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45244
+  (0.0ms) commit transaction
45245
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-10-09 05:32:18.000000' AND "users"."dob" <= '2013-11-09 05:32:18.000000')) LIMIT 25 OFFSET 0
45246
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45247
+  (0.0ms) begin transaction
45248
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
45249
+  (0.0ms) commit transaction
45250
+  (0.0ms) begin transaction
45251
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
45252
+  (0.0ms) commit transaction
45253
+  (0.0ms) begin transaction
45254
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
45255
+  (0.0ms) commit transaction
45256
+  (0.0ms) begin transaction
45257
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:32:18 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45258
+  (0.0ms) commit transaction
45259
+  (0.0ms) begin transaction
45260
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:32:18 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45261
+  (0.0ms) commit transaction
45262
+  (0.0ms) begin transaction
45263
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45264
+  (0.0ms) commit transaction
45265
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
45266
+  (0.1ms) begin transaction
45267
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 09 Oct 2013 05:32:18 UTC +00:00]]
45268
+  (0.0ms) commit transaction
45269
+  (0.0ms) begin transaction
45270
+ SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 22]]
45271
+  (0.0ms) commit transaction
45272
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1
45273
+ Connecting to database specified by database.yml
45274
+  (1.3ms) select sqlite_version(*)
45275
+  (0.2ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
45276
+  (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) 
45277
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
45278
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
45279
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
45280
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
45281
+  (0.0ms) begin transaction
45282
+ SQL (4.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00]]
45283
+  (0.0ms) commit transaction
45284
+  (0.1ms) begin transaction
45285
+ SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]]
45286
+  (0.0ms) commit transaction
45287
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
45288
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45289
+  (0.0ms) begin transaction
45290
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
45291
+  (0.0ms) commit transaction
45292
+  (0.0ms) begin transaction
45293
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:48:09 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00]]
45294
+  (0.0ms) commit transaction
45295
+  (0.0ms) begin transaction
45296
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:48:09 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00]]
45297
+  (0.0ms) commit transaction
45298
+  (0.0ms) begin transaction
45299
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00], ["dob", Tue, 09 Oct 1979 05:48:09 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00]]
45300
+  (0.0ms) commit transaction
45301
+ User Load (0.1ms) SELECT "users".* FROM "users"
45302
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45303
+  (0.0ms) begin transaction
45304
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
45305
+  (0.0ms) commit transaction
45306
+  (0.0ms) begin transaction
45307
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
45308
+  (0.0ms) commit transaction
45309
+  (0.0ms) begin transaction
45310
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
45311
+  (0.0ms) commit transaction
45312
+  (0.0ms) begin transaction
45313
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:48:09 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00]]
45314
+  (0.0ms) commit transaction
45315
+  (0.0ms) begin transaction
45316
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:48:09 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00]]
45317
+  (0.0ms) commit transaction
45318
+  (0.0ms) begin transaction
45319
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00], ["dob", Tue, 09 Oct 1979 05:48:09 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00]]
45320
+  (0.0ms) commit transaction
45321
+ User Load (0.1ms) SELECT "users".* FROM "users"
45322
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45323
+  (0.0ms) begin transaction
45324
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
45325
+  (0.0ms) commit transaction
45326
+  (0.0ms) begin transaction
45327
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
45328
+  (0.0ms) commit transaction
45329
+  (0.0ms) begin transaction
45330
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
45331
+  (0.0ms) commit transaction
45332
+  (0.0ms) begin transaction
45333
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:48:09 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00]]
45334
+  (0.0ms) commit transaction
45335
+  (0.0ms) begin transaction
45336
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:48:09 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00]]
45337
+  (0.0ms) commit transaction
45338
+  (0.0ms) begin transaction
45339
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00], ["dob", Tue, 09 Oct 1979 05:48:09 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 05:48:09 UTC +00:00]]
45340
+  (0.0ms) commit transaction
45341
+  (0.2ms) SELECT AVG("users"."age") AS avg_id FROM "users"
45342
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
45343
+ User Load (0.1ms) SELECT "users".* FROM "users"
45344
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45345
+  (0.0ms) begin transaction
45346
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
45347
+  (0.0ms) commit transaction
45348
+  (0.0ms) begin transaction
45349
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
45350
+  (0.0ms) commit transaction
45351
+  (0.0ms) begin transaction
45352
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
45353
+  (0.0ms) commit transaction
45354
+  (0.0ms) begin transaction
45355
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:48:11 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00]]
45356
+  (0.0ms) commit transaction
45357
+  (0.0ms) begin transaction
45358
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:48:11 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00]]
45359
+  (0.0ms) commit transaction
45360
+  (0.0ms) begin transaction
45361
+ 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]]
45362
+  (0.0ms) commit transaction
45363
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
45364
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45365
+  (0.0ms) begin transaction
45366
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
45367
+  (0.0ms) commit transaction
45368
+  (0.0ms) begin transaction
45369
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
45370
+  (0.0ms) commit transaction
45371
+  (0.0ms) begin transaction
45372
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
45373
+  (0.0ms) commit transaction
45374
+  (0.0ms) begin transaction
45375
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:48:11 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00]]
45376
+  (0.0ms) commit transaction
45377
+  (0.0ms) begin transaction
45378
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:48:11 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00]]
45379
+  (0.0ms) commit transaction
45380
+  (0.0ms) begin transaction
45381
+ 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]]
45382
+  (0.0ms) commit transaction
45383
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-10-09 05:48:11.000000' AND "users"."dob" <= '2013-11-09 05:48:11.000000')) LIMIT 25 OFFSET 0
45384
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45385
+  (0.0ms) begin transaction
45386
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
45387
+  (0.0ms) commit transaction
45388
+  (0.0ms) begin transaction
45389
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
45390
+  (0.0ms) commit transaction
45391
+  (0.0ms) begin transaction
45392
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
45393
+  (0.0ms) commit transaction
45394
+  (0.0ms) begin transaction
45395
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:48:11 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00]]
45396
+  (0.0ms) commit transaction
45397
+  (0.0ms) begin transaction
45398
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:48:11 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00]]
45399
+  (0.0ms) commit transaction
45400
+  (0.0ms) begin transaction
45401
+ 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]]
45402
+  (0.0ms) commit transaction
45403
+ User Load (0.1ms) SELECT "users".* FROM "users"
45404
+ User Load (0.1ms) SELECT "users".* FROM "users" 
45405
+  (0.0ms) begin transaction
45406
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
45407
+  (0.0ms) commit transaction
45408
+  (0.0ms) begin transaction
45409
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
45410
+  (0.0ms) commit transaction
45411
+  (0.0ms) begin transaction
45412
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
45413
+  (0.1ms) commit transaction
45414
+  (0.0ms) begin transaction
45415
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00], ["dob", Thu, 09 Oct 2003 05:48:11 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00]]
45416
+  (0.0ms) commit transaction
45417
+  (0.0ms) begin transaction
45418
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00], ["dob", Sat, 09 Oct 1993 05:48:11 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 09 Oct 2013 05:48:11 UTC +00:00]]
45419
+  (0.0ms) commit transaction
45420
+  (0.0ms) begin transaction
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
+  (0.0ms) commit transaction
45423
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
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.8
4
+ version: 1.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-07 00:00:00.000000000 Z
12
+ date: 2013-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails