query_report 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
  <tfoot>
3
3
  <tr>
4
4
  <% report.column_total_with_colspan.each do |total_with_colspan| %>
5
- <td colspan="<%= total_with_colspan[:colspan] %>" align="right"><%= total_with_colspan[:content] %></td>
5
+ <td colspan="<%= total_with_colspan[:colspan] %>" class="queryreport-td-align-right"><%= total_with_colspan[:content] %></td>
6
6
  <% end %>
7
7
  </tr>
8
8
  </tfoot>
@@ -13,7 +13,7 @@
13
13
  <% report.columns.each do |column| %>
14
14
  <% value = record[column.humanize]
15
15
  align = column.align
16
- align_attr = align ? "align=#{align.to_s}" : ''
16
+ align_attr = align ? "class=queryreport-td-align-#{align.to_s}" : ''
17
17
  %>
18
18
  <% if value.kind_of?(Hash) %>
19
19
  <td rowspan="<%= value[:rowspan] %>" <%= align_attr %> ><%= value[:content] %></td>
@@ -1 +1 @@
1
- <%= render :partial => "query_report/_list", locals: {report: @report} %>
1
+ <%= render :partial => "query_report/list", locals: {report: @report} %>
@@ -38,7 +38,6 @@ module QueryReport
38
38
  options = {:title => title, backgroundColor: 'transparent'}.merge(@options)
39
39
  chart_type = "#{type}_chart".classify
40
40
  chart_type = "GoogleVisualr::Interactive::#{chart_type}".constantize
41
- ap @data_table.as_json
42
41
  chart_type.new(@data_table, options)
43
42
  end
44
43
 
@@ -30,7 +30,7 @@ module QueryReport
30
30
  title = total_text_printed ? '' : I18n.t('query_report.total')
31
31
  total_with_colspan << (colspan == 1 ? {content: title} : {content: title, colspan: colspan})
32
32
  end
33
- total_with_colspan << {content: column.total}
33
+ total_with_colspan << {content: column.total, align: column.align}
34
34
  total_text_printed = true
35
35
  colspan = 0
36
36
  else
@@ -54,30 +54,44 @@ module QueryReport
54
54
  end
55
55
 
56
56
  def alignment_hash
57
- #@alignment_hash ||= report.columns.inject({}, ) do |col|
58
- # column(index).style :align => col.align if col.align
59
- #end
57
+ @alignment_hash ||= report.columns.inject({}) do |col_hash, col|
58
+ col_hash[col.humanize] = col.align if col.align; col_hash
59
+ end
60
60
  end
61
61
 
62
62
  def table_content_for(report)
63
63
  table_items = report.all_records_with_rowspan
64
+
64
65
  items = table_items.map do |item|
65
66
  item_values = []
66
67
 
67
68
  report_columns.collect(&:humanize).each do |column|
68
- item_values << fix_content(item[column]) if item.has_key? column
69
+ item_values << prepare_content(column, item) if item.has_key? column
69
70
  end
70
71
  item_values
71
72
  end
72
73
 
73
74
  if report.has_total?
74
75
  items = items << report.column_total_with_colspan.collect do |total|
75
- total[:colspan] ? total : total[:content]
76
+ total[:content] = fix_content(total[:content]) if total.kind_of?(Hash)
77
+ total
76
78
  end
77
79
  end
78
80
  items
79
81
  end
80
82
 
83
+ def prepare_content(column, item)
84
+ content = fix_content(item[column])
85
+ if alignment_hash[column]
86
+ if content.kind_of? Hash
87
+ content[:align] = alignment_hash[column]
88
+ else
89
+ content = {content: fix_content(content), align: alignment_hash[column]}
90
+ end
91
+ end
92
+ content
93
+ end
94
+
81
95
  def render_table_with(report)
82
96
  items = [humanized_table_header]
83
97
  items += table_content_for(report)
@@ -96,7 +110,12 @@ module QueryReport
96
110
  end
97
111
 
98
112
  def fix_content(content)
99
- content.kind_of?(Hash) ? content : content.to_s
113
+ if content.kind_of?(Hash)
114
+ content[:content] = content[:content].to_s
115
+ content
116
+ else
117
+ content.to_s
118
+ end
100
119
  end
101
120
 
102
121
  private
@@ -1,3 +1,3 @@
1
1
  module QueryReport
2
- VERSION = "1.0.15"
2
+ VERSION = "1.0.16"
3
3
  end
@@ -46520,3 +46520,1105 @@ Connecting to database specified by database.yml
46520
46520
  SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 22]]
46521
46521
   (0.0ms) commit transaction
46522
46522
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1
46523
+ Connecting to database specified by database.yml
46524
+
46525
+
46526
+ Started GET "/" for 127.0.0.1 at 2013-11-03 14:56:56 +0600
46527
+ Processing by InvoicesController#index as HTML
46528
+  (0.6ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-06-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-12-03 00:00:00.000000' AND "invoices"."paid" = 'f'))
46529
+  (0.4ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-06-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-12-03 00:00:00.000000' AND "invoices"."paid" = 'f'))
46530
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-06-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-12-03 00:00:00.000000' AND "invoices"."paid" = 'f'))
46531
+ CACHE (0.0ms) SELECT SUM("invoices"."total_charged") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-06-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-12-03 00:00:00.000000' AND "invoices"."paid" = 'f'))
46532
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-06-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-12-03 00:00:00.000000' AND "invoices"."paid" = 'f'))
46533
+ CACHE (0.0ms) SELECT SUM("invoices"."total_paid") AS sum_id FROM "invoices" WHERE (("invoices"."created_at" >= '2013-06-03 00:00:00.000000' AND "invoices"."created_at" <= '2013-12-03 00:00:00.000000' AND "invoices"."paid" = 'f'))
46534
+ Rendered /home/jitu/projects/query_report/app/views/query_report/list.html.erb within layouts/application (88.4ms)
46535
+ Completed 500 Internal Server Error in 355ms
46536
+
46537
+ ActionView::Template::Error (Missing partial query_report/_list with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder]}. Searched in:
46538
+ * "/home/jitu/projects/query_report/test/dummy/app/views"
46539
+ * "/home/jitu/projects/query_report/app/views"
46540
+ * "/usr/local/rvm/gems/ruby-1.9.3-p429/gems/kaminari-0.14.1/app/views"
46541
+ ):
46542
+ 1: <%= render :partial => "query_report/_list", locals: {report: @report} %>
46543
+ app/controllers/invoices_controller.rb:10:in `index'
46544
+
46545
+
46546
+ Rendered /usr/local/rvm/gems/ruby-1.9.3-p429/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.5ms)
46547
+ Rendered /usr/local/rvm/gems/ruby-1.9.3-p429/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.7ms)
46548
+ Rendered /usr/local/rvm/gems/ruby-1.9.3-p429/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (12.6ms)
46549
+ Connecting to database specified by database.yml
46550
+  (3.5ms) select sqlite_version(*)
46551
+  (0.5ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46552
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
46553
+  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46554
+  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46555
+  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46556
+  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46557
+ Connecting to database specified by database.yml
46558
+  (3.4ms) select sqlite_version(*)
46559
+  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46560
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
46561
+  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46562
+  (0.3ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46563
+  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46564
+  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46565
+ User Load (2.3ms) SELECT "users".* FROM "users"
46566
+  (0.1ms) begin transaction
46567
+ SQL (6.8ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:07:36 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:07:36 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:07:36 UTC +00:00]]
46568
+  (0.1ms) commit transaction
46569
+  (0.1ms) begin transaction
46570
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:07:36 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:07:36 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:07:36 UTC +00:00]]
46571
+  (0.1ms) commit transaction
46572
+  (0.1ms) begin transaction
46573
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:07:36 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:07:36 UTC +00:00]]
46574
+  (0.1ms) commit transaction
46575
+ User Load (0.2ms) SELECT "users".* FROM "users"
46576
+  (0.1ms) begin transaction
46577
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
46578
+  (0.1ms) commit transaction
46579
+  (0.0ms) begin transaction
46580
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
46581
+  (0.1ms) commit transaction
46582
+  (0.1ms) begin transaction
46583
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
46584
+  (0.1ms) commit transaction
46585
+  (0.1ms) begin transaction
46586
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:07:36 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:07:36 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:07:36 UTC +00:00]]
46587
+  (0.1ms) commit transaction
46588
+  (0.1ms) begin transaction
46589
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:07:36 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:07:36 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:07:36 UTC +00:00]]
46590
+  (0.1ms) commit transaction
46591
+  (0.1ms) begin transaction
46592
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:07:36 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:07:36 UTC +00:00]]
46593
+  (0.1ms) commit transaction
46594
+ User Load (0.2ms) SELECT "users".* FROM "users" 
46595
+ User Load (0.3ms) SELECT "users".* FROM "users"
46596
+ Connecting to database specified by database.yml
46597
+  (1.8ms) select sqlite_version(*)
46598
+  (0.3ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46599
+  (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) 
46600
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46601
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46602
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46603
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46604
+ User Load (1.4ms) SELECT "users".* FROM "users"
46605
+  (0.1ms) begin transaction
46606
+ SQL (26.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:08:51 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:08:51 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:08:51 UTC +00:00]]
46607
+  (0.1ms) commit transaction
46608
+  (0.0ms) begin transaction
46609
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:08:51 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:08:51 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:08:51 UTC +00:00]]
46610
+  (0.0ms) commit transaction
46611
+  (0.0ms) begin transaction
46612
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:08:51 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:08:51 UTC +00:00]]
46613
+  (0.0ms) commit transaction
46614
+ Connecting to database specified by database.yml
46615
+  (3.1ms) select sqlite_version(*)
46616
+  (0.5ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46617
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
46618
+  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46619
+  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46620
+  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46621
+  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46622
+ User Load (2.2ms) SELECT "users".* FROM "users"
46623
+  (0.1ms) begin transaction
46624
+ SQL (6.6ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:09:28 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:09:27 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:09:28 UTC +00:00]]
46625
+  (0.1ms) commit transaction
46626
+  (0.1ms) begin transaction
46627
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:09:28 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:09:28 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:09:28 UTC +00:00]]
46628
+  (0.1ms) commit transaction
46629
+  (0.0ms) begin transaction
46630
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:09:28 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:09:28 UTC +00:00]]
46631
+  (0.1ms) commit transaction
46632
+ User Load (0.3ms) SELECT "users".* FROM "users"
46633
+ Connecting to database specified by database.yml
46634
+  (35.9ms) select sqlite_version(*)
46635
+  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46636
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
46637
+  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46638
+  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46639
+  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46640
+  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46641
+ User Load (2.3ms) SELECT "users".* FROM "users"
46642
+  (0.1ms) begin transaction
46643
+ SQL (6.8ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:10:24 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:10:24 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:10:24 UTC +00:00]]
46644
+  (0.1ms) commit transaction
46645
+  (0.1ms) begin transaction
46646
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:10:24 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:10:24 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:10:24 UTC +00:00]]
46647
+  (0.1ms) commit transaction
46648
+  (0.0ms) begin transaction
46649
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:10:24 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:10:24 UTC +00:00]]
46650
+  (0.1ms) commit transaction
46651
+ User Load (0.3ms) SELECT "users".* FROM "users"
46652
+ Connecting to database specified by database.yml
46653
+  (3.4ms) select sqlite_version(*)
46654
+  (0.5ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46655
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
46656
+  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46657
+  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46658
+  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46659
+  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46660
+ User Load (2.2ms) SELECT "users".* FROM "users"
46661
+  (0.1ms) begin transaction
46662
+ SQL (6.9ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:11:04 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:11:04 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:11:04 UTC +00:00]]
46663
+  (0.1ms) commit transaction
46664
+  (0.1ms) begin transaction
46665
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:11:04 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:11:04 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:11:04 UTC +00:00]]
46666
+  (0.1ms) commit transaction
46667
+  (0.1ms) begin transaction
46668
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:11:04 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:11:04 UTC +00:00]]
46669
+  (0.1ms) commit transaction
46670
+ User Load (0.2ms) SELECT "users".* FROM "users"
46671
+ Connecting to database specified by database.yml
46672
+  (22.0ms) select sqlite_version(*)
46673
+  (0.3ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46674
+  (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) 
46675
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46676
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46677
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46678
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46679
+ User Load (1.2ms) SELECT "users".* FROM "users"
46680
+  (0.1ms) begin transaction
46681
+ SQL (6.5ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:11:40 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:11:40 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:11:40 UTC +00:00]]
46682
+  (0.1ms) commit transaction
46683
+  (0.1ms) begin transaction
46684
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:11:40 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:11:40 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:11:40 UTC +00:00]]
46685
+  (0.1ms) commit transaction
46686
+  (0.0ms) begin transaction
46687
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:11:40 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:11:40 UTC +00:00]]
46688
+  (0.0ms) commit transaction
46689
+ User Load (0.2ms) SELECT "users".* FROM "users"
46690
+ Connecting to database specified by database.yml
46691
+  (35.2ms) select sqlite_version(*)
46692
+  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46693
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
46694
+  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46695
+  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46696
+  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46697
+  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46698
+ User Load (2.4ms) SELECT "users".* FROM "users"
46699
+  (0.1ms) begin transaction
46700
+ SQL (6.5ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:14:49 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46701
+  (0.1ms) commit transaction
46702
+  (0.1ms) begin transaction
46703
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:14:49 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46704
+  (0.1ms) commit transaction
46705
+  (0.1ms) begin transaction
46706
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46707
+  (0.1ms) commit transaction
46708
+ User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
46709
+ User Load (0.2ms) SELECT "users".* FROM "users" 
46710
+  (0.1ms) begin transaction
46711
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
46712
+  (0.1ms) commit transaction
46713
+  (0.1ms) begin transaction
46714
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
46715
+  (0.1ms) commit transaction
46716
+  (0.1ms) begin transaction
46717
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
46718
+  (0.1ms) commit transaction
46719
+  (0.1ms) begin transaction
46720
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:14:49 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46721
+  (0.1ms) commit transaction
46722
+  (0.1ms) begin transaction
46723
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:14:49 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46724
+  (0.1ms) commit transaction
46725
+  (0.1ms) begin transaction
46726
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46727
+  (0.1ms) commit transaction
46728
+ User Load (0.2ms) SELECT "users".* FROM "users"
46729
+ User Load (0.2ms) SELECT "users".* FROM "users" 
46730
+  (0.1ms) begin transaction
46731
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
46732
+  (0.1ms) commit transaction
46733
+  (0.1ms) begin transaction
46734
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
46735
+  (0.1ms) commit transaction
46736
+  (0.1ms) begin transaction
46737
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
46738
+  (0.1ms) commit transaction
46739
+  (0.1ms) begin transaction
46740
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:14:49 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46741
+  (0.1ms) commit transaction
46742
+  (0.1ms) begin transaction
46743
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:14:49 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46744
+  (0.1ms) commit transaction
46745
+  (0.1ms) begin transaction
46746
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46747
+  (0.0ms) commit transaction
46748
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-11-03 09:14:49.000000' AND "users"."dob" <= '2013-12-03 09:14:49.000000')) LIMIT 25 OFFSET 0
46749
+ User Load (0.2ms) SELECT "users".* FROM "users" 
46750
+  (0.1ms) begin transaction
46751
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
46752
+  (0.1ms) commit transaction
46753
+  (0.1ms) begin transaction
46754
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
46755
+  (0.1ms) commit transaction
46756
+  (0.1ms) begin transaction
46757
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
46758
+  (0.1ms) commit transaction
46759
+  (0.1ms) begin transaction
46760
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:14:49 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46761
+  (0.1ms) commit transaction
46762
+  (0.1ms) begin transaction
46763
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:14:49 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46764
+  (0.1ms) commit transaction
46765
+  (0.1ms) begin transaction
46766
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46767
+  (0.1ms) commit transaction
46768
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
46769
+  (0.1ms) begin transaction
46770
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46771
+  (0.1ms) commit transaction
46772
+  (0.0ms) begin transaction
46773
+ SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 13]]
46774
+  (0.1ms) commit transaction
46775
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1
46776
+ User Load (0.3ms) SELECT "users".* FROM "users"
46777
+  (0.0ms) begin transaction
46778
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
46779
+  (0.0ms) commit transaction
46780
+  (0.0ms) begin transaction
46781
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
46782
+  (0.1ms) commit transaction
46783
+  (0.1ms) begin transaction
46784
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
46785
+  (0.1ms) commit transaction
46786
+  (0.1ms) begin transaction
46787
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
46788
+  (0.1ms) commit transaction
46789
+  (0.1ms) begin transaction
46790
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:14:49 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46791
+  (0.1ms) commit transaction
46792
+  (0.1ms) begin transaction
46793
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:14:49 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46794
+  (0.1ms) commit transaction
46795
+  (0.1ms) begin transaction
46796
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46797
+  (0.1ms) commit transaction
46798
+ User Load (0.2ms) SELECT "users".* FROM "users"
46799
+ User Load (0.2ms) SELECT "users".* FROM "users" 
46800
+  (0.1ms) begin transaction
46801
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
46802
+  (0.1ms) commit transaction
46803
+  (0.1ms) begin transaction
46804
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
46805
+  (0.1ms) commit transaction
46806
+  (0.1ms) begin transaction
46807
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
46808
+  (0.1ms) commit transaction
46809
+  (0.1ms) begin transaction
46810
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:14:49 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46811
+  (0.1ms) commit transaction
46812
+  (0.1ms) begin transaction
46813
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:14:49 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46814
+  (0.0ms) commit transaction
46815
+  (0.0ms) begin transaction
46816
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00], ["dob", Sat, 03 Nov 1979 09:14:49 UTC +00:00], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:14:49 UTC +00:00]]
46817
+  (0.1ms) commit transaction
46818
+ User Load (0.2ms) SELECT "users".* FROM "users"
46819
+ User Load (0.3ms) SELECT "users".* FROM "users" 
46820
+  (0.1ms) begin transaction
46821
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
46822
+  (0.1ms) commit transaction
46823
+  (0.1ms) begin transaction
46824
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
46825
+  (0.1ms) commit transaction
46826
+  (0.1ms) begin transaction
46827
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
46828
+  (0.1ms) commit transaction
46829
+  (0.1ms) begin transaction
46830
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:14:50 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:14:50 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:14:50 UTC +00:00]]
46831
+  (0.1ms) commit transaction
46832
+  (0.1ms) begin transaction
46833
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:14:50 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:14:50 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:14:50 UTC +00:00]]
46834
+  (0.1ms) commit transaction
46835
+  (0.1ms) begin transaction
46836
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:14:50 UTC +00:00], ["dob", Sat, 03 Nov 1979 09:14:50 UTC +00:00], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:14:50 UTC +00:00]]
46837
+  (0.1ms) commit transaction
46838
+ User Load (0.2ms) SELECT "users".* FROM "users"
46839
+ User Load (0.3ms) SELECT "users".* FROM "users" 
46840
+  (0.1ms) begin transaction
46841
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 20]]
46842
+  (0.1ms) commit transaction
46843
+  (0.1ms) begin transaction
46844
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 21]]
46845
+  (0.1ms) commit transaction
46846
+  (0.1ms) begin transaction
46847
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 22]]
46848
+  (0.1ms) commit transaction
46849
+  (0.1ms) begin transaction
46850
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:14:50 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:14:50 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:14:50 UTC +00:00]]
46851
+  (0.1ms) commit transaction
46852
+  (0.0ms) begin transaction
46853
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:14:50 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:14:50 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:14:50 UTC +00:00]]
46854
+  (0.0ms) commit transaction
46855
+  (0.0ms) begin transaction
46856
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:14:50 UTC +00:00], ["dob", Sat, 03 Nov 1979 09:14:50 UTC +00:00], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:14:50 UTC +00:00]]
46857
+  (0.0ms) commit transaction
46858
+  (0.2ms) SELECT AVG("users"."age") AS avg_id FROM "users"
46859
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
46860
+ User Load (0.2ms) SELECT "users".* FROM "users"
46861
+ Connecting to database specified by database.yml
46862
+  (3.6ms) select sqlite_version(*)
46863
+  (0.5ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46864
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
46865
+  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46866
+  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46867
+  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46868
+  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46869
+ User Load (2.2ms) SELECT "users".* FROM "users"
46870
+  (0.1ms) begin transaction
46871
+ SQL (6.7ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:22:49 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:22:49 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:22:49 UTC +00:00]]
46872
+  (0.1ms) commit transaction
46873
+  (0.1ms) begin transaction
46874
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:22:49 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:22:49 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:22:49 UTC +00:00]]
46875
+  (0.1ms) commit transaction
46876
+  (0.1ms) begin transaction
46877
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:22:49 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:22:49 UTC +00:00]]
46878
+  (0.0ms) commit transaction
46879
+ User Load (0.2ms) SELECT "users".* FROM "users"
46880
+ Connecting to database specified by database.yml
46881
+  (35.4ms) select sqlite_version(*)
46882
+  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46883
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
46884
+  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46885
+  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46886
+  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46887
+  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46888
+ User Load (2.2ms) SELECT "users".* FROM "users"
46889
+  (0.1ms) begin transaction
46890
+ SQL (6.5ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:25:12 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:25:12 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:25:12 UTC +00:00]]
46891
+  (0.1ms) commit transaction
46892
+  (0.1ms) begin transaction
46893
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:25:12 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:25:12 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:25:12 UTC +00:00]]
46894
+  (0.1ms) commit transaction
46895
+  (0.1ms) begin transaction
46896
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:25:12 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:25:12 UTC +00:00]]
46897
+  (0.1ms) commit transaction
46898
+ User Load (0.3ms) SELECT "users".* FROM "users"
46899
+ User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
46900
+ Connecting to database specified by database.yml
46901
+  (35.9ms) select sqlite_version(*)
46902
+  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46903
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
46904
+  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46905
+  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46906
+  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46907
+  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46908
+ User Load (2.4ms) SELECT "users".* FROM "users"
46909
+  (0.1ms) begin transaction
46910
+ SQL (7.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:30:51 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:30:51 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:30:51 UTC +00:00]]
46911
+  (0.1ms) commit transaction
46912
+  (0.1ms) begin transaction
46913
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:30:51 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:30:51 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:30:51 UTC +00:00]]
46914
+  (0.1ms) commit transaction
46915
+  (0.1ms) begin transaction
46916
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:30:51 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:30:51 UTC +00:00]]
46917
+  (0.1ms) commit transaction
46918
+ User Load (0.2ms) SELECT "users".* FROM "users"
46919
+ User Load (0.3ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
46920
+ Connecting to database specified by database.yml
46921
+  (3.1ms) select sqlite_version(*)
46922
+  (0.5ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46923
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
46924
+  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46925
+  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46926
+  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46927
+  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46928
+ User Load (2.2ms) SELECT "users".* FROM "users"
46929
+  (0.1ms) begin transaction
46930
+ SQL (39.6ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 09:36:10 UTC +00:00], ["dob", Mon, 03 Nov 2003 09:36:10 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 09:36:10 UTC +00:00]]
46931
+  (0.1ms) commit transaction
46932
+  (0.1ms) begin transaction
46933
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 09:36:10 UTC +00:00], ["dob", Wed, 03 Nov 1993 09:36:10 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 09:36:10 UTC +00:00]]
46934
+  (0.1ms) commit transaction
46935
+  (0.1ms) begin transaction
46936
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 09:36:10 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 09:36:10 UTC +00:00]]
46937
+  (0.1ms) commit transaction
46938
+ User Load (0.2ms) SELECT "users".* FROM "users"
46939
+ User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
46940
+ Connecting to database specified by database.yml
46941
+  (3.2ms) select sqlite_version(*)
46942
+  (0.6ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
46943
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
46944
+  (0.2ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
46945
+  (0.2ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
46946
+  (0.2ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
46947
+  (0.3ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
46948
+ User Load (2.5ms) SELECT "users".* FROM "users"
46949
+  (0.1ms) begin transaction
46950
+ SQL (6.5ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Mon, 03 Nov 2003 10:17:05 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
46951
+  (0.1ms) commit transaction
46952
+  (0.1ms) begin transaction
46953
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Wed, 03 Nov 1993 10:17:05 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
46954
+  (0.1ms) commit transaction
46955
+  (0.1ms) begin transaction
46956
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
46957
+  (0.1ms) commit transaction
46958
+ User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
46959
+ User Load (0.2ms) SELECT "users".* FROM "users" 
46960
+  (0.1ms) begin transaction
46961
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
46962
+  (0.1ms) commit transaction
46963
+  (0.1ms) begin transaction
46964
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
46965
+  (0.1ms) commit transaction
46966
+  (0.1ms) begin transaction
46967
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
46968
+  (0.1ms) commit transaction
46969
+  (0.1ms) begin transaction
46970
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Mon, 03 Nov 2003 10:17:05 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
46971
+  (0.1ms) commit transaction
46972
+  (0.1ms) begin transaction
46973
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Wed, 03 Nov 1993 10:17:05 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
46974
+  (0.1ms) commit transaction
46975
+  (0.1ms) begin transaction
46976
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
46977
+  (0.1ms) commit transaction
46978
+ User Load (0.2ms) SELECT "users".* FROM "users"
46979
+ User Load (0.2ms) SELECT "users".* FROM "users" 
46980
+  (0.1ms) begin transaction
46981
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
46982
+  (0.1ms) commit transaction
46983
+  (0.1ms) begin transaction
46984
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
46985
+  (0.1ms) commit transaction
46986
+  (0.1ms) begin transaction
46987
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
46988
+  (0.1ms) commit transaction
46989
+  (0.1ms) begin transaction
46990
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Mon, 03 Nov 2003 10:17:05 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
46991
+  (0.1ms) commit transaction
46992
+  (0.1ms) begin transaction
46993
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Wed, 03 Nov 1993 10:17:05 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
46994
+  (0.0ms) commit transaction
46995
+  (0.0ms) begin transaction
46996
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
46997
+  (0.0ms) commit transaction
46998
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-11-03 10:17:05.000000' AND "users"."dob" <= '2013-12-03 10:17:05.000000')) LIMIT 25 OFFSET 0
46999
+ User Load (0.2ms) SELECT "users".* FROM "users" 
47000
+  (0.1ms) begin transaction
47001
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
47002
+  (0.1ms) commit transaction
47003
+  (0.1ms) begin transaction
47004
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
47005
+  (0.1ms) commit transaction
47006
+  (0.1ms) begin transaction
47007
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
47008
+  (0.1ms) commit transaction
47009
+  (0.1ms) begin transaction
47010
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Mon, 03 Nov 2003 10:17:05 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
47011
+  (0.1ms) commit transaction
47012
+  (0.1ms) begin transaction
47013
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Wed, 03 Nov 1993 10:17:05 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
47014
+  (0.1ms) commit transaction
47015
+  (0.1ms) begin transaction
47016
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
47017
+  (0.1ms) commit transaction
47018
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
47019
+ User Load (0.2ms) SELECT "users".* FROM "users" 
47020
+  (0.1ms) begin transaction
47021
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
47022
+  (0.1ms) commit transaction
47023
+  (0.1ms) begin transaction
47024
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
47025
+  (0.1ms) commit transaction
47026
+  (0.1ms) begin transaction
47027
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
47028
+  (0.1ms) commit transaction
47029
+  (0.1ms) begin transaction
47030
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Mon, 03 Nov 2003 10:17:05 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
47031
+  (0.1ms) commit transaction
47032
+  (0.1ms) begin transaction
47033
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Wed, 03 Nov 1993 10:17:05 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
47034
+  (0.1ms) commit transaction
47035
+  (0.1ms) begin transaction
47036
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Sat, 03 Nov 1979 10:17:05 UTC +00:00], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
47037
+  (0.1ms) commit transaction
47038
+ User Load (0.2ms) SELECT "users".* FROM "users"
47039
+ User Load (0.2ms) SELECT "users".* FROM "users" 
47040
+  (0.1ms) begin transaction
47041
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
47042
+  (0.1ms) commit transaction
47043
+  (0.1ms) begin transaction
47044
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
47045
+  (0.1ms) commit transaction
47046
+  (0.1ms) begin transaction
47047
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
47048
+  (0.1ms) commit transaction
47049
+  (0.1ms) begin transaction
47050
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Mon, 03 Nov 2003 10:17:05 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
47051
+  (0.1ms) commit transaction
47052
+  (0.1ms) begin transaction
47053
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Wed, 03 Nov 1993 10:17:05 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
47054
+  (0.0ms) commit transaction
47055
+  (0.0ms) begin transaction
47056
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00], ["dob", Sat, 03 Nov 1979 10:17:05 UTC +00:00], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 10:17:05 UTC +00:00]]
47057
+  (0.1ms) commit transaction
47058
+  (0.2ms) SELECT AVG("users"."age") AS avg_id FROM "users"
47059
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
47060
+ User Load (0.2ms) SELECT "users".* FROM "users"
47061
+ User Load (0.2ms) SELECT "users".* FROM "users" 
47062
+  (0.1ms) begin transaction
47063
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
47064
+  (0.1ms) commit transaction
47065
+  (0.1ms) begin transaction
47066
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
47067
+  (0.1ms) commit transaction
47068
+  (0.1ms) begin transaction
47069
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
47070
+  (0.1ms) commit transaction
47071
+  (0.1ms) begin transaction
47072
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 10:17:08 UTC +00:00], ["dob", Mon, 03 Nov 2003 10:17:08 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 10:17:08 UTC +00:00]]
47073
+  (0.1ms) commit transaction
47074
+  (0.1ms) begin transaction
47075
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 10:17:08 UTC +00:00], ["dob", Wed, 03 Nov 1993 10:17:08 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 10:17:08 UTC +00:00]]
47076
+  (0.1ms) commit transaction
47077
+  (0.1ms) begin transaction
47078
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 10:17:08 UTC +00:00], ["dob", Sat, 03 Nov 1979 10:17:08 UTC +00:00], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 10:17:08 UTC +00:00]]
47079
+  (0.1ms) commit transaction
47080
+ User Load (0.2ms) SELECT "users".* FROM "users"
47081
+  (0.1ms) begin transaction
47082
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Sun, 03 Nov 2013 10:17:09 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Sun, 03 Nov 2013 10:17:09 UTC +00:00]]
47083
+  (0.1ms) commit transaction
47084
+  (0.1ms) begin transaction
47085
+ SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 22]]
47086
+  (0.1ms) commit transaction
47087
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1
47088
+ User Load (0.3ms) SELECT "users".* FROM "users"
47089
+  (0.1ms) begin transaction
47090
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
47091
+  (0.0ms) commit transaction
47092
+  (0.0ms) begin transaction
47093
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 20]]
47094
+  (0.0ms) commit transaction
47095
+  (0.1ms) begin transaction
47096
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 21]]
47097
+  (0.1ms) commit transaction
47098
+  (0.1ms) begin transaction
47099
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 22]]
47100
+  (0.1ms) commit transaction
47101
+  (0.1ms) begin transaction
47102
+ SQL (0.4ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 03 Nov 2013 10:17:09 UTC +00:00], ["dob", Mon, 03 Nov 2003 10:17:09 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 03 Nov 2013 10:17:09 UTC +00:00]]
47103
+  (0.1ms) commit transaction
47104
+  (0.1ms) begin transaction
47105
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 03 Nov 2013 10:17:09 UTC +00:00], ["dob", Wed, 03 Nov 1993 10:17:09 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 03 Nov 2013 10:17:09 UTC +00:00]]
47106
+  (0.1ms) commit transaction
47107
+  (0.1ms) begin transaction
47108
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 03 Nov 2013 10:17:09 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 03 Nov 2013 10:17:09 UTC +00:00]]
47109
+  (0.2ms) commit transaction
47110
+ User Load (0.2ms) SELECT "users".* FROM "users"
47111
+ User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
47112
+ Connecting to database specified by database.yml
47113
+  (1.5ms) select sqlite_version(*)
47114
+  (0.4ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
47115
+  (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) 
47116
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
47117
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
47118
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
47119
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
47120
+  (0.0ms) begin transaction
47121
+ SQL (4.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00]]
47122
+  (0.0ms) commit transaction
47123
+  (0.0ms) begin transaction
47124
+ SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]]
47125
+  (0.0ms) commit transaction
47126
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
47127
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47128
+  (0.0ms) begin transaction
47129
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
47130
+  (0.0ms) commit transaction
47131
+  (0.0ms) begin transaction
47132
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00], ["dob", Mon, 10 Nov 2003 12:52:46 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00]]
47133
+  (0.0ms) commit transaction
47134
+  (0.0ms) begin transaction
47135
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00], ["dob", Wed, 10 Nov 1993 12:52:46 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00]]
47136
+  (0.0ms) commit transaction
47137
+  (0.0ms) begin transaction
47138
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00], ["dob", Sat, 10 Nov 1979 12:52:46 UTC +00:00], ["name", "User#3"], ["updated_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00]]
47139
+  (0.0ms) commit transaction
47140
+ User Load (0.1ms) SELECT "users".* FROM "users"
47141
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47142
+  (0.0ms) begin transaction
47143
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
47144
+  (0.0ms) commit transaction
47145
+  (0.0ms) begin transaction
47146
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
47147
+  (0.0ms) commit transaction
47148
+  (0.0ms) begin transaction
47149
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
47150
+  (0.0ms) commit transaction
47151
+  (0.0ms) begin transaction
47152
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00], ["dob", Mon, 10 Nov 2003 12:52:46 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00]]
47153
+  (0.0ms) commit transaction
47154
+  (0.0ms) begin transaction
47155
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00], ["dob", Wed, 10 Nov 1993 12:52:46 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00]]
47156
+  (0.0ms) commit transaction
47157
+  (0.0ms) begin transaction
47158
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00], ["dob", Sat, 10 Nov 1979 12:52:46 UTC +00:00], ["name", "User#3"], ["updated_at", Sun, 10 Nov 2013 12:52:46 UTC +00:00]]
47159
+  (0.0ms) commit transaction
47160
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"
47161
+  (0.0ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
47162
+ User Load (0.1ms) SELECT "users".* FROM "users"
47163
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47164
+  (0.0ms) begin transaction
47165
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
47166
+  (0.0ms) commit transaction
47167
+  (0.0ms) begin transaction
47168
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
47169
+  (0.0ms) commit transaction
47170
+  (0.0ms) begin transaction
47171
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
47172
+  (0.0ms) commit transaction
47173
+  (0.0ms) begin transaction
47174
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", Mon, 10 Nov 2003 12:52:47 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47175
+  (0.0ms) commit transaction
47176
+  (0.0ms) begin transaction
47177
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", Wed, 10 Nov 1993 12:52:47 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47178
+  (0.0ms) commit transaction
47179
+  (0.0ms) begin transaction
47180
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", Sat, 10 Nov 1979 12:52:47 UTC +00:00], ["name", "User#3"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47181
+  (0.0ms) commit transaction
47182
+ User Load (0.1ms) SELECT "users".* FROM "users"
47183
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47184
+  (0.0ms) begin transaction
47185
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
47186
+  (0.0ms) commit transaction
47187
+  (0.0ms) begin transaction
47188
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
47189
+  (0.0ms) commit transaction
47190
+  (0.0ms) begin transaction
47191
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
47192
+  (0.0ms) commit transaction
47193
+  (0.0ms) begin transaction
47194
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", Mon, 10 Nov 2003 12:52:47 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47195
+  (0.0ms) commit transaction
47196
+  (0.0ms) begin transaction
47197
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", Wed, 10 Nov 1993 12:52:47 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47198
+  (0.0ms) commit transaction
47199
+  (0.0ms) begin transaction
47200
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47201
+  (0.0ms) commit transaction
47202
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
47203
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47204
+  (0.0ms) begin transaction
47205
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
47206
+  (0.0ms) commit transaction
47207
+  (0.0ms) begin transaction
47208
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
47209
+  (0.0ms) commit transaction
47210
+  (0.0ms) begin transaction
47211
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
47212
+  (0.0ms) commit transaction
47213
+  (0.0ms) begin transaction
47214
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", Mon, 10 Nov 2003 12:52:47 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47215
+  (0.0ms) commit transaction
47216
+  (0.0ms) begin transaction
47217
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", Wed, 10 Nov 1993 12:52:47 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47218
+  (0.0ms) commit transaction
47219
+  (0.0ms) begin transaction
47220
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47221
+  (0.0ms) commit transaction
47222
+ User Load (0.1ms) SELECT "users".* FROM "users"
47223
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47224
+  (0.0ms) begin transaction
47225
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
47226
+  (0.0ms) commit transaction
47227
+  (0.0ms) begin transaction
47228
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
47229
+  (0.0ms) commit transaction
47230
+  (0.0ms) begin transaction
47231
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
47232
+  (0.0ms) commit transaction
47233
+  (0.0ms) begin transaction
47234
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", Mon, 10 Nov 2003 12:52:47 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47235
+  (0.0ms) commit transaction
47236
+  (0.0ms) begin transaction
47237
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", Wed, 10 Nov 1993 12:52:47 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47238
+  (0.0ms) commit transaction
47239
+  (0.0ms) begin transaction
47240
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47241
+  (0.0ms) commit transaction
47242
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-11-10 12:52:47.000000' AND "users"."dob" <= '2013-12-10 12:52:47.000000')) LIMIT 25 OFFSET 0
47243
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47244
+  (0.0ms) begin transaction
47245
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
47246
+  (0.0ms) commit transaction
47247
+  (0.0ms) begin transaction
47248
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
47249
+  (0.0ms) commit transaction
47250
+  (0.0ms) begin transaction
47251
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
47252
+  (0.0ms) commit transaction
47253
+  (0.0ms) begin transaction
47254
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", Mon, 10 Nov 2003 12:52:47 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47255
+  (0.0ms) commit transaction
47256
+  (0.0ms) begin transaction
47257
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", Wed, 10 Nov 1993 12:52:47 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47258
+  (0.0ms) commit transaction
47259
+  (0.0ms) begin transaction
47260
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47261
+  (0.0ms) commit transaction
47262
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
47263
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47264
+  (0.0ms) begin transaction
47265
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 20]]
47266
+  (0.0ms) commit transaction
47267
+  (0.0ms) begin transaction
47268
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 21]]
47269
+  (0.0ms) commit transaction
47270
+  (0.0ms) begin transaction
47271
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 22]]
47272
+  (0.0ms) commit transaction
47273
+  (0.0ms) begin transaction
47274
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", Mon, 10 Nov 2003 12:52:47 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47275
+  (0.0ms) commit transaction
47276
+  (0.0ms) begin transaction
47277
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", Wed, 10 Nov 1993 12:52:47 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47278
+  (0.0ms) commit transaction
47279
+  (0.0ms) begin transaction
47280
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 10 Nov 2013 12:52:47 UTC +00:00]]
47281
+  (0.0ms) commit transaction
47282
+ User Load (0.1ms) SELECT "users".* FROM "users"
47283
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
47284
+ Connecting to database specified by database.yml
47285
+  (22.7ms) select sqlite_version(*)
47286
+  (0.3ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
47287
+  (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) 
47288
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
47289
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
47290
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
47291
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
47292
+  (0.1ms) begin transaction
47293
+ SQL (24.5ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Mon, 11 Nov 2013 04:25:06 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Mon, 11 Nov 2013 04:25:06 UTC +00:00]]
47294
+  (0.0ms) commit transaction
47295
+  (0.0ms) begin transaction
47296
+ SQL (0.2ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]]
47297
+  (0.0ms) commit transaction
47298
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
47299
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47300
+  (0.0ms) begin transaction
47301
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
47302
+  (0.0ms) commit transaction
47303
+  (0.0ms) begin transaction
47304
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:25:06 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:25:06 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:25:06 UTC +00:00]]
47305
+  (0.0ms) commit transaction
47306
+  (0.0ms) begin transaction
47307
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:25:06 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:25:06 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:25:06 UTC +00:00]]
47308
+  (0.0ms) commit transaction
47309
+  (0.0ms) begin transaction
47310
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:25:06 UTC +00:00], ["dob", Sun, 11 Nov 1979 04:25:06 UTC +00:00], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:25:06 UTC +00:00]]
47311
+  (0.0ms) commit transaction
47312
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users"
47313
+  (0.0ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
47314
+ User Load (0.1ms) SELECT "users".* FROM "users"
47315
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47316
+  (0.0ms) begin transaction
47317
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
47318
+  (0.0ms) commit transaction
47319
+  (0.0ms) begin transaction
47320
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
47321
+  (0.0ms) commit transaction
47322
+  (0.0ms) begin transaction
47323
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
47324
+  (0.0ms) commit transaction
47325
+  (0.0ms) begin transaction
47326
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:25:08 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47327
+  (0.0ms) commit transaction
47328
+  (0.0ms) begin transaction
47329
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:25:08 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47330
+  (0.0ms) commit transaction
47331
+  (0.0ms) begin transaction
47332
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Sun, 11 Nov 1979 04:25:08 UTC +00:00], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47333
+  (0.0ms) commit transaction
47334
+ User Load (0.1ms) SELECT "users".* FROM "users"
47335
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47336
+  (0.0ms) begin transaction
47337
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
47338
+  (0.0ms) commit transaction
47339
+  (0.0ms) begin transaction
47340
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
47341
+  (0.0ms) commit transaction
47342
+  (0.0ms) begin transaction
47343
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
47344
+  (0.0ms) commit transaction
47345
+  (0.0ms) begin transaction
47346
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:25:08 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47347
+  (0.0ms) commit transaction
47348
+  (0.0ms) begin transaction
47349
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:25:08 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47350
+  (0.0ms) commit transaction
47351
+  (0.0ms) begin transaction
47352
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Sun, 11 Nov 1979 04:25:08 UTC +00:00], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47353
+  (0.0ms) commit transaction
47354
+ User Load (0.1ms) SELECT "users".* FROM "users"
47355
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47356
+  (0.0ms) begin transaction
47357
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
47358
+  (0.0ms) commit transaction
47359
+  (0.0ms) begin transaction
47360
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
47361
+  (0.0ms) commit transaction
47362
+  (0.0ms) begin transaction
47363
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
47364
+  (0.0ms) commit transaction
47365
+  (0.0ms) begin transaction
47366
+ SQL (0.3ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:25:08 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47367
+  (0.0ms) commit transaction
47368
+  (0.0ms) begin transaction
47369
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:25:08 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47370
+  (0.0ms) commit transaction
47371
+  (0.0ms) begin transaction
47372
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47373
+  (0.0ms) commit transaction
47374
+ User Load (0.1ms) SELECT "users".* FROM "users"
47375
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
47376
+ User Load (0.1ms) SELECT "users".* FROM "users"
47377
+  (0.0ms) begin transaction
47378
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
47379
+  (0.0ms) commit transaction
47380
+  (0.0ms) begin transaction
47381
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
47382
+  (0.0ms) commit transaction
47383
+  (0.0ms) begin transaction
47384
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
47385
+  (0.0ms) commit transaction
47386
+  (0.0ms) begin transaction
47387
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:25:08 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47388
+  (0.0ms) commit transaction
47389
+  (0.0ms) begin transaction
47390
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:25:08 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47391
+  (0.0ms) commit transaction
47392
+  (0.0ms) begin transaction
47393
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47394
+  (0.0ms) commit transaction
47395
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
47396
+ User Load (0.1ms) SELECT "users".* FROM "users"
47397
+  (0.0ms) begin transaction
47398
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
47399
+  (0.0ms) commit transaction
47400
+  (0.0ms) begin transaction
47401
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
47402
+  (0.0ms) commit transaction
47403
+  (0.0ms) begin transaction
47404
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
47405
+  (0.0ms) commit transaction
47406
+  (0.0ms) begin transaction
47407
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:25:08 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47408
+  (0.0ms) commit transaction
47409
+  (0.0ms) begin transaction
47410
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:25:08 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47411
+  (0.0ms) commit transaction
47412
+  (0.0ms) begin transaction
47413
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47414
+  (0.0ms) commit transaction
47415
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47416
+ User Load (0.1ms) SELECT "users".* FROM "users"
47417
+  (0.0ms) begin transaction
47418
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
47419
+  (0.0ms) commit transaction
47420
+  (0.0ms) begin transaction
47421
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
47422
+  (0.0ms) commit transaction
47423
+  (0.0ms) begin transaction
47424
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
47425
+  (0.0ms) commit transaction
47426
+  (0.0ms) begin transaction
47427
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:25:08 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47428
+  (0.0ms) commit transaction
47429
+  (0.0ms) begin transaction
47430
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:25:08 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47431
+  (0.0ms) commit transaction
47432
+  (0.1ms) begin transaction
47433
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47434
+  (0.0ms) commit transaction
47435
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-11-11 04:25:08.000000' AND "users"."dob" <= '2013-12-11 04:25:08.000000')) LIMIT 25 OFFSET 0
47436
+ User Load (0.1ms) SELECT "users".* FROM "users"
47437
+  (0.0ms) begin transaction
47438
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 20]]
47439
+  (0.0ms) commit transaction
47440
+  (0.0ms) begin transaction
47441
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 21]]
47442
+  (0.0ms) commit transaction
47443
+  (0.0ms) begin transaction
47444
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 22]]
47445
+  (0.0ms) commit transaction
47446
+  (0.0ms) begin transaction
47447
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:25:08 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47448
+  (0.0ms) commit transaction
47449
+  (0.0ms) begin transaction
47450
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:25:08 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47451
+  (0.0ms) commit transaction
47452
+  (0.0ms) begin transaction
47453
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:25:08 UTC +00:00]]
47454
+  (0.0ms) commit transaction
47455
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
47456
+ Connecting to database specified by database.yml
47457
+  (1.3ms) select sqlite_version(*)
47458
+  (0.2ms) CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
47459
+  (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) 
47460
+  (0.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
47461
+  (0.1ms) CREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) 
47462
+  (0.1ms) CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
47463
+  (0.1ms) CREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) 
47464
+ User Load (1.0ms) SELECT "users".* FROM "users"
47465
+  (0.0ms) begin transaction
47466
+ SQL (2.9ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:28:22 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47467
+  (0.1ms) commit transaction
47468
+  (0.0ms) begin transaction
47469
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:28:22 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47470
+  (0.0ms) commit transaction
47471
+  (0.0ms) begin transaction
47472
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47473
+  (0.0ms) commit transaction
47474
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
47475
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47476
+  (0.0ms) begin transaction
47477
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
47478
+  (0.0ms) commit transaction
47479
+  (0.0ms) begin transaction
47480
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
47481
+  (0.0ms) commit transaction
47482
+  (0.0ms) begin transaction
47483
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
47484
+  (0.0ms) commit transaction
47485
+  (0.0ms) begin transaction
47486
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:28:22 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47487
+  (0.0ms) commit transaction
47488
+  (0.0ms) begin transaction
47489
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:28:22 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47490
+  (0.0ms) commit transaction
47491
+  (0.0ms) begin transaction
47492
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47493
+  (0.0ms) commit transaction
47494
+ User Load (0.1ms) SELECT "users".* FROM "users"
47495
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47496
+  (0.0ms) begin transaction
47497
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
47498
+  (0.0ms) commit transaction
47499
+  (0.0ms) begin transaction
47500
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
47501
+  (0.0ms) commit transaction
47502
+  (0.0ms) begin transaction
47503
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
47504
+  (0.0ms) commit transaction
47505
+  (0.0ms) begin transaction
47506
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:28:22 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47507
+  (0.0ms) commit transaction
47508
+  (0.0ms) begin transaction
47509
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:28:22 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47510
+  (0.0ms) commit transaction
47511
+  (0.0ms) begin transaction
47512
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47513
+  (0.0ms) commit transaction
47514
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-11-11 04:28:22.000000' AND "users"."dob" <= '2013-12-11 04:28:22.000000')) LIMIT 25 OFFSET 0
47515
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47516
+  (0.0ms) begin transaction
47517
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
47518
+  (0.0ms) commit transaction
47519
+  (0.0ms) begin transaction
47520
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
47521
+  (0.0ms) commit transaction
47522
+  (0.0ms) begin transaction
47523
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
47524
+  (0.0ms) commit transaction
47525
+  (0.0ms) begin transaction
47526
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:28:22 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47527
+  (0.0ms) commit transaction
47528
+  (0.0ms) begin transaction
47529
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:28:22 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47530
+  (0.0ms) commit transaction
47531
+  (0.0ms) begin transaction
47532
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47533
+  (0.0ms) commit transaction
47534
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
47535
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47536
+  (0.0ms) begin transaction
47537
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]
47538
+  (0.0ms) commit transaction
47539
+  (0.0ms) begin transaction
47540
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
47541
+  (0.0ms) commit transaction
47542
+  (0.0ms) begin transaction
47543
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
47544
+  (0.0ms) commit transaction
47545
+  (0.0ms) begin transaction
47546
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:28:22 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47547
+  (0.0ms) commit transaction
47548
+  (0.0ms) begin transaction
47549
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:28:22 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47550
+  (0.0ms) commit transaction
47551
+  (0.0ms) begin transaction
47552
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47553
+  (0.0ms) commit transaction
47554
+ User Load (0.1ms) SELECT "users".* FROM "users"
47555
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
47556
+ User Load (0.1ms) SELECT "users".* FROM "users"
47557
+  (0.1ms) begin transaction
47558
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]
47559
+  (0.0ms) commit transaction
47560
+  (0.0ms) begin transaction
47561
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
47562
+  (0.0ms) commit transaction
47563
+  (0.0ms) begin transaction
47564
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
47565
+  (0.0ms) commit transaction
47566
+  (0.0ms) begin transaction
47567
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:28:22 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47568
+  (0.0ms) commit transaction
47569
+  (0.0ms) begin transaction
47570
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:28:22 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47571
+  (0.0ms) commit transaction
47572
+  (0.0ms) begin transaction
47573
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Sun, 11 Nov 1979 04:28:22 UTC +00:00], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47574
+  (0.0ms) commit transaction
47575
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47576
+ User Load (0.1ms) SELECT "users".* FROM "users"
47577
+  (0.0ms) begin transaction
47578
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 16]]
47579
+  (0.0ms) commit transaction
47580
+  (0.0ms) begin transaction
47581
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
47582
+  (0.0ms) commit transaction
47583
+  (0.0ms) begin transaction
47584
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
47585
+  (0.0ms) commit transaction
47586
+  (0.0ms) begin transaction
47587
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:28:22 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47588
+  (0.0ms) commit transaction
47589
+  (0.0ms) begin transaction
47590
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:28:22 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47591
+  (0.0ms) commit transaction
47592
+  (0.0ms) begin transaction
47593
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00], ["dob", Sun, 11 Nov 1979 04:28:22 UTC +00:00], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:28:22 UTC +00:00]]
47594
+  (0.0ms) commit transaction
47595
+  (0.1ms) SELECT AVG("users"."age") AS avg_id FROM "users" 
47596
+  (0.0ms) SELECT AVG("users"."age") AS avg_id FROM "users"
47597
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47598
+ User Load (0.1ms) SELECT "users".* FROM "users"
47599
+  (0.0ms) begin transaction
47600
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 19]]
47601
+  (0.0ms) commit transaction
47602
+  (0.0ms) begin transaction
47603
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 20]]
47604
+  (0.0ms) commit transaction
47605
+  (0.0ms) begin transaction
47606
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 21]]
47607
+  (0.0ms) commit transaction
47608
+  (0.0ms) begin transaction
47609
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Mon, 11 Nov 2013 04:28:23 UTC +00:00], ["dob", Tue, 11 Nov 2003 04:28:23 UTC +00:00], ["name", "User#1"], ["updated_at", Mon, 11 Nov 2013 04:28:23 UTC +00:00]]
47610
+  (0.0ms) commit transaction
47611
+  (0.0ms) begin transaction
47612
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 20], ["created_at", Mon, 11 Nov 2013 04:28:23 UTC +00:00], ["dob", Thu, 11 Nov 1993 04:28:23 UTC +00:00], ["name", "User#2"], ["updated_at", Mon, 11 Nov 2013 04:28:23 UTC +00:00]]
47613
+  (0.0ms) commit transaction
47614
+  (0.0ms) begin transaction
47615
+ SQL (0.1ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Mon, 11 Nov 2013 04:28:23 UTC +00:00], ["dob", Sun, 11 Nov 1979 04:28:23 UTC +00:00], ["name", "User#3"], ["updated_at", Mon, 11 Nov 2013 04:28:23 UTC +00:00]]
47616
+  (0.0ms) commit transaction
47617
+ User Load (0.1ms) SELECT "users".* FROM "users" 
47618
+  (0.1ms) begin transaction
47619
+ SQL (0.2ms) INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Mon, 11 Nov 2013 04:28:23 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Mon, 11 Nov 2013 04:28:23 UTC +00:00]]
47620
+  (0.0ms) commit transaction
47621
+  (0.0ms) begin transaction
47622
+ SQL (0.1ms) INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 25]]
47623
+  (0.0ms) commit transaction
47624
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1