prosperity 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/prosperity/application.css.scss +1 -1
  3. data/app/controllers/prosperity/dashboard_graphs_controller.rb +6 -2
  4. data/app/controllers/prosperity/graphs_controller.rb +9 -1
  5. data/app/models/prosperity/dashboard_graph.rb +2 -0
  6. data/app/views/layouts/prosperity/application.html.erb +1 -2
  7. data/app/views/prosperity/dashboards/show.html.erb +4 -0
  8. data/app/views/prosperity/graphs/_common_fields.html.erb +14 -0
  9. data/app/views/prosperity/graphs/edit.html.erb +2 -9
  10. data/app/views/prosperity/graphs/new.html.erb +1 -9
  11. data/app/views/prosperity/graphs/show.html.erb +6 -3
  12. data/lib/prosperity/version.rb +1 -1
  13. data/spec/controllers/prosperity/dashboard_graphs_controller_spec.rb +7 -0
  14. data/spec/controllers/prosperity/graphs_controller_spec.rb +6 -0
  15. data/spec/dummy/log/development.log +2863 -0
  16. data/spec/dummy/log/test.log +3900 -0
  17. data/spec/dummy/tmp/cache/assets/development/sass/34a577735054231563e7022ea73e1468db9203ba/application.css.scssc +0 -0
  18. data/spec/dummy/tmp/cache/assets/development/sprockets/210050da208fb75a75b701bfa4e8470f +0 -0
  19. data/spec/dummy/tmp/cache/assets/development/sprockets/a2b14d5c46db32da9183354fb3fcd0bf +0 -0
  20. data/spec/dummy/tmp/cache/assets/development/sprockets/a6d6196cfd275dea0718553a95f997a5 +0 -0
  21. data/spec/dummy/tmp/cache/assets/test/sass/34a577735054231563e7022ea73e1468db9203ba/application.css.scssc +0 -0
  22. data/spec/dummy/tmp/cache/assets/test/sprockets/210050da208fb75a75b701bfa4e8470f +0 -0
  23. data/spec/dummy/tmp/cache/assets/test/sprockets/a2b14d5c46db32da9183354fb3fcd0bf +0 -0
  24. data/spec/dummy/tmp/cache/assets/test/sprockets/a6d6196cfd275dea0718553a95f997a5 +0 -0
  25. metadata +3 -2
@@ -134395,3 +134395,3903 @@ Processing by Prosperity::DashboardGraphsController#destroy as HTML
134395
134395
  Prosperity::Dashboard Load (0.1ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 35]]
134396
134396
  Prosperity::DashboardGraph Load (0.2ms) SELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."graph_id" = 74 AND "prosperity_dashboard_graphs"."dashboard_id" = 35 ORDER BY "prosperity_dashboard_graphs"."id" ASC LIMIT 1
134397
134397
  Completed 404 Not Found in 2ms
134398
+  (13.8ms) DROP TABLE "users"
134399
+  (40.6ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134400
+  (0.1ms) BEGIN
134401
+ SQL (24.5ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-16 23:58:49.442777"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-16 23:58:49.442777"]]
134402
+  (0.4ms) COMMIT
134403
+ Processing by Prosperity::GraphsController#show as HTML
134404
+ Parameters: {"id"=>"75"}
134405
+ Prosperity::Graph Load (6.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 75]]
134406
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (1.8ms)
134407
+ Completed 200 OK in 48ms (Views: 37.8ms | ActiveRecord: 6.2ms)
134408
+ Processing by Prosperity::GraphsController#show as HTML
134409
+ Parameters: {"id"=>"unknown_id"}
134410
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]]
134411
+ Completed 404 Not Found in 1ms
134412
+  (2.8ms) DROP TABLE "users"
134413
+  (5.2ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134414
+  (0.1ms) BEGIN
134415
+ SQL (0.4ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:00:22.706631"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:00:22.706631"]]
134416
+  (0.3ms) COMMIT
134417
+ Processing by Prosperity::GraphsController#show as HTML
134418
+ Parameters: {"id"=>"76"}
134419
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 76]]
134420
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (1.4ms)
134421
+ Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.3ms)
134422
+ Processing by Prosperity::GraphsController#show as HTML
134423
+ Parameters: {"id"=>"unknown_id"}
134424
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]]
134425
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (0.3ms)
134426
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.5ms)
134427
+  (3.0ms) DROP TABLE "users"
134428
+  (4.1ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134429
+  (0.2ms) BEGIN
134430
+ SQL (0.4ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:00:36.342036"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:00:36.342036"]]
134431
+  (0.3ms) COMMIT
134432
+ Processing by Prosperity::GraphsController#show as HTML
134433
+ Parameters: {"id"=>"77"}
134434
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 77]]
134435
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (1.4ms)
134436
+ Completed 200 OK in 22ms (Views: 19.0ms | ActiveRecord: 0.3ms)
134437
+ Processing by Prosperity::GraphsController#show as HTML
134438
+ Parameters: {"id"=>"unknown_id"}
134439
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]]
134440
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (0.3ms)
134441
+ Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.6ms)
134442
+  (2.2ms) DROP TABLE "users"
134443
+  (4.0ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134444
+  (0.1ms) BEGIN
134445
+ SQL (0.4ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:00:47.493576"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:00:47.493576"]]
134446
+  (0.4ms) COMMIT
134447
+ Processing by Prosperity::GraphsController#show as HTML
134448
+ Parameters: {"id"=>"78"}
134449
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 78]]
134450
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (1.3ms)
134451
+ Completed 200 OK in 22ms (Views: 18.8ms | ActiveRecord: 0.3ms)
134452
+ Processing by Prosperity::GraphsController#show as HTML
134453
+ Parameters: {"id"=>"unknown_id"}
134454
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]]
134455
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (0.3ms)
134456
+ Completed 404 Not Found in 3ms (Views: 1.7ms | ActiveRecord: 0.5ms)
134457
+  (2.7ms) DROP TABLE "users"
134458
+  (4.9ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134459
+  (0.1ms) BEGIN
134460
+ SQL (0.3ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:02:01.858657"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:02:01.858657"]]
134461
+  (0.4ms) COMMIT
134462
+ Processing by Prosperity::GraphsController#show as HTML
134463
+ Parameters: {"id"=>"79"}
134464
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 79]]
134465
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (1.3ms)
134466
+ Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.3ms)
134467
+ Processing by Prosperity::GraphsController#show as HTML
134468
+ Parameters: {"id"=>"unknown_id"}
134469
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]]
134470
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (0.3ms)
134471
+ Completed 404 Not Found in 2ms (Views: 1.6ms | ActiveRecord: 0.5ms)
134472
+  (2.6ms) DROP TABLE "users"
134473
+  (3.8ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134474
+  (0.1ms) BEGIN
134475
+ SQL (0.4ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:02:52.710690"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:02:52.710690"]]
134476
+  (0.2ms) COMMIT
134477
+ Processing by Prosperity::GraphsController#show as HTML
134478
+ Parameters: {"id"=>"80"}
134479
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 80]]
134480
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (1.5ms)
134481
+ Completed 200 OK in 22ms (Views: 18.7ms | ActiveRecord: 0.3ms)
134482
+ Processing by Prosperity::GraphsController#show as HTML
134483
+ Parameters: {"id"=>"unknown_id"}
134484
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]]
134485
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (0.3ms)
134486
+ Completed 404 Not Found in 2ms (Views: 1.6ms | ActiveRecord: 0.6ms)
134487
+  (2.5ms) DROP TABLE "users"
134488
+  (3.7ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134489
+  (0.1ms) BEGIN
134490
+ SQL (0.4ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:03:00.989481"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:03:00.989481"]]
134491
+  (0.3ms) COMMIT
134492
+ Processing by Prosperity::GraphsController#show as HTML
134493
+ Parameters: {"id"=>"81"}
134494
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 81]]
134495
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (2.2ms)
134496
+ Completed 200 OK in 24ms (Views: 20.5ms | ActiveRecord: 0.3ms)
134497
+ Processing by Prosperity::GraphsController#show as HTML
134498
+ Parameters: {"id"=>"unknown_id"}
134499
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]]
134500
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (0.5ms)
134501
+ Completed 404 Not Found in 3ms (Views: 2.1ms | ActiveRecord: 0.6ms)
134502
+  (6.8ms) DROP TABLE "users"
134503
+  (3.6ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134504
+  (0.1ms) BEGIN
134505
+ SQL (0.4ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:03:19.433030"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:03:19.433030"]]
134506
+  (0.4ms) COMMIT
134507
+ Processing by Prosperity::GraphsController#show as HTML
134508
+ Parameters: {"id"=>"82"}
134509
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 82]]
134510
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (1.4ms)
134511
+ Completed 200 OK in 22ms (Views: 19.3ms | ActiveRecord: 0.3ms)
134512
+ Processing by Prosperity::GraphsController#show as HTML
134513
+ Parameters: {"id"=>"unknown_id"}
134514
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]]
134515
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (0.3ms)
134516
+ Completed 404 Not Found in 4ms (Views: 1.7ms | ActiveRecord: 0.5ms)
134517
+  (8.0ms) DROP TABLE "users"
134518
+  (31.6ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134519
+  (0.1ms) BEGIN
134520
+ SQL (0.3ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:03:53.524322"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:03:53.524322"]]
134521
+  (0.3ms) COMMIT
134522
+ Processing by Prosperity::GraphsController#show as HTML
134523
+ Parameters: {"id"=>"83"}
134524
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 83]]
134525
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (1.5ms)
134526
+ Completed 200 OK in 22ms (Views: 18.7ms | ActiveRecord: 0.3ms)
134527
+ Processing by Prosperity::GraphsController#show as HTML
134528
+ Parameters: {"id"=>"unknown_id"}
134529
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]]
134530
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/show.html.erb within layouts/prosperity/embedabble (0.1ms)
134531
+ Completed 404 Not Found in 2ms (Views: 1.4ms | ActiveRecord: 0.5ms)
134532
+  (6.5ms) DROP TABLE "users"
134533
+  (5.6ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134534
+  (0.1ms) BEGIN
134535
+ SQL (0.4ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:03:59.591679"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:03:59.591679"]]
134536
+  (0.3ms) COMMIT
134537
+ Processing by Prosperity::GraphsController#show as JSON
134538
+ Parameters: {"id"=>"84"}
134539
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 84]]
134540
+ Prosperity::GraphLine Load (19.0ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 84]]
134541
+ Completed 200 OK in 37ms (Views: 0.3ms | ActiveRecord: 19.9ms)
134542
+  (0.1ms) BEGIN
134543
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:03:59.637025"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:03:59.637025"]]
134544
+  (4.7ms) COMMIT
134545
+  (0.1ms) BEGIN
134546
+ SQL (1.2ms) INSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-05-17 00:03:59.647734"], ["extractor", "count"], ["graph_id", 85], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-17 00:03:59.647734"]]
134547
+  (0.2ms) COMMIT
134548
+ Processing by Prosperity::GraphsController#show as JSON
134549
+ Parameters: {"id"=>"85"}
134550
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 85]]
134551
+ Prosperity::GraphLine Load (0.3ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 85]]
134552
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.5ms)
134553
+  (0.1ms) BEGIN
134554
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:03:59.655139"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:03:59.655139"]]
134555
+  (0.4ms) COMMIT
134556
+ Processing by Prosperity::GraphsController#show as HTML
134557
+ Parameters: {"id"=>"86"}
134558
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 86]]
134559
+ Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.2ms)
134560
+  (0.1ms) BEGIN
134561
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:03:59.679444"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:03:59.679444"]]
134562
+  (0.3ms) COMMIT
134563
+ Processing by Prosperity::GraphsController#show as HTML
134564
+ Parameters: {"id"=>"87"}
134565
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 87]]
134566
+ Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms)
134567
+  (0.1ms) BEGIN
134568
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:03:59.687085"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:03:59.687085"]]
134569
+  (0.4ms) COMMIT
134570
+ Processing by Prosperity::GraphsController#show as HTML
134571
+ Parameters: {"id"=>"88"}
134572
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 88]]
134573
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)
134574
+ Processing by Prosperity::GraphsController#show as HTML
134575
+ Parameters: {"id"=>"unknown_id"}
134576
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]]
134577
+ Completed 404 Not Found in 2ms (Views: 1.2ms | ActiveRecord: 0.4ms)
134578
+  (0.1ms) BEGIN
134579
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:03:59.695733"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:03:59.695733"]]
134580
+  (0.3ms) COMMIT
134581
+ Processing by Prosperity::GraphsController#edit as HTML
134582
+ Parameters: {"id"=>"89"}
134583
+ Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 89]]
134584
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 89]]
134585
+ Completed 200 OK in 36ms (Views: 28.0ms | ActiveRecord: 0.4ms)
134586
+  (0.1ms) BEGIN
134587
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:03:59.735720"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:03:59.735720"]]
134588
+  (5.4ms) COMMIT
134589
+ Processing by Prosperity::GraphsController#update as HTML
134590
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"foo", "metric"=>"bar", "extractor"=>"count"}}}, "id"=>"90"}
134591
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 90]]
134592
+  (0.1ms) BEGIN
134593
+ SQL (0.2ms) INSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-05-17 00:03:59.745820"], ["extractor", "count"], ["graph_id", 90], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-17 00:03:59.745820"]]
134594
+  (4.9ms) COMMIT
134595
+ Redirected to http://test.host/prosperity/graphs/90/edit
134596
+ Completed 302 Found in 8ms (ActiveRecord: 5.3ms)
134597
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 90]]
134598
+  (0.2ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 90]]
134599
+  (0.1ms) BEGIN
134600
+ SQL (0.1ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:03:59.755276"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:03:59.755276"]]
134601
+  (0.3ms) COMMIT
134602
+  (0.1ms) BEGIN
134603
+ SQL (0.2ms) INSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-05-17 00:03:59.757116"], ["extractor", "count"], ["graph_id", 91], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-17 00:03:59.757116"]]
134604
+  (0.2ms) COMMIT
134605
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1 [["graph_id", 91]]
134606
+ Processing by Prosperity::GraphsController#update as HTML
134607
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"19", "option"=>"new_option", "extractor"=>"interval"}}}, "id"=>"91"}
134608
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 91]]
134609
+  (0.1ms) BEGIN
134610
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 AND "prosperity_graph_lines"."id" IN (19) [["graph_id", 91]]
134611
+ SQL (0.2ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "option" = $2, "updated_at" = $3 WHERE "prosperity_graph_lines"."id" = 19 [["extractor", "interval"], ["option", "new_option"], ["updated_at", "2014-05-17 00:03:59.766422"]]
134612
+  (5.9ms) COMMIT
134613
+ Redirected to http://test.host/prosperity/graphs/91/edit
134614
+ Completed 302 Found in 14ms (ActiveRecord: 6.6ms)
134615
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 91]]
134616
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1 [["graph_id", 91]]
134617
+  (0.1ms) BEGIN
134618
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:03:59.777386"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:03:59.777386"]]
134619
+  (6.0ms) COMMIT
134620
+  (0.1ms) BEGIN
134621
+ SQL (0.2ms) INSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-05-17 00:03:59.785369"], ["extractor", "count"], ["graph_id", 92], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-17 00:03:59.785369"]]
134622
+  (4.7ms) COMMIT
134623
+ Processing by Prosperity::GraphsController#update as HTML
134624
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"default", "metric"=>"UsersMetric", "extractor"=>"interval", "id"=>"20"}, "1"=>{"option"=>"default", "metric"=>"", "extractor"=>"change"}}}, "id"=>"92"}
134625
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 92]]
134626
+  (0.1ms) BEGIN
134627
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 AND "prosperity_graph_lines"."id" IN (20) [["graph_id", 92]]
134628
+ SQL (0.2ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "metric" = $2, "option" = $3, "updated_at" = $4 WHERE "prosperity_graph_lines"."id" = 20 [["extractor", "interval"], ["metric", "UsersMetric"], ["option", "default"], ["updated_at", "2014-05-17 00:03:59.795488"]]
134629
+  (0.3ms) COMMIT
134630
+ Redirected to http://test.host/prosperity/graphs/92/edit
134631
+ Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
134632
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 LIMIT 1 [["id", 20]]
134633
+ Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 92]]
134634
+  (0.1ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 92]]
134635
+ Processing by Prosperity::GraphsController#new as HTML
134636
+ Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
134637
+  (0.2ms) SELECT COUNT(*) FROM "prosperity_graphs"
134638
+ Processing by Prosperity::GraphsController#create as HTML
134639
+ Parameters: {"graph"=>{"title"=>"My Graph", "period"=>"month", "graph_type"=>"line"}}
134640
+  (0.1ms) BEGIN
134641
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:03:59.812928"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:03:59.812928"]]
134642
+  (5.6ms) COMMIT
134643
+ Redirected to http://test.host/prosperity/graphs/93/edit
134644
+ Completed 302 Found in 8ms (ActiveRecord: 5.9ms)
134645
+  (0.2ms) SELECT COUNT(*) FROM "prosperity_graphs"
134646
+ Processing by Prosperity::GraphsController#create as HTML
134647
+ Parameters: {"graph"=>{"graph"=>{}}}
134648
+ Unpermitted parameters: graph
134649
+ Unpermitted parameters: graph
134650
+ Unpermitted parameters: graph
134651
+  (0.2ms) BEGIN
134652
+  (0.1ms) ROLLBACK
134653
+ Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.2ms)
134654
+  (2.6ms) DROP TABLE "users"
134655
+  (5.7ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134656
+  (0.1ms) BEGIN
134657
+ SQL (1.7ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:10:06.419191"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-17 00:10:06.419191"]]
134658
+  (0.2ms) COMMIT
134659
+  (0.1ms) BEGIN
134660
+ SQL (0.3ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:10:06.430841"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:10:06.430841"]]
134661
+  (0.3ms) COMMIT
134662
+ Processing by Prosperity::DashboardGraphsController#create as HTML
134663
+ Parameters: {"dashboard_id"=>"36", "graph_id"=>"94"}
134664
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 94]]
134665
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 36]]
134666
+  (0.1ms) BEGIN
134667
+ SQL (2.7ms) INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:10:06.458148"], ["dashboard_id", 36], ["graph_id", 94], ["updated_at", "2014-05-17 00:10:06.458148"]]
134668
+  (0.3ms) COMMIT
134669
+ Redirected to http://test.host/prosperity/dashboards/36/edit
134670
+ Completed 302 Found in 29ms (ActiveRecord: 6.2ms)
134671
+ Processing by Prosperity::DashboardGraphsController#create as HTML
134672
+ Parameters: {"dashboard_id"=>"36", "graph_id"=>"94"}
134673
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 94]]
134674
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 36]]
134675
+  (0.1ms) BEGIN
134676
+ SQL (0.4ms) INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:10:06.467440"], ["dashboard_id", 36], ["graph_id", 94], ["updated_at", "2014-05-17 00:10:06.467440"]]
134677
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_prosperity_dashboard_graphs_on_graph_id_and_dashboard_id"
134678
+ DETAIL: Key (graph_id, dashboard_id)=(94, 36) already exists.
134679
+ : INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"
134680
+  (0.1ms) ROLLBACK
134681
+ Completed 500 Internal Server Error in 3ms
134682
+  (2.0ms) DROP TABLE "users"
134683
+  (3.8ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134684
+  (0.2ms) BEGIN
134685
+ SQL (0.3ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:11:19.354565"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-17 00:11:19.354565"]]
134686
+  (0.4ms) COMMIT
134687
+  (0.1ms) BEGIN
134688
+ SQL (0.4ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:11:19.364928"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:11:19.364928"]]
134689
+  (0.3ms) COMMIT
134690
+ Processing by Prosperity::DashboardGraphsController#create as HTML
134691
+ Parameters: {"dashboard_id"=>"37", "graph_id"=>"95"}
134692
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 95]]
134693
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 37]]
134694
+  (0.1ms) BEGIN
134695
+ SQL (0.3ms) INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:11:19.383440"], ["dashboard_id", 37], ["graph_id", 95], ["updated_at", "2014-05-17 00:11:19.383440"]]
134696
+  (0.2ms) COMMIT
134697
+ Redirected to http://test.host/prosperity/dashboards/37/edit
134698
+ Completed 302 Found in 18ms (ActiveRecord: 2.3ms)
134699
+ Processing by Prosperity::DashboardGraphsController#create as HTML
134700
+ Parameters: {"dashboard_id"=>"37", "graph_id"=>"95"}
134701
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 95]]
134702
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 37]]
134703
+  (0.1ms) BEGIN
134704
+ SQL (0.4ms) INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:11:19.389914"], ["dashboard_id", 37], ["graph_id", 95], ["updated_at", "2014-05-17 00:11:19.389914"]]
134705
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_prosperity_dashboard_graphs_on_graph_id_and_dashboard_id"
134706
+ DETAIL: Key (graph_id, dashboard_id)=(95, 37) already exists.
134707
+ : INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"
134708
+  (0.1ms) ROLLBACK
134709
+ Completed 500 Internal Server Error in 3ms
134710
+  (2.2ms) DROP TABLE "users"
134711
+  (4.0ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134712
+  (0.2ms) BEGIN
134713
+ SQL (0.3ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:12:18.219452"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-17 00:12:18.219452"]]
134714
+  (0.3ms) COMMIT
134715
+  (0.1ms) BEGIN
134716
+ SQL (0.3ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:12:18.230007"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:12:18.230007"]]
134717
+  (0.2ms) COMMIT
134718
+ Processing by Prosperity::DashboardGraphsController#create as HTML
134719
+ Parameters: {"dashboard_id"=>"38", "graph_id"=>"96"}
134720
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 96]]
134721
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 38]]
134722
+ Completed 500 Internal Server Error in 10ms
134723
+  (2.1ms) DROP TABLE "users"
134724
+  (3.5ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134725
+  (0.1ms) BEGIN
134726
+ SQL (0.4ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:12:33.056328"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-17 00:12:33.056328"]]
134727
+  (5.7ms) COMMIT
134728
+  (0.1ms) BEGIN
134729
+ SQL (0.3ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:12:33.072214"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:12:33.072214"]]
134730
+  (0.3ms) COMMIT
134731
+ Processing by Prosperity::DashboardGraphsController#create as HTML
134732
+ Parameters: {"dashboard_id"=>"39", "graph_id"=>"97"}
134733
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 97]]
134734
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 39]]
134735
+  (0.1ms) BEGIN
134736
+ Prosperity::DashboardGraph Exists (0.4ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 39 AND "prosperity_dashboard_graphs"."graph_id" = 97) LIMIT 1
134737
+ SQL (0.2ms) INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:12:33.099657"], ["dashboard_id", 39], ["graph_id", 97], ["updated_at", "2014-05-17 00:12:33.099657"]]
134738
+  (0.4ms) COMMIT
134739
+ Redirected to http://test.host/prosperity/dashboards/39/edit
134740
+ Completed 302 Found in 25ms (ActiveRecord: 2.8ms)
134741
+ Processing by Prosperity::DashboardGraphsController#create as HTML
134742
+ Parameters: {"dashboard_id"=>"39", "graph_id"=>"97"}
134743
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 97]]
134744
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 39]]
134745
+  (0.1ms) BEGIN
134746
+ Prosperity::DashboardGraph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 39 AND "prosperity_dashboard_graphs"."graph_id" = 97) LIMIT 1
134747
+  (0.1ms) ROLLBACK
134748
+ Redirected to http://test.host/prosperity/dashboards/39/edit
134749
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
134750
+  (2.1ms) DROP TABLE "users"
134751
+  (3.8ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134752
+  (0.3ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs"
134753
+  (0.1ms) BEGIN
134754
+ SQL (0.3ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:12:38.889796"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-17 00:12:38.889796"]]
134755
+  (0.3ms) COMMIT
134756
+  (0.1ms) BEGIN
134757
+ SQL (0.3ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:12:38.900490"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:12:38.900490"]]
134758
+  (0.3ms) COMMIT
134759
+ Processing by Prosperity::DashboardGraphsController#create as HTML
134760
+ Parameters: {"dashboard_id"=>"40", "graph_id"=>"98"}
134761
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 98]]
134762
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 40]]
134763
+  (0.1ms) BEGIN
134764
+ Prosperity::DashboardGraph Exists (0.3ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 40 AND "prosperity_dashboard_graphs"."graph_id" = 98) LIMIT 1
134765
+ SQL (0.3ms) INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:12:38.922344"], ["dashboard_id", 40], ["graph_id", 98], ["updated_at", "2014-05-17 00:12:38.922344"]]
134766
+  (0.3ms) COMMIT
134767
+ Redirected to http://test.host/prosperity/dashboards/40/edit
134768
+ Completed 302 Found in 19ms (ActiveRecord: 1.5ms)
134769
+  (0.2ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs"
134770
+ Prosperity::DashboardGraph Load (0.2ms) SELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" ORDER BY "prosperity_dashboard_graphs"."id" DESC LIMIT 1
134771
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 98]]
134772
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 40]]
134773
+  (0.1ms) BEGIN
134774
+ SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:12:38.929451"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-17 00:12:38.929451"]]
134775
+  (0.4ms) COMMIT
134776
+  (0.1ms) BEGIN
134777
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:12:38.931166"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:12:38.931166"]]
134778
+  (0.2ms) COMMIT
134779
+ Processing by Prosperity::DashboardGraphsController#create as HTML
134780
+ Parameters: {"dashboard_id"=>"41", "graph_id"=>"99"}
134781
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 99]]
134782
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 41]]
134783
+  (0.1ms) BEGIN
134784
+ Prosperity::DashboardGraph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 41 AND "prosperity_dashboard_graphs"."graph_id" = 99) LIMIT 1
134785
+ SQL (0.1ms) INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:12:38.935554"], ["dashboard_id", 41], ["graph_id", 99], ["updated_at", "2014-05-17 00:12:38.935554"]]
134786
+  (0.3ms) COMMIT
134787
+ Redirected to http://test.host/prosperity/dashboards/41/edit
134788
+ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
134789
+ Processing by Prosperity::DashboardGraphsController#create as HTML
134790
+ Parameters: {"dashboard_id"=>"41", "graph_id"=>"99"}
134791
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 99]]
134792
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 41]]
134793
+  (0.1ms) BEGIN
134794
+ Prosperity::DashboardGraph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 41 AND "prosperity_dashboard_graphs"."graph_id" = 99) LIMIT 1
134795
+  (0.1ms) ROLLBACK
134796
+ Redirected to http://test.host/prosperity/dashboards/41/edit
134797
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
134798
+  (0.1ms) BEGIN
134799
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:12:38.946451"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:12:38.946451"]]
134800
+  (0.4ms) COMMIT
134801
+  (0.1ms) BEGIN
134802
+ SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:12:38.948145"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-17 00:12:38.948145"]]
134803
+  (0.2ms) COMMIT
134804
+  (0.1ms) BEGIN
134805
+ Prosperity::DashboardGraph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 42 AND "prosperity_dashboard_graphs"."graph_id" = 100) LIMIT 1
134806
+ SQL (0.1ms) INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:12:38.950260"], ["dashboard_id", 42], ["graph_id", 100], ["updated_at", "2014-05-17 00:12:38.950260"]]
134807
+  (0.3ms) COMMIT
134808
+  (0.1ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs"
134809
+ Processing by Prosperity::DashboardGraphsController#destroy as HTML
134810
+ Parameters: {"dashboard_id"=>"42", "graph_id"=>"100"}
134811
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 100]]
134812
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 42]]
134813
+ Prosperity::DashboardGraph Load (0.3ms) SELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."graph_id" = 100 AND "prosperity_dashboard_graphs"."dashboard_id" = 42 ORDER BY "prosperity_dashboard_graphs"."id" ASC LIMIT 1
134814
+  (0.1ms) BEGIN
134815
+ SQL (0.1ms) DELETE FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."id" = $1 [["id", 14]]
134816
+  (0.3ms) COMMIT
134817
+ Redirected to http://test.host/prosperity/dashboards/42/edit
134818
+ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
134819
+  (0.1ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs"
134820
+  (0.1ms) BEGIN
134821
+ SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-17 00:12:38.961635"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-17 00:12:38.961635"]]
134822
+  (5.7ms) COMMIT
134823
+  (0.1ms) BEGIN
134824
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-17 00:12:38.968949"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-17 00:12:38.968949"]]
134825
+  (5.6ms) COMMIT
134826
+ Processing by Prosperity::DashboardGraphsController#destroy as HTML
134827
+ Parameters: {"dashboard_id"=>"43", "graph_id"=>"101"}
134828
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 101]]
134829
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 43]]
134830
+ Prosperity::DashboardGraph Load (0.2ms) SELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."graph_id" = 101 AND "prosperity_dashboard_graphs"."dashboard_id" = 43 ORDER BY "prosperity_dashboard_graphs"."id" ASC LIMIT 1
134831
+ Completed 404 Not Found in 2ms
134832
+  (24.0ms) DROP TABLE "users"
134833
+  (50.2ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
134834
+  (0.1ms) BEGIN
134835
+ SQL (2.5ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:15.315223"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-20 18:56:15.315223"]]
134836
+  (0.3ms) COMMIT
134837
+  (0.1ms) BEGIN
134838
+ SQL (2.3ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:15.328848"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:15.328848"]]
134839
+  (0.2ms) COMMIT
134840
+ Processing by Prosperity::DashboardGraphsController#destroy as HTML
134841
+ Parameters: {"dashboard_id"=>"44", "graph_id"=>"102"}
134842
+ Prosperity::Graph Load (7.6ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 102]]
134843
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 44]]
134844
+ Prosperity::DashboardGraph Load (9.3ms) SELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."graph_id" = 102 AND "prosperity_dashboard_graphs"."dashboard_id" = 44 ORDER BY "prosperity_dashboard_graphs"."id" ASC LIMIT 1
134845
+ Completed 404 Not Found in 25ms
134846
+  (0.1ms) BEGIN
134847
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:15.363114"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:15.363114"]]
134848
+  (0.3ms) COMMIT
134849
+  (0.1ms) BEGIN
134850
+ SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:15.364850"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-20 18:56:15.364850"]]
134851
+  (0.2ms) COMMIT
134852
+  (0.1ms) BEGIN
134853
+ Prosperity::DashboardGraph Exists (0.3ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 45 AND "prosperity_dashboard_graphs"."graph_id" = 103) LIMIT 1
134854
+ SQL (15.5ms) INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:15.381505"], ["dashboard_id", 45], ["graph_id", 103], ["updated_at", "2014-05-20 18:56:15.381505"]]
134855
+  (0.3ms) COMMIT
134856
+  (0.2ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs"
134857
+ Processing by Prosperity::DashboardGraphsController#destroy as HTML
134858
+ Parameters: {"dashboard_id"=>"45", "graph_id"=>"103"}
134859
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 103]]
134860
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 45]]
134861
+ Prosperity::DashboardGraph Load (0.2ms) SELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."graph_id" = 103 AND "prosperity_dashboard_graphs"."dashboard_id" = 45 ORDER BY "prosperity_dashboard_graphs"."id" ASC LIMIT 1
134862
+  (0.1ms) BEGIN
134863
+ SQL (0.2ms) DELETE FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."id" = $1 [["id", 15]]
134864
+  (5.8ms) COMMIT
134865
+ Redirected to http://test.host/prosperity/dashboards/45/edit
134866
+ Completed 302 Found in 10ms (ActiveRecord: 6.6ms)
134867
+  (0.2ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs"
134868
+  (0.1ms) BEGIN
134869
+ SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:15.413444"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-20 18:56:15.413444"]]
134870
+  (5.9ms) COMMIT
134871
+  (0.1ms) BEGIN
134872
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:15.420939"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:15.420939"]]
134873
+  (4.5ms) COMMIT
134874
+ Processing by Prosperity::DashboardGraphsController#create as HTML
134875
+ Parameters: {"dashboard_id"=>"46", "graph_id"=>"104"}
134876
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 104]]
134877
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 46]]
134878
+  (0.1ms) BEGIN
134879
+ Prosperity::DashboardGraph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 46 AND "prosperity_dashboard_graphs"."graph_id" = 104) LIMIT 1
134880
+ SQL (0.1ms) INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:15.430191"], ["dashboard_id", 46], ["graph_id", 104], ["updated_at", "2014-05-20 18:56:15.430191"]]
134881
+  (0.3ms) COMMIT
134882
+ Redirected to http://test.host/prosperity/dashboards/46/edit
134883
+ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
134884
+ Processing by Prosperity::DashboardGraphsController#create as HTML
134885
+ Parameters: {"dashboard_id"=>"46", "graph_id"=>"104"}
134886
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 104]]
134887
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 46]]
134888
+  (0.1ms) BEGIN
134889
+ Prosperity::DashboardGraph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 46 AND "prosperity_dashboard_graphs"."graph_id" = 104) LIMIT 1
134890
+  (0.1ms) ROLLBACK
134891
+ Redirected to http://test.host/prosperity/dashboards/46/edit
134892
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
134893
+  (0.2ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs"
134894
+  (0.1ms) BEGIN
134895
+ SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:15.443215"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-20 18:56:15.443215"]]
134896
+  (0.3ms) COMMIT
134897
+  (0.1ms) BEGIN
134898
+ SQL (0.1ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:15.444886"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:15.444886"]]
134899
+  (0.2ms) COMMIT
134900
+ Processing by Prosperity::DashboardGraphsController#create as HTML
134901
+ Parameters: {"dashboard_id"=>"47", "graph_id"=>"105"}
134902
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 105]]
134903
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 47]]
134904
+  (0.1ms) BEGIN
134905
+ Prosperity::DashboardGraph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 47 AND "prosperity_dashboard_graphs"."graph_id" = 105) LIMIT 1
134906
+ SQL (0.2ms) INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:15.449887"], ["dashboard_id", 47], ["graph_id", 105], ["updated_at", "2014-05-20 18:56:15.449887"]]
134907
+  (0.3ms) COMMIT
134908
+ Redirected to http://test.host/prosperity/dashboards/47/edit
134909
+ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
134910
+  (0.2ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs"
134911
+ Prosperity::DashboardGraph Load (0.2ms) SELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" ORDER BY "prosperity_dashboard_graphs"."id" DESC LIMIT 1
134912
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 105]]
134913
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 47]]
134914
+ SQL (0.4ms) DELETE FROM "users"
134915
+  (0.1ms) BEGIN
134916
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.457183"], ["updated_at", "2014-05-20 18:56:15.462243"]]
134917
+  (0.2ms) COMMIT
134918
+  (0.1ms) BEGIN
134919
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.457344"], ["updated_at", "2014-05-20 18:56:15.464088"]]
134920
+  (0.3ms) COMMIT
134921
+  (0.1ms) BEGIN
134922
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.457388"], ["updated_at", "2014-05-20 18:56:15.465392"]]
134923
+  (0.2ms) COMMIT
134924
+  (1.2ms) WITH prosperity_metric_count AS (
134925
+ SELECT * FROM users
134926
+ )
134927
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
134928
+ WHERE created_at < '2013-05-01T00:00:00Z'
134929
+
134930
+  (0.2ms)  WITH prosperity_metric_count AS (
134931
+ SELECT * FROM users
134932
+ )
134933
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
134934
+ WHERE created_at < '2013-06-01T00:00:00Z'
134935
+ 
134936
+  (0.2ms) WITH prosperity_metric_count AS (
134937
+ SELECT * FROM users
134938
+ )
134939
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
134940
+ WHERE created_at < '2013-07-01T00:00:00Z'
134941
+
134942
+  (0.2ms)  WITH prosperity_metric_count AS (
134943
+ SELECT * FROM users
134944
+ )
134945
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
134946
+ WHERE created_at < '2013-08-01T00:00:00Z'
134947
+ 
134948
+  (0.1ms) WITH prosperity_metric_count AS (
134949
+ SELECT * FROM users
134950
+ )
134951
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
134952
+ WHERE created_at < '2013-09-01T00:00:00Z'
134953
+
134954
+  (0.1ms)  WITH prosperity_metric_count AS (
134955
+ SELECT * FROM users
134956
+ )
134957
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
134958
+ WHERE created_at < '2013-10-01T00:00:00Z'
134959
+ 
134960
+  (0.1ms) WITH prosperity_metric_count AS (
134961
+ SELECT * FROM users
134962
+ )
134963
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
134964
+ WHERE created_at < '2013-11-01T00:00:00Z'
134965
+
134966
+  (0.1ms)  WITH prosperity_metric_count AS (
134967
+ SELECT * FROM users
134968
+ )
134969
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
134970
+ WHERE created_at < '2013-12-01T00:00:00Z'
134971
+ 
134972
+  (0.2ms) WITH prosperity_metric_count AS (
134973
+ SELECT * FROM users
134974
+ )
134975
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
134976
+ WHERE created_at < '2014-01-01T00:00:00Z'
134977
+
134978
+  (0.1ms)  WITH prosperity_metric_count AS (
134979
+ SELECT * FROM users
134980
+ )
134981
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
134982
+ WHERE created_at < '2014-02-01T00:00:00Z'
134983
+ 
134984
+  (0.1ms) WITH prosperity_metric_count AS (
134985
+ SELECT * FROM users
134986
+ )
134987
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
134988
+ WHERE created_at < '2014-03-01T00:00:00Z'
134989
+
134990
+  (0.1ms)  WITH prosperity_metric_count AS (
134991
+ SELECT * FROM users
134992
+ )
134993
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
134994
+ WHERE created_at < '2014-04-01T00:00:00Z'
134995
+ 
134996
+  (0.1ms) WITH prosperity_metric_count AS (
134997
+ SELECT * FROM users
134998
+ )
134999
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135000
+ WHERE created_at < '2014-05-01T00:00:00Z'
135001
+
135002
+  (0.2ms)  WITH prosperity_metric_count AS (
135003
+ SELECT * FROM users
135004
+ )
135005
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135006
+ WHERE created_at < '2014-06-01T00:00:00Z'
135007
+ 
135008
+ SQL (0.3ms) DELETE FROM "users"
135009
+  (0.1ms) BEGIN
135010
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.473300"], ["updated_at", "2014-05-20 18:56:15.473804"]]
135011
+  (0.3ms) COMMIT
135012
+  (0.1ms) BEGIN
135013
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.473370"], ["updated_at", "2014-05-20 18:56:15.475074"]]
135014
+  (0.2ms) COMMIT
135015
+  (0.1ms) BEGIN
135016
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.473409"], ["updated_at", "2014-05-20 18:56:15.476140"]]
135017
+  (0.3ms) COMMIT
135018
+  (0.2ms) WITH prosperity_metric_count AS (
135019
+ SELECT * FROM users
135020
+ )
135021
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135022
+ WHERE created_at < '2013-05-01T00:00:00Z'
135023
+
135024
+  (0.2ms)  WITH prosperity_metric_count AS (
135025
+ SELECT * FROM users
135026
+ )
135027
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135028
+ WHERE created_at < '2013-06-01T00:00:00Z'
135029
+ 
135030
+  (0.2ms) WITH prosperity_metric_count AS (
135031
+ SELECT * FROM users
135032
+ )
135033
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135034
+ WHERE created_at < '2013-07-01T00:00:00Z'
135035
+
135036
+  (0.1ms)  WITH prosperity_metric_count AS (
135037
+ SELECT * FROM users
135038
+ )
135039
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135040
+ WHERE created_at < '2013-08-01T00:00:00Z'
135041
+ 
135042
+  (0.1ms) WITH prosperity_metric_count AS (
135043
+ SELECT * FROM users
135044
+ )
135045
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135046
+ WHERE created_at < '2013-09-01T00:00:00Z'
135047
+
135048
+  (0.1ms)  WITH prosperity_metric_count AS (
135049
+ SELECT * FROM users
135050
+ )
135051
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135052
+ WHERE created_at < '2013-10-01T00:00:00Z'
135053
+ 
135054
+  (0.2ms) WITH prosperity_metric_count AS (
135055
+ SELECT * FROM users
135056
+ )
135057
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135058
+ WHERE created_at < '2013-11-01T00:00:00Z'
135059
+
135060
+  (0.1ms)  WITH prosperity_metric_count AS (
135061
+ SELECT * FROM users
135062
+ )
135063
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135064
+ WHERE created_at < '2013-12-01T00:00:00Z'
135065
+ 
135066
+  (0.1ms) WITH prosperity_metric_count AS (
135067
+ SELECT * FROM users
135068
+ )
135069
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135070
+ WHERE created_at < '2014-01-01T00:00:00Z'
135071
+
135072
+  (0.1ms)  WITH prosperity_metric_count AS (
135073
+ SELECT * FROM users
135074
+ )
135075
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135076
+ WHERE created_at < '2014-02-01T00:00:00Z'
135077
+ 
135078
+  (0.1ms) WITH prosperity_metric_count AS (
135079
+ SELECT * FROM users
135080
+ )
135081
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135082
+ WHERE created_at < '2014-03-01T00:00:00Z'
135083
+
135084
+  (0.1ms)  WITH prosperity_metric_count AS (
135085
+ SELECT * FROM users
135086
+ )
135087
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135088
+ WHERE created_at < '2014-04-01T00:00:00Z'
135089
+ 
135090
+  (0.1ms) WITH prosperity_metric_count AS (
135091
+ SELECT * FROM users
135092
+ )
135093
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135094
+ WHERE created_at < '2014-05-01T00:00:00Z'
135095
+
135096
+  (0.2ms)  WITH prosperity_metric_count AS (
135097
+ SELECT * FROM users
135098
+ )
135099
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135100
+ WHERE created_at < '2014-06-01T00:00:00Z'
135101
+ 
135102
+ SQL (0.3ms) DELETE FROM "users"
135103
+  (0.1ms) BEGIN
135104
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.482594"], ["updated_at", "2014-05-20 18:56:15.483090"]]
135105
+  (0.4ms) COMMIT
135106
+  (0.1ms) BEGIN
135107
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.482678"], ["updated_at", "2014-05-20 18:56:15.484457"]]
135108
+  (0.3ms) COMMIT
135109
+  (0.1ms) BEGIN
135110
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.482718"], ["updated_at", "2014-05-20 18:56:15.485570"]]
135111
+  (0.2ms) COMMIT
135112
+  (0.3ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
135113
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
135114
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
135115
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
135116
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
135117
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
135118
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
135119
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
135120
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
135121
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
135122
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
135123
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
135124
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
135125
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
135126
+ SQL (0.3ms) DELETE FROM "users"
135127
+  (0.1ms) BEGIN
135128
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.495443"], ["updated_at", "2014-05-20 18:56:15.495924"]]
135129
+  (0.2ms) COMMIT
135130
+  (0.1ms) BEGIN
135131
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.495515"], ["updated_at", "2014-05-20 18:56:15.497039"]]
135132
+  (0.2ms) COMMIT
135133
+  (0.1ms) BEGIN
135134
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.495555"], ["updated_at", "2014-05-20 18:56:15.498166"]]
135135
+  (0.4ms) COMMIT
135136
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
135137
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
135138
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
135139
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
135140
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
135141
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
135142
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
135143
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
135144
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
135145
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
135146
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
135147
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
135148
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
135149
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
135150
+ SQL (0.4ms) DELETE FROM "users"
135151
+  (0.1ms) BEGIN
135152
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.507345"], ["updated_at", "2014-05-20 18:56:15.507874"]]
135153
+  (0.3ms) COMMIT
135154
+  (0.1ms) BEGIN
135155
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.507412"], ["updated_at", "2014-05-20 18:56:15.509066"]]
135156
+  (0.2ms) COMMIT
135157
+  (0.1ms) BEGIN
135158
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.507456"], ["updated_at", "2014-05-20 18:56:15.510014"]]
135159
+  (0.3ms) COMMIT
135160
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-05-01 00:00:00.000000')
135161
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-06-01 00:00:00.000000')
135162
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-07-01 00:00:00.000000')
135163
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-08-01 00:00:00.000000')
135164
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-09-01 00:00:00.000000')
135165
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-10-01 00:00:00.000000')
135166
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-11-01 00:00:00.000000')
135167
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-12-01 00:00:00.000000')
135168
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-01-01 00:00:00.000000')
135169
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-02-01 00:00:00.000000')
135170
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-03-01 00:00:00.000000')
135171
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-04-01 00:00:00.000000')
135172
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-05-01 00:00:00.000000')
135173
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-06-01 00:00:00.000000')
135174
+ SQL (0.4ms) DELETE FROM "users"
135175
+  (0.1ms) BEGIN
135176
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.519914"], ["updated_at", "2014-05-20 18:56:15.520439"]]
135177
+  (0.2ms) COMMIT
135178
+  (0.1ms) BEGIN
135179
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.519999"], ["updated_at", "2014-05-20 18:56:15.521642"]]
135180
+  (0.4ms) COMMIT
135181
+  (0.1ms) BEGIN
135182
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.520039"], ["updated_at", "2014-05-20 18:56:15.522804"]]
135183
+  (0.2ms) COMMIT
135184
+  (1.0ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
135185
+  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
135186
+  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
135187
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
135188
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
135189
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
135190
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
135191
+  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
135192
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
135193
+  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
135194
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
135195
+  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
135196
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
135197
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
135198
+ SQL (0.4ms) DELETE FROM "users"
135199
+  (0.1ms) BEGIN
135200
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.533390"], ["updated_at", "2014-05-20 18:56:15.533885"]]
135201
+  (0.2ms) COMMIT
135202
+  (0.1ms) BEGIN
135203
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.533485"], ["updated_at", "2014-05-20 18:56:15.534953"]]
135204
+  (0.2ms) COMMIT
135205
+  (0.1ms) BEGIN
135206
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.533526"], ["updated_at", "2014-05-20 18:56:15.535913"]]
135207
+  (0.2ms) COMMIT
135208
+  (0.2ms) WITH prosperity_metric_count AS (
135209
+ SELECT * FROM users
135210
+ )
135211
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135212
+ WHERE created_at < '2013-05-01T00:00:00Z'
135213
+
135214
+  (0.1ms)  WITH prosperity_metric_count AS (
135215
+ SELECT * FROM users
135216
+ )
135217
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135218
+ WHERE created_at < '2013-06-01T00:00:00Z'
135219
+ 
135220
+  (0.1ms) WITH prosperity_metric_count AS (
135221
+ SELECT * FROM users
135222
+ )
135223
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135224
+ WHERE created_at < '2013-07-01T00:00:00Z'
135225
+
135226
+  (0.2ms)  WITH prosperity_metric_count AS (
135227
+ SELECT * FROM users
135228
+ )
135229
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135230
+ WHERE created_at < '2013-08-01T00:00:00Z'
135231
+ 
135232
+  (0.1ms) WITH prosperity_metric_count AS (
135233
+ SELECT * FROM users
135234
+ )
135235
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135236
+ WHERE created_at < '2013-09-01T00:00:00Z'
135237
+
135238
+  (0.1ms)  WITH prosperity_metric_count AS (
135239
+ SELECT * FROM users
135240
+ )
135241
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135242
+ WHERE created_at < '2013-10-01T00:00:00Z'
135243
+ 
135244
+  (0.2ms) WITH prosperity_metric_count AS (
135245
+ SELECT * FROM users
135246
+ )
135247
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135248
+ WHERE created_at < '2013-11-01T00:00:00Z'
135249
+
135250
+  (0.1ms)  WITH prosperity_metric_count AS (
135251
+ SELECT * FROM users
135252
+ )
135253
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135254
+ WHERE created_at < '2013-12-01T00:00:00Z'
135255
+ 
135256
+  (0.1ms) WITH prosperity_metric_count AS (
135257
+ SELECT * FROM users
135258
+ )
135259
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135260
+ WHERE created_at < '2014-01-01T00:00:00Z'
135261
+
135262
+  (0.2ms)  WITH prosperity_metric_count AS (
135263
+ SELECT * FROM users
135264
+ )
135265
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135266
+ WHERE created_at < '2014-02-01T00:00:00Z'
135267
+ 
135268
+  (0.1ms) WITH prosperity_metric_count AS (
135269
+ SELECT * FROM users
135270
+ )
135271
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135272
+ WHERE created_at < '2014-03-01T00:00:00Z'
135273
+
135274
+  (0.1ms)  WITH prosperity_metric_count AS (
135275
+ SELECT * FROM users
135276
+ )
135277
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135278
+ WHERE created_at < '2014-04-01T00:00:00Z'
135279
+ 
135280
+  (0.1ms) WITH prosperity_metric_count AS (
135281
+ SELECT * FROM users
135282
+ )
135283
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135284
+ WHERE created_at < '2014-05-01T00:00:00Z'
135285
+
135286
+  (0.1ms)  WITH prosperity_metric_count AS (
135287
+ SELECT * FROM users
135288
+ )
135289
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135290
+ WHERE created_at < '2014-06-01T00:00:00Z'
135291
+ 
135292
+ SQL (0.3ms) DELETE FROM "users"
135293
+  (0.1ms) BEGIN
135294
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.542361"], ["updated_at", "2014-05-20 18:56:15.542887"]]
135295
+  (0.2ms) COMMIT
135296
+  (0.1ms) BEGIN
135297
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.542425"], ["updated_at", "2014-05-20 18:56:15.544036"]]
135298
+  (0.2ms) COMMIT
135299
+  (0.1ms) BEGIN
135300
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.542486"], ["updated_at", "2014-05-20 18:56:15.545025"]]
135301
+  (0.2ms) COMMIT
135302
+  (0.6ms) WITH prosperity_metric_count AS (
135303
+ SELECT * FROM users
135304
+ )
135305
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135306
+ WHERE created_at < '2013-05-01T00:00:00Z'
135307
+
135308
+  (0.2ms)  WITH prosperity_metric_count AS (
135309
+ SELECT * FROM users
135310
+ )
135311
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135312
+ WHERE created_at < '2013-06-01T00:00:00Z'
135313
+ 
135314
+  (0.1ms) WITH prosperity_metric_count AS (
135315
+ SELECT * FROM users
135316
+ )
135317
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135318
+ WHERE created_at < '2013-07-01T00:00:00Z'
135319
+
135320
+  (0.1ms)  WITH prosperity_metric_count AS (
135321
+ SELECT * FROM users
135322
+ )
135323
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135324
+ WHERE created_at < '2013-08-01T00:00:00Z'
135325
+ 
135326
+  (0.1ms) WITH prosperity_metric_count AS (
135327
+ SELECT * FROM users
135328
+ )
135329
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135330
+ WHERE created_at < '2013-09-01T00:00:00Z'
135331
+
135332
+  (0.2ms)  WITH prosperity_metric_count AS (
135333
+ SELECT * FROM users
135334
+ )
135335
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135336
+ WHERE created_at < '2013-10-01T00:00:00Z'
135337
+ 
135338
+  (0.2ms) WITH prosperity_metric_count AS (
135339
+ SELECT * FROM users
135340
+ )
135341
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135342
+ WHERE created_at < '2013-11-01T00:00:00Z'
135343
+
135344
+  (0.1ms)  WITH prosperity_metric_count AS (
135345
+ SELECT * FROM users
135346
+ )
135347
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135348
+ WHERE created_at < '2013-12-01T00:00:00Z'
135349
+ 
135350
+  (0.1ms) WITH prosperity_metric_count AS (
135351
+ SELECT * FROM users
135352
+ )
135353
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135354
+ WHERE created_at < '2014-01-01T00:00:00Z'
135355
+
135356
+  (0.2ms)  WITH prosperity_metric_count AS (
135357
+ SELECT * FROM users
135358
+ )
135359
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135360
+ WHERE created_at < '2014-02-01T00:00:00Z'
135361
+ 
135362
+  (0.1ms) WITH prosperity_metric_count AS (
135363
+ SELECT * FROM users
135364
+ )
135365
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135366
+ WHERE created_at < '2014-03-01T00:00:00Z'
135367
+
135368
+  (0.2ms)  WITH prosperity_metric_count AS (
135369
+ SELECT * FROM users
135370
+ )
135371
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135372
+ WHERE created_at < '2014-04-01T00:00:00Z'
135373
+ 
135374
+  (0.2ms) WITH prosperity_metric_count AS (
135375
+ SELECT * FROM users
135376
+ )
135377
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135378
+ WHERE created_at < '2014-05-01T00:00:00Z'
135379
+
135380
+  (0.1ms)  WITH prosperity_metric_count AS (
135381
+ SELECT * FROM users
135382
+ )
135383
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
135384
+ WHERE created_at < '2014-06-01T00:00:00Z'
135385
+ 
135386
+ SQL (0.3ms) DELETE FROM "users"
135387
+  (0.1ms) BEGIN
135388
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.551605"], ["updated_at", "2014-05-20 18:56:15.552177"]]
135389
+  (0.2ms) COMMIT
135390
+  (0.1ms) BEGIN
135391
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.551676"], ["updated_at", "2014-05-20 18:56:15.553325"]]
135392
+  (0.2ms) COMMIT
135393
+  (0.1ms) BEGIN
135394
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.551737"], ["updated_at", "2014-05-20 18:56:15.554395"]]
135395
+  (0.2ms) COMMIT
135396
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
135397
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
135398
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
135399
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
135400
+  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
135401
+  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
135402
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
135403
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
135404
+  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
135405
+  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
135406
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
135407
+  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
135408
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
135409
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
135410
+ SQL (0.3ms) DELETE FROM "users"
135411
+  (0.1ms) BEGIN
135412
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.563960"], ["updated_at", "2014-05-20 18:56:15.564483"]]
135413
+  (0.2ms) COMMIT
135414
+  (0.1ms) BEGIN
135415
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.564042"], ["updated_at", "2014-05-20 18:56:15.565683"]]
135416
+  (0.2ms) COMMIT
135417
+  (0.1ms) BEGIN
135418
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.564102"], ["updated_at", "2014-05-20 18:56:15.566938"]]
135419
+  (0.2ms) COMMIT
135420
+  (0.2ms) WITH prosperity_metric_count AS (
135421
+ SELECT * FROM users
135422
+ )
135423
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135424
+ WHERE created_at < '2013-05-01T00:00:00Z'
135425
+
135426
+  (0.2ms)  WITH prosperity_metric_count AS (
135427
+ SELECT * FROM users
135428
+ )
135429
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135430
+ WHERE created_at < '2013-06-01T00:00:00Z'
135431
+ 
135432
+  (0.1ms) WITH prosperity_metric_count AS (
135433
+ SELECT * FROM users
135434
+ )
135435
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135436
+ WHERE created_at < '2013-07-01T00:00:00Z'
135437
+
135438
+  (0.1ms)  WITH prosperity_metric_count AS (
135439
+ SELECT * FROM users
135440
+ )
135441
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135442
+ WHERE created_at < '2013-08-01T00:00:00Z'
135443
+ 
135444
+  (0.2ms) WITH prosperity_metric_count AS (
135445
+ SELECT * FROM users
135446
+ )
135447
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135448
+ WHERE created_at < '2013-09-01T00:00:00Z'
135449
+
135450
+  (0.2ms)  WITH prosperity_metric_count AS (
135451
+ SELECT * FROM users
135452
+ )
135453
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135454
+ WHERE created_at < '2013-10-01T00:00:00Z'
135455
+ 
135456
+  (0.2ms) WITH prosperity_metric_count AS (
135457
+ SELECT * FROM users
135458
+ )
135459
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135460
+ WHERE created_at < '2013-11-01T00:00:00Z'
135461
+
135462
+  (0.1ms)  WITH prosperity_metric_count AS (
135463
+ SELECT * FROM users
135464
+ )
135465
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135466
+ WHERE created_at < '2013-12-01T00:00:00Z'
135467
+ 
135468
+  (0.2ms) WITH prosperity_metric_count AS (
135469
+ SELECT * FROM users
135470
+ )
135471
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135472
+ WHERE created_at < '2014-01-01T00:00:00Z'
135473
+
135474
+  (0.1ms)  WITH prosperity_metric_count AS (
135475
+ SELECT * FROM users
135476
+ )
135477
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135478
+ WHERE created_at < '2014-02-01T00:00:00Z'
135479
+ 
135480
+  (0.1ms) WITH prosperity_metric_count AS (
135481
+ SELECT * FROM users
135482
+ )
135483
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135484
+ WHERE created_at < '2014-03-01T00:00:00Z'
135485
+
135486
+  (0.1ms)  WITH prosperity_metric_count AS (
135487
+ SELECT * FROM users
135488
+ )
135489
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135490
+ WHERE created_at < '2014-04-01T00:00:00Z'
135491
+ 
135492
+  (0.1ms) WITH prosperity_metric_count AS (
135493
+ SELECT * FROM users
135494
+ )
135495
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135496
+ WHERE created_at < '2014-05-01T00:00:00Z'
135497
+
135498
+  (0.1ms)  WITH prosperity_metric_count AS (
135499
+ SELECT * FROM users
135500
+ )
135501
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
135502
+ WHERE created_at < '2014-06-01T00:00:00Z'
135503
+ 
135504
+ SQL (0.3ms) DELETE FROM "users"
135505
+  (0.1ms) BEGIN
135506
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.573576"], ["updated_at", "2014-05-20 18:56:15.574163"]]
135507
+  (0.2ms) COMMIT
135508
+  (0.1ms) BEGIN
135509
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.573662"], ["updated_at", "2014-05-20 18:56:15.575271"]]
135510
+  (0.2ms) COMMIT
135511
+  (0.1ms) BEGIN
135512
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.573755"], ["updated_at", "2014-05-20 18:56:15.576225"]]
135513
+  (0.2ms) COMMIT
135514
+  (0.3ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
135515
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
135516
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
135517
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
135518
+  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
135519
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
135520
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
135521
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
135522
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
135523
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
135524
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
135525
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
135526
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
135527
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
135528
+ SQL (0.3ms) DELETE FROM "users"
135529
+  (0.1ms) BEGIN
135530
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.586366"], ["updated_at", "2014-05-20 18:56:15.586878"]]
135531
+  (0.2ms) COMMIT
135532
+  (0.1ms) BEGIN
135533
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.586453"], ["updated_at", "2014-05-20 18:56:15.588020"]]
135534
+  (0.3ms) COMMIT
135535
+  (0.1ms) BEGIN
135536
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.586498"], ["updated_at", "2014-05-20 18:56:15.589088"]]
135537
+  (0.2ms) COMMIT
135538
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
135539
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
135540
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
135541
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
135542
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
135543
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
135544
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
135545
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
135546
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
135547
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
135548
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
135549
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
135550
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
135551
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
135552
+ SQL (0.3ms) DELETE FROM "users"
135553
+  (0.1ms) BEGIN
135554
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.598136"], ["updated_at", "2014-05-20 18:56:15.598633"]]
135555
+  (0.2ms) COMMIT
135556
+  (0.1ms) BEGIN
135557
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.598212"], ["updated_at", "2014-05-20 18:56:15.599880"]]
135558
+  (0.4ms) COMMIT
135559
+  (0.1ms) BEGIN
135560
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.598253"], ["updated_at", "2014-05-20 18:56:15.601128"]]
135561
+  (0.2ms) COMMIT
135562
+  (0.3ms) WITH prosperity_metric_count AS (
135563
+ SELECT * FROM users
135564
+ )
135565
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135566
+ WHERE created_at < '2013-05-01T00:00:00Z'
135567
+
135568
+  (0.2ms)  WITH prosperity_metric_count AS (
135569
+ SELECT * FROM users
135570
+ )
135571
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135572
+ WHERE created_at < '2013-06-01T00:00:00Z'
135573
+ 
135574
+  (0.1ms) WITH prosperity_metric_count AS (
135575
+ SELECT * FROM users
135576
+ )
135577
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135578
+ WHERE created_at < '2013-07-01T00:00:00Z'
135579
+
135580
+  (0.2ms)  WITH prosperity_metric_count AS (
135581
+ SELECT * FROM users
135582
+ )
135583
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135584
+ WHERE created_at < '2013-08-01T00:00:00Z'
135585
+ 
135586
+  (0.1ms) WITH prosperity_metric_count AS (
135587
+ SELECT * FROM users
135588
+ )
135589
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135590
+ WHERE created_at < '2013-09-01T00:00:00Z'
135591
+
135592
+  (0.2ms)  WITH prosperity_metric_count AS (
135593
+ SELECT * FROM users
135594
+ )
135595
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135596
+ WHERE created_at < '2013-10-01T00:00:00Z'
135597
+ 
135598
+  (0.2ms) WITH prosperity_metric_count AS (
135599
+ SELECT * FROM users
135600
+ )
135601
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135602
+ WHERE created_at < '2013-11-01T00:00:00Z'
135603
+
135604
+  (0.1ms)  WITH prosperity_metric_count AS (
135605
+ SELECT * FROM users
135606
+ )
135607
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135608
+ WHERE created_at < '2013-12-01T00:00:00Z'
135609
+ 
135610
+  (0.2ms) WITH prosperity_metric_count AS (
135611
+ SELECT * FROM users
135612
+ )
135613
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135614
+ WHERE created_at < '2014-01-01T00:00:00Z'
135615
+
135616
+  (0.2ms)  WITH prosperity_metric_count AS (
135617
+ SELECT * FROM users
135618
+ )
135619
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135620
+ WHERE created_at < '2014-02-01T00:00:00Z'
135621
+ 
135622
+  (0.2ms) WITH prosperity_metric_count AS (
135623
+ SELECT * FROM users
135624
+ )
135625
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135626
+ WHERE created_at < '2014-03-01T00:00:00Z'
135627
+
135628
+  (0.1ms)  WITH prosperity_metric_count AS (
135629
+ SELECT * FROM users
135630
+ )
135631
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135632
+ WHERE created_at < '2014-04-01T00:00:00Z'
135633
+ 
135634
+  (0.1ms) WITH prosperity_metric_count AS (
135635
+ SELECT * FROM users
135636
+ )
135637
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135638
+ WHERE created_at < '2014-05-01T00:00:00Z'
135639
+
135640
+  (0.2ms)  WITH prosperity_metric_count AS (
135641
+ SELECT * FROM users
135642
+ )
135643
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
135644
+ WHERE created_at < '2014-06-01T00:00:00Z'
135645
+ 
135646
+ SQL (0.3ms) DELETE FROM "users"
135647
+  (0.1ms) BEGIN
135648
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.607632"], ["updated_at", "2014-05-20 18:56:15.608115"]]
135649
+  (0.3ms) COMMIT
135650
+  (0.1ms) BEGIN
135651
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.607703"], ["updated_at", "2014-05-20 18:56:15.609353"]]
135652
+  (0.2ms) COMMIT
135653
+  (0.1ms) BEGIN
135654
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.607743"], ["updated_at", "2014-05-20 18:56:15.610401"]]
135655
+  (0.2ms) COMMIT
135656
+  (0.2ms) WITH prosperity_metric_count AS (
135657
+ SELECT * FROM users
135658
+ )
135659
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135660
+ WHERE created_at < '2013-05-01T00:00:00Z'
135661
+
135662
+  (0.2ms)  WITH prosperity_metric_count AS (
135663
+ SELECT * FROM users
135664
+ )
135665
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135666
+ WHERE created_at < '2013-06-01T00:00:00Z'
135667
+ 
135668
+  (0.2ms) WITH prosperity_metric_count AS (
135669
+ SELECT * FROM users
135670
+ )
135671
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135672
+ WHERE created_at < '2013-07-01T00:00:00Z'
135673
+
135674
+  (0.2ms)  WITH prosperity_metric_count AS (
135675
+ SELECT * FROM users
135676
+ )
135677
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135678
+ WHERE created_at < '2013-08-01T00:00:00Z'
135679
+ 
135680
+  (0.1ms) WITH prosperity_metric_count AS (
135681
+ SELECT * FROM users
135682
+ )
135683
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135684
+ WHERE created_at < '2013-09-01T00:00:00Z'
135685
+
135686
+  (0.1ms)  WITH prosperity_metric_count AS (
135687
+ SELECT * FROM users
135688
+ )
135689
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135690
+ WHERE created_at < '2013-10-01T00:00:00Z'
135691
+ 
135692
+  (0.1ms) WITH prosperity_metric_count AS (
135693
+ SELECT * FROM users
135694
+ )
135695
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135696
+ WHERE created_at < '2013-11-01T00:00:00Z'
135697
+
135698
+  (0.2ms)  WITH prosperity_metric_count AS (
135699
+ SELECT * FROM users
135700
+ )
135701
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135702
+ WHERE created_at < '2013-12-01T00:00:00Z'
135703
+ 
135704
+  (0.3ms) WITH prosperity_metric_count AS (
135705
+ SELECT * FROM users
135706
+ )
135707
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135708
+ WHERE created_at < '2014-01-01T00:00:00Z'
135709
+
135710
+  (0.2ms)  WITH prosperity_metric_count AS (
135711
+ SELECT * FROM users
135712
+ )
135713
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135714
+ WHERE created_at < '2014-02-01T00:00:00Z'
135715
+ 
135716
+  (0.2ms) WITH prosperity_metric_count AS (
135717
+ SELECT * FROM users
135718
+ )
135719
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135720
+ WHERE created_at < '2014-03-01T00:00:00Z'
135721
+
135722
+  (0.2ms)  WITH prosperity_metric_count AS (
135723
+ SELECT * FROM users
135724
+ )
135725
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135726
+ WHERE created_at < '2014-04-01T00:00:00Z'
135727
+ 
135728
+  (0.1ms) WITH prosperity_metric_count AS (
135729
+ SELECT * FROM users
135730
+ )
135731
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135732
+ WHERE created_at < '2014-05-01T00:00:00Z'
135733
+
135734
+  (0.1ms)  WITH prosperity_metric_count AS (
135735
+ SELECT * FROM users
135736
+ )
135737
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
135738
+ WHERE created_at < '2014-06-01T00:00:00Z'
135739
+ 
135740
+ SQL (0.3ms) DELETE FROM "users"
135741
+  (0.1ms) BEGIN
135742
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.617077"], ["updated_at", "2014-05-20 18:56:15.617562"]]
135743
+  (0.2ms) COMMIT
135744
+  (0.1ms) BEGIN
135745
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.617142"], ["updated_at", "2014-05-20 18:56:15.618846"]]
135746
+  (0.2ms) COMMIT
135747
+  (0.1ms) BEGIN
135748
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.617184"], ["updated_at", "2014-05-20 18:56:15.619821"]]
135749
+  (0.3ms) COMMIT
135750
+  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
135751
+  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
135752
+  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
135753
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
135754
+  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
135755
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
135756
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
135757
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
135758
+  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
135759
+  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
135760
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
135761
+  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
135762
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
135763
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
135764
+ SQL (0.3ms) DELETE FROM "users"
135765
+  (0.1ms) BEGIN
135766
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.629452"], ["updated_at", "2014-05-20 18:56:15.629931"]]
135767
+  (0.2ms) COMMIT
135768
+  (0.1ms) BEGIN
135769
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.629526"], ["updated_at", "2014-05-20 18:56:15.631055"]]
135770
+  (0.2ms) COMMIT
135771
+  (0.1ms) BEGIN
135772
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.629566"], ["updated_at", "2014-05-20 18:56:15.632028"]]
135773
+  (0.3ms) COMMIT
135774
+  (0.2ms) WITH prosperity_metric_count AS (
135775
+ SELECT * FROM users
135776
+ )
135777
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135778
+ WHERE created_at < '2013-05-01T00:00:00Z'
135779
+
135780
+  (0.2ms)  WITH prosperity_metric_count AS (
135781
+ SELECT * FROM users
135782
+ )
135783
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135784
+ WHERE created_at < '2013-06-01T00:00:00Z'
135785
+ 
135786
+  (0.1ms) WITH prosperity_metric_count AS (
135787
+ SELECT * FROM users
135788
+ )
135789
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135790
+ WHERE created_at < '2013-07-01T00:00:00Z'
135791
+
135792
+  (0.2ms)  WITH prosperity_metric_count AS (
135793
+ SELECT * FROM users
135794
+ )
135795
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135796
+ WHERE created_at < '2013-08-01T00:00:00Z'
135797
+ 
135798
+  (0.2ms) WITH prosperity_metric_count AS (
135799
+ SELECT * FROM users
135800
+ )
135801
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135802
+ WHERE created_at < '2013-09-01T00:00:00Z'
135803
+
135804
+  (0.1ms)  WITH prosperity_metric_count AS (
135805
+ SELECT * FROM users
135806
+ )
135807
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135808
+ WHERE created_at < '2013-10-01T00:00:00Z'
135809
+ 
135810
+  (0.2ms) WITH prosperity_metric_count AS (
135811
+ SELECT * FROM users
135812
+ )
135813
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135814
+ WHERE created_at < '2013-11-01T00:00:00Z'
135815
+
135816
+  (0.2ms)  WITH prosperity_metric_count AS (
135817
+ SELECT * FROM users
135818
+ )
135819
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135820
+ WHERE created_at < '2013-12-01T00:00:00Z'
135821
+ 
135822
+  (0.1ms) WITH prosperity_metric_count AS (
135823
+ SELECT * FROM users
135824
+ )
135825
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135826
+ WHERE created_at < '2014-01-01T00:00:00Z'
135827
+
135828
+  (0.1ms)  WITH prosperity_metric_count AS (
135829
+ SELECT * FROM users
135830
+ )
135831
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135832
+ WHERE created_at < '2014-02-01T00:00:00Z'
135833
+ 
135834
+  (0.1ms) WITH prosperity_metric_count AS (
135835
+ SELECT * FROM users
135836
+ )
135837
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135838
+ WHERE created_at < '2014-03-01T00:00:00Z'
135839
+
135840
+  (0.1ms)  WITH prosperity_metric_count AS (
135841
+ SELECT * FROM users
135842
+ )
135843
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135844
+ WHERE created_at < '2014-04-01T00:00:00Z'
135845
+ 
135846
+  (0.1ms) WITH prosperity_metric_count AS (
135847
+ SELECT * FROM users
135848
+ )
135849
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135850
+ WHERE created_at < '2014-05-01T00:00:00Z'
135851
+
135852
+  (0.2ms)  WITH prosperity_metric_count AS (
135853
+ SELECT * FROM users
135854
+ )
135855
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
135856
+ WHERE created_at < '2014-06-01T00:00:00Z'
135857
+ 
135858
+ SQL (0.4ms) DELETE FROM "users"
135859
+  (0.1ms) BEGIN
135860
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:15.638524"], ["updated_at", "2014-05-20 18:56:15.638981"]]
135861
+  (0.2ms) COMMIT
135862
+  (0.1ms) BEGIN
135863
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:15.638588"], ["updated_at", "2014-05-20 18:56:15.639990"]]
135864
+  (0.3ms) COMMIT
135865
+  (0.1ms) BEGIN
135866
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:15.638628"], ["updated_at", "2014-05-20 18:56:15.641017"]]
135867
+  (0.3ms) COMMIT
135868
+ Processing by Prosperity::MetricsController#show as JSON
135869
+ Parameters: {"id"=>"UsersMetric"}
135870
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
135871
+ Processing by Prosperity::MetricsController#show as HTML
135872
+ Parameters: {"id"=>"UsersMetric"}
135873
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/shared/_date_range.html.erb (0.9ms)
135874
+ Completed 200 OK in 1347ms (Views: 1347.2ms | ActiveRecord: 0.0ms)
135875
+ Processing by Prosperity::MetricsController#index as HTML
135876
+ Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms)
135877
+ Processing by Prosperity::MetricsController#data as JSON
135878
+ Parameters: {"option"=>"with_1", "id"=>"UsersMetric"}
135879
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
135880
+ Processing by Prosperity::MetricsController#data as JSON
135881
+ Parameters: {"id"=>"blah"}
135882
+ Filter chain halted as :get_metric rendered or redirected
135883
+ Completed 404 Not Found in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
135884
+ Processing by Prosperity::MetricsController#data as JSON
135885
+ Parameters: {"extractor"=>"does-not-exist", "id"=>"UsersMetric"}
135886
+ Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
135887
+ Processing by Prosperity::MetricsController#data as JSON
135888
+ Parameters: {"extractor"=>"total", "id"=>"UsersMetric"}
135889
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
135890
+ Processing by Prosperity::MetricsController#data as JSON
135891
+ Parameters: {"period"=>"week", "start_time"=>2014-05-20 00:00:00 -0700, "end_time"=>2014-05-20 23:59:59 -0700, "id"=>"UsersMetric"}
135892
+  (1.8ms) SELECT COUNT(*) AS count_all, to_char(created_at, 'YYYY-WW') AS to_char_created_at_yyyy_ww FROM "users" WHERE (created_at BETWEEN '2014-05-19 07:00:00.000000' AND '2014-05-26 06:59:59.999999') GROUP BY to_char(created_at, 'YYYY-WW')
135893
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 2.0ms)
135894
+ Processing by Prosperity::MetricsController#data as JSON
135895
+ Parameters: {"id"=>"UsersMetric"}
135896
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
135897
+ Processing by Prosperity::MetricsController#data as JSON
135898
+ Parameters: {"period"=>"week", "id"=>"UsersMetric"}
135899
+  (0.9ms) SELECT COUNT(*) AS count_all, to_char(created_at, 'YYYY-WW') AS to_char_created_at_yyyy_ww FROM "users" WHERE (created_at BETWEEN '2014-02-17 08:00:00.000000' AND '2014-05-26 06:59:59.999999') GROUP BY to_char(created_at, 'YYYY-WW')
135900
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.9ms)
135901
+ Processing by Prosperity::MetricsController#data as JSON
135902
+ Parameters: {"id"=>"UsersMetric"}
135903
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
135904
+  (0.1ms) BEGIN
135905
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:17.050811"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:17.050811"]]
135906
+  (0.4ms) COMMIT
135907
+ Processing by Prosperity::GraphsController#show as HTML
135908
+ Parameters: {"id"=>"106"}
135909
+ Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 106]]
135910
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms)
135911
+  (0.1ms) BEGIN
135912
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:17.061961"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:17.061961"]]
135913
+  (5.6ms) COMMIT
135914
+ Processing by Prosperity::GraphsController#show as HTML
135915
+ Parameters: {"id"=>"107"}
135916
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 107]]
135917
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
135918
+  (0.1ms) BEGIN
135919
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:17.074669"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:17.074669"]]
135920
+  (5.7ms) COMMIT
135921
+ Processing by Prosperity::GraphsController#show as HTML
135922
+ Parameters: {"id"=>"108"}
135923
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 108]]
135924
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
135925
+ Processing by Prosperity::GraphsController#show as HTML
135926
+ Parameters: {"id"=>"unknown_id"}
135927
+ Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]]
135928
+ Completed 404 Not Found in 2ms (Views: 1.1ms | ActiveRecord: 0.4ms)
135929
+  (0.1ms) BEGIN
135930
+ SQL (0.1ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:17.089223"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:17.089223"]]
135931
+  (0.3ms) COMMIT
135932
+  (0.1ms) BEGIN
135933
+ SQL (4.3ms) INSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-05-20 18:56:17.100480"], ["extractor", "count"], ["graph_id", 109], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-20 18:56:17.100480"]]
135934
+  (0.2ms) COMMIT
135935
+ Processing by Prosperity::GraphsController#show as JSON
135936
+ Parameters: {"id"=>"109"}
135937
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 109]]
135938
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 109]]
135939
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)
135940
+  (0.1ms) BEGIN
135941
+ SQL (0.1ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:17.111221"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:17.111221"]]
135942
+  (0.4ms) COMMIT
135943
+ Processing by Prosperity::GraphsController#show as JSON
135944
+ Parameters: {"id"=>"110"}
135945
+ Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 110]]
135946
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 110]]
135947
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.3ms)
135948
+  (0.1ms) BEGIN
135949
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:17.117238"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:17.117238"]]
135950
+  (0.4ms) COMMIT
135951
+ Processing by Prosperity::GraphsController#edit as HTML
135952
+ Parameters: {"id"=>"111"}
135953
+ Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 111]]
135954
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (6.7ms)
135955
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 111]]
135956
+ Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.3ms)
135957
+ Processing by Prosperity::GraphsController#create as HTML
135958
+ Parameters: {"graph"=>{"graph"=>{}}}
135959
+ Unpermitted parameters: graph
135960
+ Unpermitted parameters: graph
135961
+ Unpermitted parameters: graph
135962
+  (0.1ms) BEGIN
135963
+  (0.1ms) ROLLBACK
135964
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.3ms)
135965
+ Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.2ms)
135966
+  (0.2ms) SELECT COUNT(*) FROM "prosperity_graphs"
135967
+ Processing by Prosperity::GraphsController#create as HTML
135968
+ Parameters: {"graph"=>{"title"=>"My Graph", "period"=>"month", "graph_type"=>"line"}}
135969
+  (0.1ms) BEGIN
135970
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:17.153502"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:17.153502"]]
135971
+  (0.2ms) COMMIT
135972
+ Redirected to http://test.host/prosperity/graphs/112/edit
135973
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
135974
+  (0.2ms) SELECT COUNT(*) FROM "prosperity_graphs"
135975
+ Processing by Prosperity::GraphsController#new as HTML
135976
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.2ms)
135977
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
135978
+  (0.1ms) BEGIN
135979
+ SQL (0.2ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:17.163465"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:17.163465"]]
135980
+  (0.3ms) COMMIT
135981
+  (0.1ms) BEGIN
135982
+ SQL (0.2ms) INSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-05-20 18:56:17.165505"], ["extractor", "count"], ["graph_id", 113], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-20 18:56:17.165505"]]
135983
+  (0.3ms) COMMIT
135984
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1 [["graph_id", 113]]
135985
+ Processing by Prosperity::GraphsController#update as HTML
135986
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"22", "option"=>"new_option", "extractor"=>"interval"}}}, "id"=>"113"}
135987
+ Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 113]]
135988
+  (0.1ms) BEGIN
135989
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 AND "prosperity_graph_lines"."id" IN (22) [["graph_id", 113]]
135990
+ SQL (0.2ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "option" = $2, "updated_at" = $3 WHERE "prosperity_graph_lines"."id" = 22 [["extractor", "interval"], ["option", "new_option"], ["updated_at", "2014-05-20 18:56:17.171442"]]
135991
+  (0.3ms) COMMIT
135992
+ Redirected to http://test.host/prosperity/graphs/113/edit
135993
+ Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
135994
+ Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 113]]
135995
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1 [["graph_id", 113]]
135996
+  (0.1ms) BEGIN
135997
+ SQL (0.1ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:17.176677"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:17.176677"]]
135998
+  (0.3ms) COMMIT
135999
+ Processing by Prosperity::GraphsController#update as HTML
136000
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"foo", "metric"=>"bar", "extractor"=>"count"}}}, "id"=>"114"}
136001
+ Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 114]]
136002
+  (0.1ms) BEGIN
136003
+ SQL (0.2ms) INSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-05-20 18:56:17.181080"], ["extractor", "count"], ["graph_id", 114], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-20 18:56:17.181080"]]
136004
+  (0.4ms) COMMIT
136005
+ Redirected to http://test.host/prosperity/graphs/114/edit
136006
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
136007
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 114]]
136008
+  (0.2ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 114]]
136009
+  (0.1ms) BEGIN
136010
+ SQL (0.1ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-20 18:56:17.185837"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-20 18:56:17.185837"]]
136011
+  (0.3ms) COMMIT
136012
+  (0.1ms) BEGIN
136013
+ SQL (0.2ms) INSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-05-20 18:56:17.187821"], ["extractor", "count"], ["graph_id", 115], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-20 18:56:17.187821"]]
136014
+  (0.2ms) COMMIT
136015
+ Processing by Prosperity::GraphsController#update as HTML
136016
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"default", "metric"=>"UsersMetric", "extractor"=>"interval", "id"=>"24"}, "1"=>{"option"=>"default", "metric"=>"", "extractor"=>"change"}}}, "id"=>"115"}
136017
+ Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 115]]
136018
+  (0.1ms) BEGIN
136019
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 AND "prosperity_graph_lines"."id" IN (24) [["graph_id", 115]]
136020
+ SQL (0.2ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "metric" = $2, "option" = $3, "updated_at" = $4 WHERE "prosperity_graph_lines"."id" = 24 [["extractor", "interval"], ["metric", "UsersMetric"], ["option", "default"], ["updated_at", "2014-05-20 18:56:17.193241"]]
136021
+  (0.2ms) COMMIT
136022
+ Redirected to http://test.host/prosperity/graphs/115/edit
136023
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
136024
+ Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 LIMIT 1 [["id", 24]]
136025
+ Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 115]]
136026
+  (0.1ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 115]]
136027
+ SQL (0.4ms) DELETE FROM "users"
136028
+  (0.1ms) BEGIN
136029
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.198909"], ["updated_at", "2014-05-20 18:56:17.199917"]]
136030
+  (0.3ms) COMMIT
136031
+  (0.1ms) BEGIN
136032
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.199058"], ["updated_at", "2014-05-20 18:56:17.201572"]]
136033
+  (0.2ms) COMMIT
136034
+  (0.1ms) BEGIN
136035
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.199122"], ["updated_at", "2014-05-20 18:56:17.202546"]]
136036
+  (5.3ms) COMMIT
136037
+  (0.1ms) BEGIN
136038
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.199187"], ["updated_at", "2014-05-20 18:56:17.208823"]]
136039
+  (5.5ms) COMMIT
136040
+  (0.3ms) WITH prosperity_metric_count AS (
136041
+ SELECT * FROM users
136042
+ )
136043
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136044
+ WHERE created_at < '2013-05-01T00:00:00Z'
136045
+
136046
+  (0.2ms)  WITH prosperity_metric_count AS (
136047
+ SELECT * FROM users
136048
+ )
136049
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136050
+ WHERE created_at < '2013-04-01T00:00:00Z'
136051
+ 
136052
+  (0.2ms) WITH prosperity_metric_count AS (
136053
+ SELECT * FROM users
136054
+ )
136055
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136056
+ WHERE created_at < '2013-06-01T00:00:00Z'
136057
+
136058
+  (0.2ms)  WITH prosperity_metric_count AS (
136059
+ SELECT * FROM users
136060
+ )
136061
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136062
+ WHERE created_at < '2013-05-01T00:00:00Z'
136063
+ 
136064
+  (0.1ms) WITH prosperity_metric_count AS (
136065
+ SELECT * FROM users
136066
+ )
136067
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136068
+ WHERE created_at < '2013-07-01T00:00:00Z'
136069
+
136070
+  (0.2ms)  WITH prosperity_metric_count AS (
136071
+ SELECT * FROM users
136072
+ )
136073
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136074
+ WHERE created_at < '2013-06-01T00:00:00Z'
136075
+ 
136076
+  (0.1ms) WITH prosperity_metric_count AS (
136077
+ SELECT * FROM users
136078
+ )
136079
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136080
+ WHERE created_at < '2013-08-01T00:00:00Z'
136081
+
136082
+  (0.1ms)  WITH prosperity_metric_count AS (
136083
+ SELECT * FROM users
136084
+ )
136085
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136086
+ WHERE created_at < '2013-07-01T00:00:00Z'
136087
+ 
136088
+  (0.1ms) WITH prosperity_metric_count AS (
136089
+ SELECT * FROM users
136090
+ )
136091
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136092
+ WHERE created_at < '2013-09-01T00:00:00Z'
136093
+
136094
+  (0.1ms)  WITH prosperity_metric_count AS (
136095
+ SELECT * FROM users
136096
+ )
136097
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136098
+ WHERE created_at < '2013-08-01T00:00:00Z'
136099
+ 
136100
+  (0.1ms) WITH prosperity_metric_count AS (
136101
+ SELECT * FROM users
136102
+ )
136103
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136104
+ WHERE created_at < '2013-10-01T00:00:00Z'
136105
+
136106
+  (0.2ms)  WITH prosperity_metric_count AS (
136107
+ SELECT * FROM users
136108
+ )
136109
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136110
+ WHERE created_at < '2013-09-01T00:00:00Z'
136111
+ 
136112
+  (0.2ms) WITH prosperity_metric_count AS (
136113
+ SELECT * FROM users
136114
+ )
136115
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136116
+ WHERE created_at < '2013-11-01T00:00:00Z'
136117
+
136118
+  (0.2ms)  WITH prosperity_metric_count AS (
136119
+ SELECT * FROM users
136120
+ )
136121
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136122
+ WHERE created_at < '2013-10-01T00:00:00Z'
136123
+ 
136124
+  (0.2ms) WITH prosperity_metric_count AS (
136125
+ SELECT * FROM users
136126
+ )
136127
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136128
+ WHERE created_at < '2013-12-01T00:00:00Z'
136129
+
136130
+  (0.2ms)  WITH prosperity_metric_count AS (
136131
+ SELECT * FROM users
136132
+ )
136133
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136134
+ WHERE created_at < '2013-11-01T00:00:00Z'
136135
+ 
136136
+  (0.2ms) WITH prosperity_metric_count AS (
136137
+ SELECT * FROM users
136138
+ )
136139
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136140
+ WHERE created_at < '2014-01-01T00:00:00Z'
136141
+
136142
+  (0.2ms)  WITH prosperity_metric_count AS (
136143
+ SELECT * FROM users
136144
+ )
136145
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136146
+ WHERE created_at < '2013-12-01T00:00:00Z'
136147
+ 
136148
+  (0.1ms) WITH prosperity_metric_count AS (
136149
+ SELECT * FROM users
136150
+ )
136151
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136152
+ WHERE created_at < '2014-02-01T00:00:00Z'
136153
+
136154
+  (0.1ms)  WITH prosperity_metric_count AS (
136155
+ SELECT * FROM users
136156
+ )
136157
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136158
+ WHERE created_at < '2014-01-01T00:00:00Z'
136159
+ 
136160
+  (0.1ms) WITH prosperity_metric_count AS (
136161
+ SELECT * FROM users
136162
+ )
136163
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136164
+ WHERE created_at < '2014-03-01T00:00:00Z'
136165
+
136166
+  (0.1ms)  WITH prosperity_metric_count AS (
136167
+ SELECT * FROM users
136168
+ )
136169
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136170
+ WHERE created_at < '2014-02-01T00:00:00Z'
136171
+ 
136172
+  (0.1ms) WITH prosperity_metric_count AS (
136173
+ SELECT * FROM users
136174
+ )
136175
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136176
+ WHERE created_at < '2014-04-01T00:00:00Z'
136177
+
136178
+  (0.1ms)  WITH prosperity_metric_count AS (
136179
+ SELECT * FROM users
136180
+ )
136181
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136182
+ WHERE created_at < '2014-03-01T00:00:00Z'
136183
+ 
136184
+  (0.2ms) WITH prosperity_metric_count AS (
136185
+ SELECT * FROM users
136186
+ )
136187
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136188
+ WHERE created_at < '2014-05-01T00:00:00Z'
136189
+
136190
+  (0.2ms)  WITH prosperity_metric_count AS (
136191
+ SELECT * FROM users
136192
+ )
136193
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136194
+ WHERE created_at < '2014-04-01T00:00:00Z'
136195
+ 
136196
+  (0.1ms) WITH prosperity_metric_count AS (
136197
+ SELECT * FROM users
136198
+ )
136199
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136200
+ WHERE created_at < '2014-06-01T00:00:00Z'
136201
+
136202
+  (0.2ms)  WITH prosperity_metric_count AS (
136203
+ SELECT * FROM users
136204
+ )
136205
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136206
+ WHERE created_at < '2014-05-01T00:00:00Z'
136207
+ 
136208
+ SQL (5.5ms) DELETE FROM "users"
136209
+  (0.1ms) BEGIN
136210
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.229838"], ["updated_at", "2014-05-20 18:56:17.230489"]]
136211
+  (5.8ms) COMMIT
136212
+  (0.1ms) BEGIN
136213
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.229938"], ["updated_at", "2014-05-20 18:56:17.237435"]]
136214
+  (4.9ms) COMMIT
136215
+  (0.1ms) BEGIN
136216
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.229987"], ["updated_at", "2014-05-20 18:56:17.243258"]]
136217
+  (0.2ms) COMMIT
136218
+  (0.1ms) BEGIN
136219
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.230025"], ["updated_at", "2014-05-20 18:56:17.244351"]]
136220
+  (0.2ms) COMMIT
136221
+  (0.2ms)  WITH prosperity_metric_count AS (
136222
+ SELECT * FROM users
136223
+ )
136224
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136225
+ WHERE created_at < '2013-05-01T00:00:00Z'
136226
+ 
136227
+  (0.2ms) WITH prosperity_metric_count AS (
136228
+ SELECT * FROM users
136229
+ )
136230
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136231
+ WHERE created_at < '2013-04-01T00:00:00Z'
136232
+
136233
+  (0.2ms)  WITH prosperity_metric_count AS (
136234
+ SELECT * FROM users
136235
+ )
136236
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136237
+ WHERE created_at < '2013-06-01T00:00:00Z'
136238
+ 
136239
+  (0.2ms) WITH prosperity_metric_count AS (
136240
+ SELECT * FROM users
136241
+ )
136242
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136243
+ WHERE created_at < '2013-05-01T00:00:00Z'
136244
+
136245
+  (0.1ms)  WITH prosperity_metric_count AS (
136246
+ SELECT * FROM users
136247
+ )
136248
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136249
+ WHERE created_at < '2013-07-01T00:00:00Z'
136250
+ 
136251
+  (0.1ms) WITH prosperity_metric_count AS (
136252
+ SELECT * FROM users
136253
+ )
136254
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136255
+ WHERE created_at < '2013-06-01T00:00:00Z'
136256
+
136257
+  (0.2ms)  WITH prosperity_metric_count AS (
136258
+ SELECT * FROM users
136259
+ )
136260
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136261
+ WHERE created_at < '2013-08-01T00:00:00Z'
136262
+ 
136263
+  (0.1ms) WITH prosperity_metric_count AS (
136264
+ SELECT * FROM users
136265
+ )
136266
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136267
+ WHERE created_at < '2013-07-01T00:00:00Z'
136268
+
136269
+  (0.1ms)  WITH prosperity_metric_count AS (
136270
+ SELECT * FROM users
136271
+ )
136272
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136273
+ WHERE created_at < '2013-09-01T00:00:00Z'
136274
+ 
136275
+  (0.1ms) WITH prosperity_metric_count AS (
136276
+ SELECT * FROM users
136277
+ )
136278
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136279
+ WHERE created_at < '2013-08-01T00:00:00Z'
136280
+
136281
+  (0.2ms)  WITH prosperity_metric_count AS (
136282
+ SELECT * FROM users
136283
+ )
136284
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136285
+ WHERE created_at < '2013-10-01T00:00:00Z'
136286
+ 
136287
+  (0.2ms) WITH prosperity_metric_count AS (
136288
+ SELECT * FROM users
136289
+ )
136290
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136291
+ WHERE created_at < '2013-09-01T00:00:00Z'
136292
+
136293
+  (0.1ms)  WITH prosperity_metric_count AS (
136294
+ SELECT * FROM users
136295
+ )
136296
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136297
+ WHERE created_at < '2013-11-01T00:00:00Z'
136298
+ 
136299
+  (0.2ms) WITH prosperity_metric_count AS (
136300
+ SELECT * FROM users
136301
+ )
136302
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136303
+ WHERE created_at < '2013-10-01T00:00:00Z'
136304
+
136305
+  (0.2ms)  WITH prosperity_metric_count AS (
136306
+ SELECT * FROM users
136307
+ )
136308
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136309
+ WHERE created_at < '2013-12-01T00:00:00Z'
136310
+ 
136311
+  (0.2ms) WITH prosperity_metric_count AS (
136312
+ SELECT * FROM users
136313
+ )
136314
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136315
+ WHERE created_at < '2013-11-01T00:00:00Z'
136316
+
136317
+  (0.1ms)  WITH prosperity_metric_count AS (
136318
+ SELECT * FROM users
136319
+ )
136320
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136321
+ WHERE created_at < '2014-01-01T00:00:00Z'
136322
+ 
136323
+  (0.2ms) WITH prosperity_metric_count AS (
136324
+ SELECT * FROM users
136325
+ )
136326
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136327
+ WHERE created_at < '2013-12-01T00:00:00Z'
136328
+
136329
+  (0.1ms)  WITH prosperity_metric_count AS (
136330
+ SELECT * FROM users
136331
+ )
136332
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136333
+ WHERE created_at < '2014-02-01T00:00:00Z'
136334
+ 
136335
+  (0.1ms) WITH prosperity_metric_count AS (
136336
+ SELECT * FROM users
136337
+ )
136338
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136339
+ WHERE created_at < '2014-01-01T00:00:00Z'
136340
+
136341
+  (0.2ms)  WITH prosperity_metric_count AS (
136342
+ SELECT * FROM users
136343
+ )
136344
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136345
+ WHERE created_at < '2014-03-01T00:00:00Z'
136346
+ 
136347
+  (0.1ms) WITH prosperity_metric_count AS (
136348
+ SELECT * FROM users
136349
+ )
136350
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136351
+ WHERE created_at < '2014-02-01T00:00:00Z'
136352
+
136353
+  (0.1ms)  WITH prosperity_metric_count AS (
136354
+ SELECT * FROM users
136355
+ )
136356
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136357
+ WHERE created_at < '2014-04-01T00:00:00Z'
136358
+ 
136359
+  (0.2ms) WITH prosperity_metric_count AS (
136360
+ SELECT * FROM users
136361
+ )
136362
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136363
+ WHERE created_at < '2014-03-01T00:00:00Z'
136364
+
136365
+  (0.3ms)  WITH prosperity_metric_count AS (
136366
+ SELECT * FROM users
136367
+ )
136368
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136369
+ WHERE created_at < '2014-05-01T00:00:00Z'
136370
+ 
136371
+  (0.2ms) WITH prosperity_metric_count AS (
136372
+ SELECT * FROM users
136373
+ )
136374
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136375
+ WHERE created_at < '2014-04-01T00:00:00Z'
136376
+
136377
+  (0.1ms)  WITH prosperity_metric_count AS (
136378
+ SELECT * FROM users
136379
+ )
136380
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136381
+ WHERE created_at < '2014-06-01T00:00:00Z'
136382
+ 
136383
+  (0.1ms) WITH prosperity_metric_count AS (
136384
+ SELECT * FROM users
136385
+ )
136386
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136387
+ WHERE created_at < '2014-05-01T00:00:00Z'
136388
+
136389
+ SQL (0.3ms) DELETE FROM "users"
136390
+  (0.1ms) BEGIN
136391
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.254695"], ["updated_at", "2014-05-20 18:56:17.255233"]]
136392
+  (0.3ms) COMMIT
136393
+  (0.1ms) BEGIN
136394
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.254772"], ["updated_at", "2014-05-20 18:56:17.256429"]]
136395
+  (0.2ms) COMMIT
136396
+  (0.1ms) BEGIN
136397
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.254815"], ["updated_at", "2014-05-20 18:56:17.257416"]]
136398
+  (0.2ms) COMMIT
136399
+  (0.1ms) BEGIN
136400
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.254855"], ["updated_at", "2014-05-20 18:56:17.258409"]]
136401
+  (0.2ms) COMMIT
136402
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
136403
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-04-01 00:00:00.000000')
136404
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
136405
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
136406
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
136407
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
136408
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
136409
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
136410
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
136411
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
136412
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
136413
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
136414
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
136415
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
136416
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
136417
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
136418
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
136419
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
136420
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
136421
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
136422
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
136423
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
136424
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
136425
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
136426
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
136427
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
136428
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
136429
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
136430
+ SQL (0.3ms) DELETE FROM "users"
136431
+  (0.1ms) BEGIN
136432
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.274867"], ["updated_at", "2014-05-20 18:56:17.275392"]]
136433
+  (0.3ms) COMMIT
136434
+  (0.1ms) BEGIN
136435
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.274951"], ["updated_at", "2014-05-20 18:56:17.276823"]]
136436
+  (0.2ms) COMMIT
136437
+  (0.1ms) BEGIN
136438
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.274992"], ["updated_at", "2014-05-20 18:56:17.277844"]]
136439
+  (0.2ms) COMMIT
136440
+  (0.1ms) BEGIN
136441
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.275028"], ["updated_at", "2014-05-20 18:56:17.278757"]]
136442
+  (0.2ms) COMMIT
136443
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
136444
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-04-01 00:00:00.000000')
136445
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
136446
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
136447
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
136448
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
136449
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
136450
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
136451
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
136452
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
136453
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
136454
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
136455
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
136456
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
136457
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
136458
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
136459
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
136460
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
136461
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
136462
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
136463
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
136464
+  (0.3ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
136465
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
136466
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
136467
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
136468
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
136469
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
136470
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
136471
+ SQL (0.3ms) DELETE FROM "users"
136472
+  (0.1ms) BEGIN
136473
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.295005"], ["updated_at", "2014-05-20 18:56:17.295527"]]
136474
+  (0.2ms) COMMIT
136475
+  (0.1ms) BEGIN
136476
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.295074"], ["updated_at", "2014-05-20 18:56:17.296688"]]
136477
+  (0.2ms) COMMIT
136478
+  (0.1ms) BEGIN
136479
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.295118"], ["updated_at", "2014-05-20 18:56:17.297675"]]
136480
+  (0.3ms) COMMIT
136481
+  (0.1ms) BEGIN
136482
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.295155"], ["updated_at", "2014-05-20 18:56:17.298869"]]
136483
+  (0.3ms) COMMIT
136484
+ SQL (0.3ms) DELETE FROM "users"
136485
+  (0.1ms) BEGIN
136486
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.302417"], ["updated_at", "2014-05-20 18:56:17.302894"]]
136487
+  (0.3ms) COMMIT
136488
+  (0.1ms) BEGIN
136489
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.302486"], ["updated_at", "2014-05-20 18:56:17.304079"]]
136490
+  (0.2ms) COMMIT
136491
+  (0.1ms) BEGIN
136492
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.302524"], ["updated_at", "2014-05-20 18:56:17.305077"]]
136493
+  (0.2ms) COMMIT
136494
+  (0.1ms) BEGIN
136495
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.302564"], ["updated_at", "2014-05-20 18:56:17.306022"]]
136496
+  (0.2ms) COMMIT
136497
+  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
136498
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-04-01 00:00:00.000000')
136499
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
136500
+  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
136501
+  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
136502
+  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
136503
+  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
136504
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
136505
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
136506
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
136507
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
136508
+  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
136509
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
136510
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
136511
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
136512
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
136513
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
136514
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
136515
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
136516
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
136517
+  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
136518
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
136519
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
136520
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
136521
+  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
136522
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
136523
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
136524
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
136525
+ SQL (0.4ms) DELETE FROM "users"
136526
+  (0.1ms) BEGIN
136527
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.320453"], ["updated_at", "2014-05-20 18:56:17.321307"]]
136528
+  (0.2ms) COMMIT
136529
+  (0.1ms) BEGIN
136530
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.320563"], ["updated_at", "2014-05-20 18:56:17.322803"]]
136531
+  (0.2ms) COMMIT
136532
+  (0.1ms) BEGIN
136533
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.320632"], ["updated_at", "2014-05-20 18:56:17.324029"]]
136534
+  (0.2ms) COMMIT
136535
+  (0.1ms) BEGIN
136536
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.320713"], ["updated_at", "2014-05-20 18:56:17.325085"]]
136537
+  (0.3ms) COMMIT
136538
+  (0.2ms) WITH prosperity_metric_count AS (
136539
+ SELECT * FROM users
136540
+ )
136541
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136542
+ WHERE created_at < '2013-05-01T00:00:00Z'
136543
+
136544
+  (0.2ms)  WITH prosperity_metric_count AS (
136545
+ SELECT * FROM users
136546
+ )
136547
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136548
+ WHERE created_at < '2013-04-01T00:00:00Z'
136549
+ 
136550
+  (0.1ms) WITH prosperity_metric_count AS (
136551
+ SELECT * FROM users
136552
+ )
136553
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136554
+ WHERE created_at < '2013-06-01T00:00:00Z'
136555
+
136556
+  (0.1ms)  WITH prosperity_metric_count AS (
136557
+ SELECT * FROM users
136558
+ )
136559
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136560
+ WHERE created_at < '2013-05-01T00:00:00Z'
136561
+ 
136562
+  (0.1ms) WITH prosperity_metric_count AS (
136563
+ SELECT * FROM users
136564
+ )
136565
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136566
+ WHERE created_at < '2013-07-01T00:00:00Z'
136567
+
136568
+  (0.1ms)  WITH prosperity_metric_count AS (
136569
+ SELECT * FROM users
136570
+ )
136571
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136572
+ WHERE created_at < '2013-06-01T00:00:00Z'
136573
+ 
136574
+  (0.1ms) WITH prosperity_metric_count AS (
136575
+ SELECT * FROM users
136576
+ )
136577
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136578
+ WHERE created_at < '2013-08-01T00:00:00Z'
136579
+
136580
+  (0.1ms)  WITH prosperity_metric_count AS (
136581
+ SELECT * FROM users
136582
+ )
136583
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136584
+ WHERE created_at < '2013-07-01T00:00:00Z'
136585
+ 
136586
+  (0.2ms) WITH prosperity_metric_count AS (
136587
+ SELECT * FROM users
136588
+ )
136589
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136590
+ WHERE created_at < '2013-09-01T00:00:00Z'
136591
+
136592
+  (0.2ms)  WITH prosperity_metric_count AS (
136593
+ SELECT * FROM users
136594
+ )
136595
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136596
+ WHERE created_at < '2013-08-01T00:00:00Z'
136597
+ 
136598
+  (0.1ms) WITH prosperity_metric_count AS (
136599
+ SELECT * FROM users
136600
+ )
136601
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136602
+ WHERE created_at < '2013-10-01T00:00:00Z'
136603
+
136604
+  (0.2ms)  WITH prosperity_metric_count AS (
136605
+ SELECT * FROM users
136606
+ )
136607
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136608
+ WHERE created_at < '2013-09-01T00:00:00Z'
136609
+ 
136610
+  (0.1ms) WITH prosperity_metric_count AS (
136611
+ SELECT * FROM users
136612
+ )
136613
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136614
+ WHERE created_at < '2013-11-01T00:00:00Z'
136615
+
136616
+  (0.2ms)  WITH prosperity_metric_count AS (
136617
+ SELECT * FROM users
136618
+ )
136619
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136620
+ WHERE created_at < '2013-10-01T00:00:00Z'
136621
+ 
136622
+  (0.2ms) WITH prosperity_metric_count AS (
136623
+ SELECT * FROM users
136624
+ )
136625
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136626
+ WHERE created_at < '2013-12-01T00:00:00Z'
136627
+
136628
+  (0.1ms)  WITH prosperity_metric_count AS (
136629
+ SELECT * FROM users
136630
+ )
136631
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136632
+ WHERE created_at < '2013-11-01T00:00:00Z'
136633
+ 
136634
+  (0.2ms) WITH prosperity_metric_count AS (
136635
+ SELECT * FROM users
136636
+ )
136637
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136638
+ WHERE created_at < '2014-01-01T00:00:00Z'
136639
+
136640
+  (0.1ms)  WITH prosperity_metric_count AS (
136641
+ SELECT * FROM users
136642
+ )
136643
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136644
+ WHERE created_at < '2013-12-01T00:00:00Z'
136645
+ 
136646
+  (0.1ms) WITH prosperity_metric_count AS (
136647
+ SELECT * FROM users
136648
+ )
136649
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136650
+ WHERE created_at < '2014-02-01T00:00:00Z'
136651
+
136652
+  (0.1ms)  WITH prosperity_metric_count AS (
136653
+ SELECT * FROM users
136654
+ )
136655
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136656
+ WHERE created_at < '2014-01-01T00:00:00Z'
136657
+ 
136658
+  (0.2ms) WITH prosperity_metric_count AS (
136659
+ SELECT * FROM users
136660
+ )
136661
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136662
+ WHERE created_at < '2014-03-01T00:00:00Z'
136663
+
136664
+  (0.2ms)  WITH prosperity_metric_count AS (
136665
+ SELECT * FROM users
136666
+ )
136667
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136668
+ WHERE created_at < '2014-02-01T00:00:00Z'
136669
+ 
136670
+  (0.2ms) WITH prosperity_metric_count AS (
136671
+ SELECT * FROM users
136672
+ )
136673
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136674
+ WHERE created_at < '2014-04-01T00:00:00Z'
136675
+
136676
+  (0.1ms)  WITH prosperity_metric_count AS (
136677
+ SELECT * FROM users
136678
+ )
136679
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136680
+ WHERE created_at < '2014-03-01T00:00:00Z'
136681
+ 
136682
+  (0.1ms) WITH prosperity_metric_count AS (
136683
+ SELECT * FROM users
136684
+ )
136685
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136686
+ WHERE created_at < '2014-05-01T00:00:00Z'
136687
+
136688
+  (0.1ms)  WITH prosperity_metric_count AS (
136689
+ SELECT * FROM users
136690
+ )
136691
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136692
+ WHERE created_at < '2014-04-01T00:00:00Z'
136693
+ 
136694
+  (0.2ms) WITH prosperity_metric_count AS (
136695
+ SELECT * FROM users
136696
+ )
136697
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136698
+ WHERE created_at < '2014-06-01T00:00:00Z'
136699
+
136700
+  (0.1ms)  WITH prosperity_metric_count AS (
136701
+ SELECT * FROM users
136702
+ )
136703
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
136704
+ WHERE created_at < '2014-05-01T00:00:00Z'
136705
+ 
136706
+ SQL (0.3ms) DELETE FROM "users"
136707
+  (0.1ms) BEGIN
136708
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.334897"], ["updated_at", "2014-05-20 18:56:17.335414"]]
136709
+  (0.3ms) COMMIT
136710
+  (0.1ms) BEGIN
136711
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.334960"], ["updated_at", "2014-05-20 18:56:17.336587"]]
136712
+  (0.4ms) COMMIT
136713
+  (0.1ms) BEGIN
136714
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.335003"], ["updated_at", "2014-05-20 18:56:17.337766"]]
136715
+  (0.2ms) COMMIT
136716
+  (0.1ms) BEGIN
136717
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.335040"], ["updated_at", "2014-05-20 18:56:17.338778"]]
136718
+  (0.2ms) COMMIT
136719
+  (0.2ms)  WITH prosperity_metric_count AS (
136720
+ SELECT * FROM users
136721
+ )
136722
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136723
+ WHERE created_at < '2013-05-01T00:00:00Z'
136724
+ 
136725
+  (0.2ms) WITH prosperity_metric_count AS (
136726
+ SELECT * FROM users
136727
+ )
136728
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136729
+ WHERE created_at < '2013-04-01T00:00:00Z'
136730
+
136731
+  (0.1ms)  WITH prosperity_metric_count AS (
136732
+ SELECT * FROM users
136733
+ )
136734
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136735
+ WHERE created_at < '2013-06-01T00:00:00Z'
136736
+ 
136737
+  (0.1ms) WITH prosperity_metric_count AS (
136738
+ SELECT * FROM users
136739
+ )
136740
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136741
+ WHERE created_at < '2013-05-01T00:00:00Z'
136742
+
136743
+  (0.1ms)  WITH prosperity_metric_count AS (
136744
+ SELECT * FROM users
136745
+ )
136746
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136747
+ WHERE created_at < '2013-07-01T00:00:00Z'
136748
+ 
136749
+  (0.1ms) WITH prosperity_metric_count AS (
136750
+ SELECT * FROM users
136751
+ )
136752
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136753
+ WHERE created_at < '2013-06-01T00:00:00Z'
136754
+
136755
+  (0.2ms)  WITH prosperity_metric_count AS (
136756
+ SELECT * FROM users
136757
+ )
136758
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136759
+ WHERE created_at < '2013-08-01T00:00:00Z'
136760
+ 
136761
+  (0.1ms) WITH prosperity_metric_count AS (
136762
+ SELECT * FROM users
136763
+ )
136764
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136765
+ WHERE created_at < '2013-07-01T00:00:00Z'
136766
+
136767
+  (0.2ms)  WITH prosperity_metric_count AS (
136768
+ SELECT * FROM users
136769
+ )
136770
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136771
+ WHERE created_at < '2013-09-01T00:00:00Z'
136772
+ 
136773
+  (0.2ms) WITH prosperity_metric_count AS (
136774
+ SELECT * FROM users
136775
+ )
136776
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136777
+ WHERE created_at < '2013-08-01T00:00:00Z'
136778
+
136779
+  (0.2ms)  WITH prosperity_metric_count AS (
136780
+ SELECT * FROM users
136781
+ )
136782
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136783
+ WHERE created_at < '2013-10-01T00:00:00Z'
136784
+ 
136785
+  (0.1ms) WITH prosperity_metric_count AS (
136786
+ SELECT * FROM users
136787
+ )
136788
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136789
+ WHERE created_at < '2013-09-01T00:00:00Z'
136790
+
136791
+  (0.2ms)  WITH prosperity_metric_count AS (
136792
+ SELECT * FROM users
136793
+ )
136794
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136795
+ WHERE created_at < '2013-11-01T00:00:00Z'
136796
+ 
136797
+  (0.1ms) WITH prosperity_metric_count AS (
136798
+ SELECT * FROM users
136799
+ )
136800
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136801
+ WHERE created_at < '2013-10-01T00:00:00Z'
136802
+
136803
+  (0.1ms)  WITH prosperity_metric_count AS (
136804
+ SELECT * FROM users
136805
+ )
136806
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136807
+ WHERE created_at < '2013-12-01T00:00:00Z'
136808
+ 
136809
+  (0.1ms) WITH prosperity_metric_count AS (
136810
+ SELECT * FROM users
136811
+ )
136812
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136813
+ WHERE created_at < '2013-11-01T00:00:00Z'
136814
+
136815
+  (0.2ms)  WITH prosperity_metric_count AS (
136816
+ SELECT * FROM users
136817
+ )
136818
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136819
+ WHERE created_at < '2014-01-01T00:00:00Z'
136820
+ 
136821
+  (0.2ms) WITH prosperity_metric_count AS (
136822
+ SELECT * FROM users
136823
+ )
136824
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136825
+ WHERE created_at < '2013-12-01T00:00:00Z'
136826
+
136827
+  (0.1ms)  WITH prosperity_metric_count AS (
136828
+ SELECT * FROM users
136829
+ )
136830
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136831
+ WHERE created_at < '2014-02-01T00:00:00Z'
136832
+ 
136833
+  (0.1ms) WITH prosperity_metric_count AS (
136834
+ SELECT * FROM users
136835
+ )
136836
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136837
+ WHERE created_at < '2014-01-01T00:00:00Z'
136838
+
136839
+  (0.1ms)  WITH prosperity_metric_count AS (
136840
+ SELECT * FROM users
136841
+ )
136842
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136843
+ WHERE created_at < '2014-03-01T00:00:00Z'
136844
+ 
136845
+  (0.1ms) WITH prosperity_metric_count AS (
136846
+ SELECT * FROM users
136847
+ )
136848
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136849
+ WHERE created_at < '2014-02-01T00:00:00Z'
136850
+
136851
+  (0.1ms)  WITH prosperity_metric_count AS (
136852
+ SELECT * FROM users
136853
+ )
136854
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136855
+ WHERE created_at < '2014-04-01T00:00:00Z'
136856
+ 
136857
+  (0.1ms) WITH prosperity_metric_count AS (
136858
+ SELECT * FROM users
136859
+ )
136860
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136861
+ WHERE created_at < '2014-03-01T00:00:00Z'
136862
+
136863
+  (0.2ms)  WITH prosperity_metric_count AS (
136864
+ SELECT * FROM users
136865
+ )
136866
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136867
+ WHERE created_at < '2014-05-01T00:00:00Z'
136868
+ 
136869
+  (0.1ms) WITH prosperity_metric_count AS (
136870
+ SELECT * FROM users
136871
+ )
136872
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136873
+ WHERE created_at < '2014-04-01T00:00:00Z'
136874
+
136875
+  (0.2ms)  WITH prosperity_metric_count AS (
136876
+ SELECT * FROM users
136877
+ )
136878
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136879
+ WHERE created_at < '2014-06-01T00:00:00Z'
136880
+ 
136881
+  (0.1ms) WITH prosperity_metric_count AS (
136882
+ SELECT * FROM users
136883
+ )
136884
+ SELECT MIN(value) AS RESULT FROM prosperity_metric_count
136885
+ WHERE created_at < '2014-05-01T00:00:00Z'
136886
+
136887
+ SQL (0.3ms) DELETE FROM "users"
136888
+  (0.1ms) BEGIN
136889
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.348485"], ["updated_at", "2014-05-20 18:56:17.348982"]]
136890
+  (0.3ms) COMMIT
136891
+  (0.1ms) BEGIN
136892
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.348558"], ["updated_at", "2014-05-20 18:56:17.350247"]]
136893
+  (0.3ms) COMMIT
136894
+  (0.1ms) BEGIN
136895
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.348597"], ["updated_at", "2014-05-20 18:56:17.351295"]]
136896
+  (0.3ms) COMMIT
136897
+  (0.1ms) BEGIN
136898
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.348633"], ["updated_at", "2014-05-20 18:56:17.352241"]]
136899
+  (0.3ms) COMMIT
136900
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
136901
+  (0.3ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-04-01 00:00:00.000000')
136902
+  (0.3ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
136903
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
136904
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
136905
+  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
136906
+  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
136907
+  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
136908
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
136909
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
136910
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
136911
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
136912
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
136913
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
136914
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
136915
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
136916
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
136917
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
136918
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
136919
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
136920
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
136921
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
136922
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
136923
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
136924
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
136925
+  (0.3ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
136926
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
136927
+  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
136928
+ SQL (0.4ms) DELETE FROM "users"
136929
+  (0.1ms) BEGIN
136930
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.378868"], ["updated_at", "2014-05-20 18:56:17.379426"]]
136931
+  (0.3ms) COMMIT
136932
+  (0.1ms) BEGIN
136933
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.378946"], ["updated_at", "2014-05-20 18:56:17.380789"]]
136934
+  (0.2ms) COMMIT
136935
+  (0.1ms) BEGIN
136936
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.378987"], ["updated_at", "2014-05-20 18:56:17.381800"]]
136937
+  (0.2ms) COMMIT
136938
+  (0.1ms) BEGIN
136939
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.379050"], ["updated_at", "2014-05-20 18:56:17.383299"]]
136940
+  (0.3ms) COMMIT
136941
+  (0.2ms)  WITH prosperity_metric_count AS (
136942
+ SELECT * FROM users
136943
+ )
136944
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136945
+ WHERE created_at < '2013-05-01T00:00:00Z'
136946
+ 
136947
+  (0.1ms) WITH prosperity_metric_count AS (
136948
+ SELECT * FROM users
136949
+ )
136950
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136951
+ WHERE created_at < '2013-04-01T00:00:00Z'
136952
+
136953
+  (0.1ms)  WITH prosperity_metric_count AS (
136954
+ SELECT * FROM users
136955
+ )
136956
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136957
+ WHERE created_at < '2013-06-01T00:00:00Z'
136958
+ 
136959
+  (0.1ms) WITH prosperity_metric_count AS (
136960
+ SELECT * FROM users
136961
+ )
136962
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136963
+ WHERE created_at < '2013-05-01T00:00:00Z'
136964
+
136965
+  (0.1ms)  WITH prosperity_metric_count AS (
136966
+ SELECT * FROM users
136967
+ )
136968
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136969
+ WHERE created_at < '2013-07-01T00:00:00Z'
136970
+ 
136971
+  (0.1ms) WITH prosperity_metric_count AS (
136972
+ SELECT * FROM users
136973
+ )
136974
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136975
+ WHERE created_at < '2013-06-01T00:00:00Z'
136976
+
136977
+  (0.2ms)  WITH prosperity_metric_count AS (
136978
+ SELECT * FROM users
136979
+ )
136980
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136981
+ WHERE created_at < '2013-08-01T00:00:00Z'
136982
+ 
136983
+  (0.2ms) WITH prosperity_metric_count AS (
136984
+ SELECT * FROM users
136985
+ )
136986
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136987
+ WHERE created_at < '2013-07-01T00:00:00Z'
136988
+
136989
+  (0.7ms)  WITH prosperity_metric_count AS (
136990
+ SELECT * FROM users
136991
+ )
136992
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136993
+ WHERE created_at < '2013-09-01T00:00:00Z'
136994
+ 
136995
+  (0.3ms) WITH prosperity_metric_count AS (
136996
+ SELECT * FROM users
136997
+ )
136998
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
136999
+ WHERE created_at < '2013-08-01T00:00:00Z'
137000
+
137001
+  (0.2ms)  WITH prosperity_metric_count AS (
137002
+ SELECT * FROM users
137003
+ )
137004
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137005
+ WHERE created_at < '2013-10-01T00:00:00Z'
137006
+ 
137007
+  (0.1ms) WITH prosperity_metric_count AS (
137008
+ SELECT * FROM users
137009
+ )
137010
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137011
+ WHERE created_at < '2013-09-01T00:00:00Z'
137012
+
137013
+  (0.1ms)  WITH prosperity_metric_count AS (
137014
+ SELECT * FROM users
137015
+ )
137016
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137017
+ WHERE created_at < '2013-11-01T00:00:00Z'
137018
+ 
137019
+  (0.1ms) WITH prosperity_metric_count AS (
137020
+ SELECT * FROM users
137021
+ )
137022
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137023
+ WHERE created_at < '2013-10-01T00:00:00Z'
137024
+
137025
+  (0.2ms)  WITH prosperity_metric_count AS (
137026
+ SELECT * FROM users
137027
+ )
137028
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137029
+ WHERE created_at < '2013-12-01T00:00:00Z'
137030
+ 
137031
+  (0.2ms) WITH prosperity_metric_count AS (
137032
+ SELECT * FROM users
137033
+ )
137034
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137035
+ WHERE created_at < '2013-11-01T00:00:00Z'
137036
+
137037
+  (0.2ms)  WITH prosperity_metric_count AS (
137038
+ SELECT * FROM users
137039
+ )
137040
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137041
+ WHERE created_at < '2014-01-01T00:00:00Z'
137042
+ 
137043
+  (0.2ms) WITH prosperity_metric_count AS (
137044
+ SELECT * FROM users
137045
+ )
137046
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137047
+ WHERE created_at < '2013-12-01T00:00:00Z'
137048
+
137049
+  (0.1ms)  WITH prosperity_metric_count AS (
137050
+ SELECT * FROM users
137051
+ )
137052
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137053
+ WHERE created_at < '2014-02-01T00:00:00Z'
137054
+ 
137055
+  (0.1ms) WITH prosperity_metric_count AS (
137056
+ SELECT * FROM users
137057
+ )
137058
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137059
+ WHERE created_at < '2014-01-01T00:00:00Z'
137060
+
137061
+  (0.2ms)  WITH prosperity_metric_count AS (
137062
+ SELECT * FROM users
137063
+ )
137064
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137065
+ WHERE created_at < '2014-03-01T00:00:00Z'
137066
+ 
137067
+  (0.2ms) WITH prosperity_metric_count AS (
137068
+ SELECT * FROM users
137069
+ )
137070
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137071
+ WHERE created_at < '2014-02-01T00:00:00Z'
137072
+
137073
+  (0.1ms)  WITH prosperity_metric_count AS (
137074
+ SELECT * FROM users
137075
+ )
137076
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137077
+ WHERE created_at < '2014-04-01T00:00:00Z'
137078
+ 
137079
+  (0.1ms) WITH prosperity_metric_count AS (
137080
+ SELECT * FROM users
137081
+ )
137082
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137083
+ WHERE created_at < '2014-03-01T00:00:00Z'
137084
+
137085
+  (0.2ms)  WITH prosperity_metric_count AS (
137086
+ SELECT * FROM users
137087
+ )
137088
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137089
+ WHERE created_at < '2014-05-01T00:00:00Z'
137090
+ 
137091
+  (0.1ms) WITH prosperity_metric_count AS (
137092
+ SELECT * FROM users
137093
+ )
137094
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137095
+ WHERE created_at < '2014-04-01T00:00:00Z'
137096
+
137097
+  (0.1ms)  WITH prosperity_metric_count AS (
137098
+ SELECT * FROM users
137099
+ )
137100
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137101
+ WHERE created_at < '2014-06-01T00:00:00Z'
137102
+ 
137103
+  (0.1ms) WITH prosperity_metric_count AS (
137104
+ SELECT * FROM users
137105
+ )
137106
+ SELECT COUNT(1) AS RESULT FROM prosperity_metric_count
137107
+ WHERE created_at < '2014-05-01T00:00:00Z'
137108
+
137109
+ SQL (5.8ms) DELETE FROM "users"
137110
+  (0.1ms) BEGIN
137111
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.401328"], ["updated_at", "2014-05-20 18:56:17.401988"]]
137112
+  (5.6ms) COMMIT
137113
+  (0.1ms) BEGIN
137114
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.401465"], ["updated_at", "2014-05-20 18:56:17.409058"]]
137115
+  (4.8ms) COMMIT
137116
+  (0.1ms) BEGIN
137117
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.401509"], ["updated_at", "2014-05-20 18:56:17.414899"]]
137118
+  (0.2ms) COMMIT
137119
+  (0.1ms) BEGIN
137120
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.401547"], ["updated_at", "2014-05-20 18:56:17.416119"]]
137121
+  (0.2ms) COMMIT
137122
+  (0.3ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
137123
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-04-01 00:00:00.000000')
137124
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
137125
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
137126
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
137127
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
137128
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
137129
+  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
137130
+  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
137131
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
137132
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
137133
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
137134
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
137135
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
137136
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
137137
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
137138
+  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
137139
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
137140
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
137141
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
137142
+  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
137143
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
137144
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
137145
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
137146
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
137147
+  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
137148
+  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
137149
+  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
137150
+ SQL (0.3ms) DELETE FROM "users"
137151
+  (0.1ms) BEGIN
137152
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.433936"], ["updated_at", "2014-05-20 18:56:17.434599"]]
137153
+  (0.2ms) COMMIT
137154
+  (0.1ms) BEGIN
137155
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.434069"], ["updated_at", "2014-05-20 18:56:17.435935"]]
137156
+  (0.3ms) COMMIT
137157
+  (0.1ms) BEGIN
137158
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.434112"], ["updated_at", "2014-05-20 18:56:17.437060"]]
137159
+  (0.2ms) COMMIT
137160
+  (0.1ms) BEGIN
137161
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.434149"], ["updated_at", "2014-05-20 18:56:17.438361"]]
137162
+  (0.4ms) COMMIT
137163
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
137164
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-04-01 00:00:00.000000')
137165
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
137166
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
137167
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
137168
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
137169
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
137170
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
137171
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
137172
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
137173
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
137174
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
137175
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
137176
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
137177
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
137178
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
137179
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
137180
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
137181
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
137182
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
137183
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
137184
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
137185
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
137186
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
137187
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
137188
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
137189
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
137190
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
137191
+ SQL (0.4ms) DELETE FROM "users"
137192
+  (0.1ms) BEGIN
137193
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.454209"], ["updated_at", "2014-05-20 18:56:17.454883"]]
137194
+  (0.2ms) COMMIT
137195
+  (0.1ms) BEGIN
137196
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.454279"], ["updated_at", "2014-05-20 18:56:17.456296"]]
137197
+  (0.2ms) COMMIT
137198
+  (0.1ms) BEGIN
137199
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.454474"], ["updated_at", "2014-05-20 18:56:17.457634"]]
137200
+  (0.2ms) COMMIT
137201
+  (0.1ms) BEGIN
137202
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.454512"], ["updated_at", "2014-05-20 18:56:17.458735"]]
137203
+  (0.2ms) COMMIT
137204
+  (0.3ms) WITH prosperity_metric_count AS (
137205
+ SELECT * FROM users
137206
+ )
137207
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137208
+ WHERE created_at < '2013-05-01T00:00:00Z'
137209
+
137210
+  (0.2ms)  WITH prosperity_metric_count AS (
137211
+ SELECT * FROM users
137212
+ )
137213
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137214
+ WHERE created_at < '2013-04-01T00:00:00Z'
137215
+ 
137216
+  (0.2ms) WITH prosperity_metric_count AS (
137217
+ SELECT * FROM users
137218
+ )
137219
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137220
+ WHERE created_at < '2013-06-01T00:00:00Z'
137221
+
137222
+  (0.1ms)  WITH prosperity_metric_count AS (
137223
+ SELECT * FROM users
137224
+ )
137225
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137226
+ WHERE created_at < '2013-05-01T00:00:00Z'
137227
+ 
137228
+  (0.1ms) WITH prosperity_metric_count AS (
137229
+ SELECT * FROM users
137230
+ )
137231
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137232
+ WHERE created_at < '2013-07-01T00:00:00Z'
137233
+
137234
+  (0.1ms)  WITH prosperity_metric_count AS (
137235
+ SELECT * FROM users
137236
+ )
137237
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137238
+ WHERE created_at < '2013-06-01T00:00:00Z'
137239
+ 
137240
+  (0.2ms) WITH prosperity_metric_count AS (
137241
+ SELECT * FROM users
137242
+ )
137243
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137244
+ WHERE created_at < '2013-08-01T00:00:00Z'
137245
+
137246
+  (0.2ms)  WITH prosperity_metric_count AS (
137247
+ SELECT * FROM users
137248
+ )
137249
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137250
+ WHERE created_at < '2013-07-01T00:00:00Z'
137251
+ 
137252
+  (0.1ms) WITH prosperity_metric_count AS (
137253
+ SELECT * FROM users
137254
+ )
137255
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137256
+ WHERE created_at < '2013-09-01T00:00:00Z'
137257
+
137258
+  (0.1ms)  WITH prosperity_metric_count AS (
137259
+ SELECT * FROM users
137260
+ )
137261
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137262
+ WHERE created_at < '2013-08-01T00:00:00Z'
137263
+ 
137264
+  (0.2ms) WITH prosperity_metric_count AS (
137265
+ SELECT * FROM users
137266
+ )
137267
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137268
+ WHERE created_at < '2013-10-01T00:00:00Z'
137269
+
137270
+  (0.2ms)  WITH prosperity_metric_count AS (
137271
+ SELECT * FROM users
137272
+ )
137273
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137274
+ WHERE created_at < '2013-09-01T00:00:00Z'
137275
+ 
137276
+  (0.1ms) WITH prosperity_metric_count AS (
137277
+ SELECT * FROM users
137278
+ )
137279
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137280
+ WHERE created_at < '2013-11-01T00:00:00Z'
137281
+
137282
+  (0.1ms)  WITH prosperity_metric_count AS (
137283
+ SELECT * FROM users
137284
+ )
137285
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137286
+ WHERE created_at < '2013-10-01T00:00:00Z'
137287
+ 
137288
+  (0.2ms) WITH prosperity_metric_count AS (
137289
+ SELECT * FROM users
137290
+ )
137291
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137292
+ WHERE created_at < '2013-12-01T00:00:00Z'
137293
+
137294
+  (0.2ms)  WITH prosperity_metric_count AS (
137295
+ SELECT * FROM users
137296
+ )
137297
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137298
+ WHERE created_at < '2013-11-01T00:00:00Z'
137299
+ 
137300
+  (0.1ms) WITH prosperity_metric_count AS (
137301
+ SELECT * FROM users
137302
+ )
137303
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137304
+ WHERE created_at < '2014-01-01T00:00:00Z'
137305
+
137306
+  (0.2ms)  WITH prosperity_metric_count AS (
137307
+ SELECT * FROM users
137308
+ )
137309
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137310
+ WHERE created_at < '2013-12-01T00:00:00Z'
137311
+ 
137312
+  (0.1ms) WITH prosperity_metric_count AS (
137313
+ SELECT * FROM users
137314
+ )
137315
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137316
+ WHERE created_at < '2014-02-01T00:00:00Z'
137317
+
137318
+  (0.2ms)  WITH prosperity_metric_count AS (
137319
+ SELECT * FROM users
137320
+ )
137321
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137322
+ WHERE created_at < '2014-01-01T00:00:00Z'
137323
+ 
137324
+  (0.1ms) WITH prosperity_metric_count AS (
137325
+ SELECT * FROM users
137326
+ )
137327
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137328
+ WHERE created_at < '2014-03-01T00:00:00Z'
137329
+
137330
+  (0.2ms)  WITH prosperity_metric_count AS (
137331
+ SELECT * FROM users
137332
+ )
137333
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137334
+ WHERE created_at < '2014-02-01T00:00:00Z'
137335
+ 
137336
+  (0.2ms) WITH prosperity_metric_count AS (
137337
+ SELECT * FROM users
137338
+ )
137339
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137340
+ WHERE created_at < '2014-04-01T00:00:00Z'
137341
+
137342
+  (0.2ms)  WITH prosperity_metric_count AS (
137343
+ SELECT * FROM users
137344
+ )
137345
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137346
+ WHERE created_at < '2014-03-01T00:00:00Z'
137347
+ 
137348
+  (0.1ms) WITH prosperity_metric_count AS (
137349
+ SELECT * FROM users
137350
+ )
137351
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137352
+ WHERE created_at < '2014-05-01T00:00:00Z'
137353
+
137354
+  (0.1ms)  WITH prosperity_metric_count AS (
137355
+ SELECT * FROM users
137356
+ )
137357
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137358
+ WHERE created_at < '2014-04-01T00:00:00Z'
137359
+ 
137360
+  (0.1ms) WITH prosperity_metric_count AS (
137361
+ SELECT * FROM users
137362
+ )
137363
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137364
+ WHERE created_at < '2014-06-01T00:00:00Z'
137365
+
137366
+  (0.1ms)  WITH prosperity_metric_count AS (
137367
+ SELECT * FROM users
137368
+ )
137369
+ SELECT AVG(value) AS RESULT FROM prosperity_metric_count
137370
+ WHERE created_at < '2014-05-01T00:00:00Z'
137371
+ 
137372
+ SQL (0.3ms) DELETE FROM "users"
137373
+  (0.1ms) BEGIN
137374
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.469034"], ["updated_at", "2014-05-20 18:56:17.469739"]]
137375
+  (0.3ms) COMMIT
137376
+  (0.1ms) BEGIN
137377
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.469102"], ["updated_at", "2014-05-20 18:56:17.471050"]]
137378
+  (0.3ms) COMMIT
137379
+  (0.1ms) BEGIN
137380
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.469141"], ["updated_at", "2014-05-20 18:56:17.472118"]]
137381
+  (0.2ms) COMMIT
137382
+  (0.1ms) BEGIN
137383
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.469261"], ["updated_at", "2014-05-20 18:56:17.473040"]]
137384
+  (0.2ms) COMMIT
137385
+  (0.2ms)  WITH prosperity_metric_count AS (
137386
+ SELECT * FROM users
137387
+ )
137388
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137389
+ WHERE created_at < '2013-05-01T00:00:00Z'
137390
+ 
137391
+  (0.1ms) WITH prosperity_metric_count AS (
137392
+ SELECT * FROM users
137393
+ )
137394
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137395
+ WHERE created_at < '2013-04-01T00:00:00Z'
137396
+
137397
+  (0.1ms)  WITH prosperity_metric_count AS (
137398
+ SELECT * FROM users
137399
+ )
137400
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137401
+ WHERE created_at < '2013-06-01T00:00:00Z'
137402
+ 
137403
+  (0.2ms) WITH prosperity_metric_count AS (
137404
+ SELECT * FROM users
137405
+ )
137406
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137407
+ WHERE created_at < '2013-05-01T00:00:00Z'
137408
+
137409
+  (0.2ms)  WITH prosperity_metric_count AS (
137410
+ SELECT * FROM users
137411
+ )
137412
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137413
+ WHERE created_at < '2013-07-01T00:00:00Z'
137414
+ 
137415
+  (0.1ms) WITH prosperity_metric_count AS (
137416
+ SELECT * FROM users
137417
+ )
137418
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137419
+ WHERE created_at < '2013-06-01T00:00:00Z'
137420
+
137421
+  (0.1ms)  WITH prosperity_metric_count AS (
137422
+ SELECT * FROM users
137423
+ )
137424
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137425
+ WHERE created_at < '2013-08-01T00:00:00Z'
137426
+ 
137427
+  (0.1ms) WITH prosperity_metric_count AS (
137428
+ SELECT * FROM users
137429
+ )
137430
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137431
+ WHERE created_at < '2013-07-01T00:00:00Z'
137432
+
137433
+  (0.1ms)  WITH prosperity_metric_count AS (
137434
+ SELECT * FROM users
137435
+ )
137436
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137437
+ WHERE created_at < '2013-09-01T00:00:00Z'
137438
+ 
137439
+  (0.1ms) WITH prosperity_metric_count AS (
137440
+ SELECT * FROM users
137441
+ )
137442
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137443
+ WHERE created_at < '2013-08-01T00:00:00Z'
137444
+
137445
+  (0.1ms)  WITH prosperity_metric_count AS (
137446
+ SELECT * FROM users
137447
+ )
137448
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137449
+ WHERE created_at < '2013-10-01T00:00:00Z'
137450
+ 
137451
+  (0.2ms) WITH prosperity_metric_count AS (
137452
+ SELECT * FROM users
137453
+ )
137454
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137455
+ WHERE created_at < '2013-09-01T00:00:00Z'
137456
+
137457
+  (0.1ms)  WITH prosperity_metric_count AS (
137458
+ SELECT * FROM users
137459
+ )
137460
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137461
+ WHERE created_at < '2013-11-01T00:00:00Z'
137462
+ 
137463
+  (0.1ms) WITH prosperity_metric_count AS (
137464
+ SELECT * FROM users
137465
+ )
137466
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137467
+ WHERE created_at < '2013-10-01T00:00:00Z'
137468
+
137469
+  (0.1ms)  WITH prosperity_metric_count AS (
137470
+ SELECT * FROM users
137471
+ )
137472
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137473
+ WHERE created_at < '2013-12-01T00:00:00Z'
137474
+ 
137475
+  (0.1ms) WITH prosperity_metric_count AS (
137476
+ SELECT * FROM users
137477
+ )
137478
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137479
+ WHERE created_at < '2013-11-01T00:00:00Z'
137480
+
137481
+  (0.2ms)  WITH prosperity_metric_count AS (
137482
+ SELECT * FROM users
137483
+ )
137484
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137485
+ WHERE created_at < '2014-01-01T00:00:00Z'
137486
+ 
137487
+  (0.1ms) WITH prosperity_metric_count AS (
137488
+ SELECT * FROM users
137489
+ )
137490
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137491
+ WHERE created_at < '2013-12-01T00:00:00Z'
137492
+
137493
+  (0.1ms)  WITH prosperity_metric_count AS (
137494
+ SELECT * FROM users
137495
+ )
137496
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137497
+ WHERE created_at < '2014-02-01T00:00:00Z'
137498
+ 
137499
+  (0.2ms) WITH prosperity_metric_count AS (
137500
+ SELECT * FROM users
137501
+ )
137502
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137503
+ WHERE created_at < '2014-01-01T00:00:00Z'
137504
+
137505
+  (0.1ms)  WITH prosperity_metric_count AS (
137506
+ SELECT * FROM users
137507
+ )
137508
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137509
+ WHERE created_at < '2014-03-01T00:00:00Z'
137510
+ 
137511
+  (0.1ms) WITH prosperity_metric_count AS (
137512
+ SELECT * FROM users
137513
+ )
137514
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137515
+ WHERE created_at < '2014-02-01T00:00:00Z'
137516
+
137517
+  (0.2ms)  WITH prosperity_metric_count AS (
137518
+ SELECT * FROM users
137519
+ )
137520
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137521
+ WHERE created_at < '2014-04-01T00:00:00Z'
137522
+ 
137523
+  (0.2ms) WITH prosperity_metric_count AS (
137524
+ SELECT * FROM users
137525
+ )
137526
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137527
+ WHERE created_at < '2014-03-01T00:00:00Z'
137528
+
137529
+  (0.1ms)  WITH prosperity_metric_count AS (
137530
+ SELECT * FROM users
137531
+ )
137532
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137533
+ WHERE created_at < '2014-05-01T00:00:00Z'
137534
+ 
137535
+  (0.2ms) WITH prosperity_metric_count AS (
137536
+ SELECT * FROM users
137537
+ )
137538
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137539
+ WHERE created_at < '2014-04-01T00:00:00Z'
137540
+
137541
+  (0.1ms)  WITH prosperity_metric_count AS (
137542
+ SELECT * FROM users
137543
+ )
137544
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137545
+ WHERE created_at < '2014-06-01T00:00:00Z'
137546
+ 
137547
+  (0.2ms) WITH prosperity_metric_count AS (
137548
+ SELECT * FROM users
137549
+ )
137550
+ SELECT SUM(value) AS RESULT FROM prosperity_metric_count
137551
+ WHERE created_at < '2014-05-01T00:00:00Z'
137552
+
137553
+ SQL (0.3ms) DELETE FROM "users"
137554
+  (0.1ms) BEGIN
137555
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.483445"], ["updated_at", "2014-05-20 18:56:17.484005"]]
137556
+  (0.2ms) COMMIT
137557
+  (0.1ms) BEGIN
137558
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.483517"], ["updated_at", "2014-05-20 18:56:17.485134"]]
137559
+  (0.2ms) COMMIT
137560
+  (0.1ms) BEGIN
137561
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.483557"], ["updated_at", "2014-05-20 18:56:17.486152"]]
137562
+  (0.2ms) COMMIT
137563
+  (0.1ms) BEGIN
137564
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.483595"], ["updated_at", "2014-05-20 18:56:17.487183"]]
137565
+  (0.3ms) COMMIT
137566
+  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
137567
+  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-04-01 00:00:00.000000')
137568
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
137569
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
137570
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
137571
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
137572
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
137573
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
137574
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
137575
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
137576
+  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
137577
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
137578
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
137579
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
137580
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
137581
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
137582
+  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
137583
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
137584
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
137585
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
137586
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
137587
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
137588
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
137589
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
137590
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
137591
+  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
137592
+  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
137593
+  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
137594
+ SQL (0.3ms) DELETE FROM "users"
137595
+  (0.1ms) BEGIN
137596
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.502279"], ["updated_at", "2014-05-20 18:56:17.502855"]]
137597
+  (0.3ms) COMMIT
137598
+  (0.1ms) BEGIN
137599
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-03-20 18:56:17.502388"], ["updated_at", "2014-05-20 18:56:17.504036"]]
137600
+  (0.2ms) COMMIT
137601
+  (0.1ms) BEGIN
137602
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.502432"], ["updated_at", "2014-05-20 18:56:17.505110"]]
137603
+  (0.2ms) COMMIT
137604
+  (0.1ms) BEGIN
137605
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.502470"], ["updated_at", "2014-05-20 18:56:17.506311"]]
137606
+  (0.2ms) COMMIT
137607
+  (0.2ms)  WITH prosperity_metric_count AS (
137608
+ SELECT * FROM users
137609
+ )
137610
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137611
+ WHERE created_at < '2013-05-01T00:00:00Z'
137612
+ 
137613
+  (0.2ms) WITH prosperity_metric_count AS (
137614
+ SELECT * FROM users
137615
+ )
137616
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137617
+ WHERE created_at < '2013-04-01T00:00:00Z'
137618
+
137619
+  (0.2ms)  WITH prosperity_metric_count AS (
137620
+ SELECT * FROM users
137621
+ )
137622
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137623
+ WHERE created_at < '2013-06-01T00:00:00Z'
137624
+ 
137625
+  (0.1ms) WITH prosperity_metric_count AS (
137626
+ SELECT * FROM users
137627
+ )
137628
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137629
+ WHERE created_at < '2013-05-01T00:00:00Z'
137630
+
137631
+  (0.2ms)  WITH prosperity_metric_count AS (
137632
+ SELECT * FROM users
137633
+ )
137634
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137635
+ WHERE created_at < '2013-07-01T00:00:00Z'
137636
+ 
137637
+  (0.1ms) WITH prosperity_metric_count AS (
137638
+ SELECT * FROM users
137639
+ )
137640
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137641
+ WHERE created_at < '2013-06-01T00:00:00Z'
137642
+
137643
+  (0.1ms)  WITH prosperity_metric_count AS (
137644
+ SELECT * FROM users
137645
+ )
137646
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137647
+ WHERE created_at < '2013-08-01T00:00:00Z'
137648
+ 
137649
+  (0.1ms) WITH prosperity_metric_count AS (
137650
+ SELECT * FROM users
137651
+ )
137652
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137653
+ WHERE created_at < '2013-07-01T00:00:00Z'
137654
+
137655
+  (0.1ms)  WITH prosperity_metric_count AS (
137656
+ SELECT * FROM users
137657
+ )
137658
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137659
+ WHERE created_at < '2013-09-01T00:00:00Z'
137660
+ 
137661
+  (0.1ms) WITH prosperity_metric_count AS (
137662
+ SELECT * FROM users
137663
+ )
137664
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137665
+ WHERE created_at < '2013-08-01T00:00:00Z'
137666
+
137667
+  (0.1ms)  WITH prosperity_metric_count AS (
137668
+ SELECT * FROM users
137669
+ )
137670
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137671
+ WHERE created_at < '2013-10-01T00:00:00Z'
137672
+ 
137673
+  (0.2ms) WITH prosperity_metric_count AS (
137674
+ SELECT * FROM users
137675
+ )
137676
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137677
+ WHERE created_at < '2013-09-01T00:00:00Z'
137678
+
137679
+  (0.1ms)  WITH prosperity_metric_count AS (
137680
+ SELECT * FROM users
137681
+ )
137682
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137683
+ WHERE created_at < '2013-11-01T00:00:00Z'
137684
+ 
137685
+  (0.1ms) WITH prosperity_metric_count AS (
137686
+ SELECT * FROM users
137687
+ )
137688
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137689
+ WHERE created_at < '2013-10-01T00:00:00Z'
137690
+
137691
+  (0.1ms)  WITH prosperity_metric_count AS (
137692
+ SELECT * FROM users
137693
+ )
137694
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137695
+ WHERE created_at < '2013-12-01T00:00:00Z'
137696
+ 
137697
+  (0.2ms) WITH prosperity_metric_count AS (
137698
+ SELECT * FROM users
137699
+ )
137700
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137701
+ WHERE created_at < '2013-11-01T00:00:00Z'
137702
+
137703
+  (0.2ms)  WITH prosperity_metric_count AS (
137704
+ SELECT * FROM users
137705
+ )
137706
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137707
+ WHERE created_at < '2014-01-01T00:00:00Z'
137708
+ 
137709
+  (0.2ms) WITH prosperity_metric_count AS (
137710
+ SELECT * FROM users
137711
+ )
137712
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137713
+ WHERE created_at < '2013-12-01T00:00:00Z'
137714
+
137715
+  (0.2ms)  WITH prosperity_metric_count AS (
137716
+ SELECT * FROM users
137717
+ )
137718
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137719
+ WHERE created_at < '2014-02-01T00:00:00Z'
137720
+ 
137721
+  (0.2ms) WITH prosperity_metric_count AS (
137722
+ SELECT * FROM users
137723
+ )
137724
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137725
+ WHERE created_at < '2014-01-01T00:00:00Z'
137726
+
137727
+  (0.1ms)  WITH prosperity_metric_count AS (
137728
+ SELECT * FROM users
137729
+ )
137730
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137731
+ WHERE created_at < '2014-03-01T00:00:00Z'
137732
+ 
137733
+  (0.1ms) WITH prosperity_metric_count AS (
137734
+ SELECT * FROM users
137735
+ )
137736
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137737
+ WHERE created_at < '2014-02-01T00:00:00Z'
137738
+
137739
+  (0.2ms)  WITH prosperity_metric_count AS (
137740
+ SELECT * FROM users
137741
+ )
137742
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137743
+ WHERE created_at < '2014-04-01T00:00:00Z'
137744
+ 
137745
+  (0.1ms) WITH prosperity_metric_count AS (
137746
+ SELECT * FROM users
137747
+ )
137748
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137749
+ WHERE created_at < '2014-03-01T00:00:00Z'
137750
+
137751
+  (0.1ms)  WITH prosperity_metric_count AS (
137752
+ SELECT * FROM users
137753
+ )
137754
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137755
+ WHERE created_at < '2014-05-01T00:00:00Z'
137756
+ 
137757
+  (0.2ms) WITH prosperity_metric_count AS (
137758
+ SELECT * FROM users
137759
+ )
137760
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137761
+ WHERE created_at < '2014-04-01T00:00:00Z'
137762
+
137763
+  (0.2ms)  WITH prosperity_metric_count AS (
137764
+ SELECT * FROM users
137765
+ )
137766
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137767
+ WHERE created_at < '2014-06-01T00:00:00Z'
137768
+ 
137769
+  (0.2ms) WITH prosperity_metric_count AS (
137770
+ SELECT * FROM users
137771
+ )
137772
+ SELECT MAX(value) AS RESULT FROM prosperity_metric_count
137773
+ WHERE created_at < '2014-05-01T00:00:00Z'
137774
+
137775
+ SQL (0.4ms) DELETE FROM "users"
137776
+  (0.1ms) BEGIN
137777
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.549552"], ["updated_at", "2014-05-20 18:56:17.550142"]]
137778
+  (0.2ms) COMMIT
137779
+  (0.1ms) BEGIN
137780
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.549654"], ["updated_at", "2014-05-20 18:56:17.551409"]]
137781
+  (0.3ms) COMMIT
137782
+  (0.1ms) BEGIN
137783
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.549699"], ["updated_at", "2014-05-20 18:56:17.552485"]]
137784
+  (0.3ms) COMMIT
137785
+  (0.1ms) BEGIN
137786
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.553281"], ["updated_at", "2014-05-20 18:56:17.553598"]]
137787
+  (0.2ms) COMMIT
137788
+  (0.3ms) WITH prosperity_metric_count AS (
137789
+ SELECT * FROM users
137790
+ )
137791
+ SELECT to_char(created_at, 'YYYY-WW') AS bucket, COUNT(1) AS result
137792
+ FROM prosperity_metric_count
137793
+ WHERE (created_at BETWEEN '2014-05-05T00:00:00Z' AND '2014-05-25T23:59:59Z')
137794
+ GROUP BY bucket
137795
+
137796
+ SQL (0.3ms) DELETE FROM "users"
137797
+  (0.1ms) BEGIN
137798
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.556374"], ["updated_at", "2014-05-20 18:56:17.556815"]]
137799
+  (0.3ms) COMMIT
137800
+  (0.1ms) BEGIN
137801
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.556442"], ["updated_at", "2014-05-20 18:56:17.557997"]]
137802
+  (0.2ms) COMMIT
137803
+  (0.1ms) BEGIN
137804
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.556482"], ["updated_at", "2014-05-20 18:56:17.559061"]]
137805
+  (0.2ms) COMMIT
137806
+  (0.1ms) BEGIN
137807
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.559796"], ["updated_at", "2014-05-20 18:56:17.560081"]]
137808
+  (0.3ms) COMMIT
137809
+  (0.2ms) WITH prosperity_metric_count AS (
137810
+ SELECT * FROM users
137811
+ )
137812
+ SELECT to_char(created_at, 'YYYY-WW') AS bucket, COUNT(1) AS result
137813
+ FROM prosperity_metric_count
137814
+ WHERE (created_at BETWEEN '2014-05-05T00:00:00Z' AND '2014-05-25T23:59:59Z')
137815
+ GROUP BY bucket
137816
+
137817
+ SQL (0.3ms) DELETE FROM "users"
137818
+  (0.1ms) BEGIN
137819
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.563083"], ["updated_at", "2014-05-20 18:56:17.563629"]]
137820
+  (0.2ms) COMMIT
137821
+  (0.1ms) BEGIN
137822
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.563160"], ["updated_at", "2014-05-20 18:56:17.564755"]]
137823
+  (0.2ms) COMMIT
137824
+  (0.1ms) BEGIN
137825
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.563201"], ["updated_at", "2014-05-20 18:56:17.565902"]]
137826
+  (0.2ms) COMMIT
137827
+  (0.1ms) BEGIN
137828
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.566759"], ["updated_at", "2014-05-20 18:56:17.567088"]]
137829
+  (0.2ms) COMMIT
137830
+  (0.3ms) WITH prosperity_metric_count AS (
137831
+ SELECT * FROM users
137832
+ )
137833
+ SELECT to_char(created_at, 'YYYY-WW') AS bucket, COUNT(1) AS result
137834
+ FROM prosperity_metric_count
137835
+ WHERE (created_at BETWEEN '2013-05-20T00:00:00Z' AND '2014-05-25T23:59:59Z')
137836
+ GROUP BY bucket
137837
+
137838
+ SQL (0.4ms) DELETE FROM "users"
137839
+  (0.1ms) BEGIN
137840
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.573470"], ["updated_at", "2014-05-20 18:56:17.573949"]]
137841
+  (0.3ms) COMMIT
137842
+  (0.1ms) BEGIN
137843
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.573537"], ["updated_at", "2014-05-20 18:56:17.575224"]]
137844
+  (0.2ms) COMMIT
137845
+  (0.1ms) BEGIN
137846
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.573577"], ["updated_at", "2014-05-20 18:56:17.576351"]]
137847
+  (0.3ms) COMMIT
137848
+  (0.1ms) BEGIN
137849
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.577150"], ["updated_at", "2014-05-20 18:56:17.577492"]]
137850
+  (0.2ms) COMMIT
137851
+  (0.3ms) WITH prosperity_metric_count AS (
137852
+ SELECT * FROM users
137853
+ )
137854
+ SELECT to_char(created_at, 'YYYY-WW') AS bucket, COUNT(1) AS result
137855
+ FROM prosperity_metric_count
137856
+ WHERE (created_at BETWEEN '2013-05-20T00:00:00Z' AND '2014-05-25T23:59:59Z')
137857
+ GROUP BY bucket
137858
+
137859
+ SQL (0.3ms) DELETE FROM "users"
137860
+  (0.1ms) BEGIN
137861
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.584087"], ["updated_at", "2014-05-20 18:56:17.584607"]]
137862
+  (0.4ms) COMMIT
137863
+  (0.1ms) BEGIN
137864
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.584190"], ["updated_at", "2014-05-20 18:56:17.585859"]]
137865
+  (0.3ms) COMMIT
137866
+  (0.1ms) BEGIN
137867
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.584233"], ["updated_at", "2014-05-20 18:56:17.586965"]]
137868
+  (0.2ms) COMMIT
137869
+  (0.1ms) BEGIN
137870
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.587758"], ["updated_at", "2014-05-20 18:56:17.588060"]]
137871
+  (0.2ms) COMMIT
137872
+  (0.3ms) WITH prosperity_metric_count AS (
137873
+ SELECT * FROM users
137874
+ )
137875
+ SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result
137876
+ FROM prosperity_metric_count
137877
+ WHERE (created_at BETWEEN '2013-05-01T00:00:00Z' AND '2014-05-31T23:59:59Z')
137878
+ GROUP BY bucket
137879
+
137880
+ SQL (0.4ms) DELETE FROM "users"
137881
+  (0.1ms) BEGIN
137882
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.592712"], ["updated_at", "2014-05-20 18:56:17.593441"]]
137883
+  (0.2ms) COMMIT
137884
+  (0.1ms) BEGIN
137885
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.592819"], ["updated_at", "2014-05-20 18:56:17.594955"]]
137886
+  (0.2ms) COMMIT
137887
+  (0.1ms) BEGIN
137888
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.592890"], ["updated_at", "2014-05-20 18:56:17.596242"]]
137889
+  (0.2ms) COMMIT
137890
+  (0.1ms) BEGIN
137891
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.597077"], ["updated_at", "2014-05-20 18:56:17.597438"]]
137892
+  (0.2ms) COMMIT
137893
+  (0.3ms) WITH prosperity_metric_count AS (
137894
+ SELECT * FROM users
137895
+ )
137896
+ SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result
137897
+ FROM prosperity_metric_count
137898
+ WHERE (created_at BETWEEN '2013-05-01T00:00:00Z' AND '2014-05-31T23:59:59Z')
137899
+ GROUP BY bucket
137900
+
137901
+ SQL (0.4ms) DELETE FROM "users"
137902
+  (0.1ms) BEGIN
137903
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.601432"], ["updated_at", "2014-05-20 18:56:17.601940"]]
137904
+  (0.3ms) COMMIT
137905
+  (0.1ms) BEGIN
137906
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.601495"], ["updated_at", "2014-05-20 18:56:17.603046"]]
137907
+  (0.2ms) COMMIT
137908
+  (0.1ms) BEGIN
137909
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.601533"], ["updated_at", "2014-05-20 18:56:17.604038"]]
137910
+  (0.2ms) COMMIT
137911
+  (0.1ms) BEGIN
137912
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.604771"], ["updated_at", "2014-05-20 18:56:17.605049"]]
137913
+  (0.2ms) COMMIT
137914
+  (0.4ms) SELECT COUNT(*) AS count_all, to_char(created_at, 'YYYY-MM') AS to_char_created_at_yyyy_mm FROM "users" WHERE (created_at BETWEEN '2013-05-01 00:00:00.000000' AND '2014-05-31 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM')
137915
+ SQL (0.3ms) DELETE FROM "users"
137916
+  (0.1ms) BEGIN
137917
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.609411"], ["updated_at", "2014-05-20 18:56:17.610080"]]
137918
+  (0.2ms) COMMIT
137919
+  (0.1ms) BEGIN
137920
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.609532"], ["updated_at", "2014-05-20 18:56:17.611351"]]
137921
+  (0.2ms) COMMIT
137922
+  (0.1ms) BEGIN
137923
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.609619"], ["updated_at", "2014-05-20 18:56:17.612582"]]
137924
+  (0.2ms) COMMIT
137925
+  (0.1ms) BEGIN
137926
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.613275"], ["updated_at", "2014-05-20 18:56:17.613584"]]
137927
+  (0.2ms) COMMIT
137928
+  (0.3ms) SELECT COUNT(*) AS count_all, to_char(created_at, 'YYYY-MM') AS to_char_created_at_yyyy_mm FROM "users" WHERE (created_at BETWEEN '2013-05-01 00:00:00.000000' AND '2014-05-31 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM')
137929
+ SQL (0.3ms) DELETE FROM "users"
137930
+  (0.1ms) BEGIN
137931
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.617781"], ["updated_at", "2014-05-20 18:56:17.618296"]]
137932
+  (0.3ms) COMMIT
137933
+  (0.1ms) BEGIN
137934
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.617876"], ["updated_at", "2014-05-20 18:56:17.619537"]]
137935
+  (0.2ms) COMMIT
137936
+  (0.1ms) BEGIN
137937
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.617918"], ["updated_at", "2014-05-20 18:56:17.620537"]]
137938
+  (0.2ms) COMMIT
137939
+  (0.1ms) BEGIN
137940
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.621283"], ["updated_at", "2014-05-20 18:56:17.621569"]]
137941
+  (0.2ms) COMMIT
137942
+  (0.3ms) WITH prosperity_metric_count AS (
137943
+ WITH all_columns AS (SELECT * FROM users) SELECT name, created_at FROM users
137944
+ )
137945
+ SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result
137946
+ FROM prosperity_metric_count
137947
+ WHERE (created_at BETWEEN '2013-05-01T00:00:00Z' AND '2014-05-31T23:59:59Z')
137948
+ GROUP BY bucket
137949
+
137950
+ SQL (0.3ms) DELETE FROM "users"
137951
+  (0.1ms) BEGIN
137952
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.624964"], ["updated_at", "2014-05-20 18:56:17.625468"]]
137953
+  (0.4ms) COMMIT
137954
+  (0.1ms) BEGIN
137955
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.625052"], ["updated_at", "2014-05-20 18:56:17.626798"]]
137956
+  (0.3ms) COMMIT
137957
+  (0.1ms) BEGIN
137958
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.625101"], ["updated_at", "2014-05-20 18:56:17.627870"]]
137959
+  (0.2ms) COMMIT
137960
+  (0.1ms) BEGIN
137961
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.628627"], ["updated_at", "2014-05-20 18:56:17.628980"]]
137962
+  (0.2ms) COMMIT
137963
+  (0.3ms) WITH prosperity_metric_count AS (
137964
+ WITH all_columns AS (SELECT * FROM users) SELECT name, created_at FROM users
137965
+ )
137966
+ SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result
137967
+ FROM prosperity_metric_count
137968
+ WHERE (created_at BETWEEN '2013-05-01T00:00:00Z' AND '2014-05-31T23:59:59Z')
137969
+ GROUP BY bucket
137970
+
137971
+ SQL (0.3ms) DELETE FROM "users"
137972
+  (0.1ms) BEGIN
137973
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.632943"], ["updated_at", "2014-05-20 18:56:17.633499"]]
137974
+  (0.2ms) COMMIT
137975
+  (0.1ms) BEGIN
137976
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.633006"], ["updated_at", "2014-05-20 18:56:17.634629"]]
137977
+  (0.2ms) COMMIT
137978
+  (0.1ms) BEGIN
137979
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.633057"], ["updated_at", "2014-05-20 18:56:17.635651"]]
137980
+  (0.2ms) COMMIT
137981
+  (0.1ms) BEGIN
137982
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.636483"], ["updated_at", "2014-05-20 18:56:17.636792"]]
137983
+  (0.2ms) COMMIT
137984
+  (0.3ms) SELECT SUM("users"."value") AS sum_value, to_char(created_at, 'YYYY-MM') AS to_char_created_at_yyyy_mm FROM "users" WHERE (created_at BETWEEN '2013-05-01 00:00:00.000000' AND '2014-05-31 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM')
137985
+ SQL (0.3ms) DELETE FROM "users"
137986
+  (0.1ms) BEGIN
137987
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.640950"], ["updated_at", "2014-05-20 18:56:17.641413"]]
137988
+  (0.3ms) COMMIT
137989
+  (0.1ms) BEGIN
137990
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.641016"], ["updated_at", "2014-05-20 18:56:17.642572"]]
137991
+  (0.3ms) COMMIT
137992
+  (0.1ms) BEGIN
137993
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.641056"], ["updated_at", "2014-05-20 18:56:17.643562"]]
137994
+  (0.2ms) COMMIT
137995
+  (0.1ms) BEGIN
137996
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.644343"], ["updated_at", "2014-05-20 18:56:17.644663"]]
137997
+  (0.2ms) COMMIT
137998
+  (0.2ms) WITH prosperity_metric_count AS (
137999
+ SELECT * FROM users
138000
+ )
138001
+ SELECT to_char(created_at, 'YYYY-MM') AS bucket, SUM(value) AS result
138002
+ FROM prosperity_metric_count
138003
+ WHERE (created_at BETWEEN '2013-05-01T00:00:00Z' AND '2014-05-31T23:59:59Z')
138004
+ GROUP BY bucket
138005
+
138006
+ SQL (0.3ms) DELETE FROM "users"
138007
+  (0.1ms) BEGIN
138008
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.648409"], ["updated_at", "2014-05-20 18:56:17.648866"]]
138009
+  (0.2ms) COMMIT
138010
+  (0.1ms) BEGIN
138011
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.648491"], ["updated_at", "2014-05-20 18:56:17.649993"]]
138012
+  (0.3ms) COMMIT
138013
+  (0.1ms) BEGIN
138014
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.648532"], ["updated_at", "2014-05-20 18:56:17.651176"]]
138015
+  (0.2ms) COMMIT
138016
+  (0.1ms) BEGIN
138017
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.651946"], ["updated_at", "2014-05-20 18:56:17.652268"]]
138018
+  (0.2ms) COMMIT
138019
+  (0.3ms) WITH prosperity_metric_count AS (
138020
+ SELECT * FROM users
138021
+ )
138022
+ SELECT to_char(created_at, 'YYYY-MM') AS bucket, MIN(value) AS result
138023
+ FROM prosperity_metric_count
138024
+ WHERE (created_at BETWEEN '2013-05-01T00:00:00Z' AND '2014-05-31T23:59:59Z')
138025
+ GROUP BY bucket
138026
+
138027
+ SQL (0.3ms) DELETE FROM "users"
138028
+  (0.1ms) BEGIN
138029
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.655948"], ["updated_at", "2014-05-20 18:56:17.656471"]]
138030
+  (0.3ms) COMMIT
138031
+  (0.1ms) BEGIN
138032
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.656019"], ["updated_at", "2014-05-20 18:56:17.657619"]]
138033
+  (0.2ms) COMMIT
138034
+  (0.1ms) BEGIN
138035
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.656059"], ["updated_at", "2014-05-20 18:56:17.658615"]]
138036
+  (0.3ms) COMMIT
138037
+  (0.1ms) BEGIN
138038
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.659440"], ["updated_at", "2014-05-20 18:56:17.659707"]]
138039
+  (0.2ms) COMMIT
138040
+  (0.2ms) SELECT MIN("users"."value") AS minimum_value, to_char(created_at, 'YYYY-MM') AS to_char_created_at_yyyy_mm FROM "users" WHERE (created_at BETWEEN '2013-05-01 00:00:00.000000' AND '2014-05-31 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM')
138041
+ SQL (0.3ms) DELETE FROM "users"
138042
+  (0.1ms) BEGIN
138043
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.664052"], ["updated_at", "2014-05-20 18:56:17.664560"]]
138044
+  (0.2ms) COMMIT
138045
+  (0.1ms) BEGIN
138046
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.664123"], ["updated_at", "2014-05-20 18:56:17.665641"]]
138047
+  (0.3ms) COMMIT
138048
+  (0.1ms) BEGIN
138049
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.664163"], ["updated_at", "2014-05-20 18:56:17.666771"]]
138050
+  (0.2ms) COMMIT
138051
+  (0.1ms) BEGIN
138052
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.667533"], ["updated_at", "2014-05-20 18:56:17.667816"]]
138053
+  (0.3ms) COMMIT
138054
+  (0.3ms) WITH prosperity_metric_count AS (
138055
+ SELECT * FROM users
138056
+ )
138057
+ SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result
138058
+ FROM prosperity_metric_count
138059
+ WHERE (created_at BETWEEN '2013-05-01T00:00:00Z' AND '2014-05-31T23:59:59Z')
138060
+ GROUP BY bucket
138061
+
138062
+ SQL (0.3ms) DELETE FROM "users"
138063
+  (0.1ms) BEGIN
138064
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.671737"], ["updated_at", "2014-05-20 18:56:17.672236"]]
138065
+  (0.2ms) COMMIT
138066
+  (0.1ms) BEGIN
138067
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.671823"], ["updated_at", "2014-05-20 18:56:17.673348"]]
138068
+  (0.3ms) COMMIT
138069
+  (0.1ms) BEGIN
138070
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.671864"], ["updated_at", "2014-05-20 18:56:17.674428"]]
138071
+  (0.3ms) COMMIT
138072
+  (0.1ms) BEGIN
138073
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.675217"], ["updated_at", "2014-05-20 18:56:17.675497"]]
138074
+  (0.2ms) COMMIT
138075
+  (0.3ms) SELECT MAX("users"."value") AS maximum_value, to_char(created_at, 'YYYY-MM') AS to_char_created_at_yyyy_mm FROM "users" WHERE (created_at BETWEEN '2013-05-01 00:00:00.000000' AND '2014-05-31 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM')
138076
+ SQL (0.3ms) DELETE FROM "users"
138077
+  (0.1ms) BEGIN
138078
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.679838"], ["updated_at", "2014-05-20 18:56:17.680349"]]
138079
+  (0.2ms) COMMIT
138080
+  (0.1ms) BEGIN
138081
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.679906"], ["updated_at", "2014-05-20 18:56:17.681499"]]
138082
+  (0.2ms) COMMIT
138083
+  (0.1ms) BEGIN
138084
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.679946"], ["updated_at", "2014-05-20 18:56:17.682522"]]
138085
+  (0.3ms) COMMIT
138086
+  (0.1ms) BEGIN
138087
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.683530"], ["updated_at", "2014-05-20 18:56:17.683856"]]
138088
+  (0.3ms) COMMIT
138089
+  (0.2ms) SELECT COUNT(*) AS count_all, to_char(created_at, 'YYYY-MM') AS to_char_created_at_yyyy_mm FROM "users" WHERE (created_at BETWEEN '2013-05-01 00:00:00.000000' AND '2014-05-31 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM')
138090
+ SQL (0.4ms) DELETE FROM "users"
138091
+  (0.1ms) BEGIN
138092
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.688487"], ["updated_at", "2014-05-20 18:56:17.689000"]]
138093
+  (0.3ms) COMMIT
138094
+  (0.1ms) BEGIN
138095
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.688585"], ["updated_at", "2014-05-20 18:56:17.690164"]]
138096
+  (0.2ms) COMMIT
138097
+  (0.1ms) BEGIN
138098
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.688627"], ["updated_at", "2014-05-20 18:56:17.691233"]]
138099
+  (0.3ms) COMMIT
138100
+  (0.1ms) BEGIN
138101
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.692028"], ["updated_at", "2014-05-20 18:56:17.692340"]]
138102
+  (0.2ms) COMMIT
138103
+  (0.2ms) WITH prosperity_metric_count AS (
138104
+ SELECT * FROM users
138105
+ )
138106
+ SELECT to_char(created_at, 'YYYY-MM') AS bucket, AVG(value) AS result
138107
+ FROM prosperity_metric_count
138108
+ WHERE (created_at BETWEEN '2013-05-01T00:00:00Z' AND '2014-05-31T23:59:59Z')
138109
+ GROUP BY bucket
138110
+
138111
+ SQL (0.3ms) DELETE FROM "users"
138112
+  (0.1ms) BEGIN
138113
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.695996"], ["updated_at", "2014-05-20 18:56:17.696477"]]
138114
+  (0.4ms) COMMIT
138115
+  (0.1ms) BEGIN
138116
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.696066"], ["updated_at", "2014-05-20 18:56:17.697715"]]
138117
+  (0.3ms) COMMIT
138118
+  (0.1ms) BEGIN
138119
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.696106"], ["updated_at", "2014-05-20 18:56:17.698812"]]
138120
+  (0.2ms) COMMIT
138121
+  (0.1ms) BEGIN
138122
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.699526"], ["updated_at", "2014-05-20 18:56:17.699793"]]
138123
+  (0.3ms) COMMIT
138124
+  (0.2ms) WITH prosperity_metric_count AS (
138125
+ SELECT * FROM users
138126
+ )
138127
+ SELECT to_char(created_at, 'YYYY-MM') AS bucket, SUM(value) AS result
138128
+ FROM prosperity_metric_count
138129
+ WHERE (created_at BETWEEN '2013-05-01T00:00:00Z' AND '2014-05-31T23:59:59Z')
138130
+ GROUP BY bucket
138131
+
138132
+ SQL (0.3ms) DELETE FROM "users"
138133
+  (0.1ms) BEGIN
138134
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.703622"], ["updated_at", "2014-05-20 18:56:17.704089"]]
138135
+  (0.3ms) COMMIT
138136
+  (0.1ms) BEGIN
138137
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.703692"], ["updated_at", "2014-05-20 18:56:17.705474"]]
138138
+  (0.2ms) COMMIT
138139
+  (0.1ms) BEGIN
138140
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.703733"], ["updated_at", "2014-05-20 18:56:17.706471"]]
138141
+  (0.3ms) COMMIT
138142
+  (0.1ms) BEGIN
138143
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.707345"], ["updated_at", "2014-05-20 18:56:17.707675"]]
138144
+  (0.2ms) COMMIT
138145
+  (0.3ms) SELECT AVG("users"."value") AS average_value, to_char(created_at, 'YYYY-MM') AS to_char_created_at_yyyy_mm FROM "users" WHERE (created_at BETWEEN '2013-05-01 00:00:00.000000' AND '2014-05-31 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM')
138146
+ SQL (0.3ms) DELETE FROM "users"
138147
+  (0.1ms) BEGIN
138148
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.712052"], ["updated_at", "2014-05-20 18:56:17.712592"]]
138149
+  (0.3ms) COMMIT
138150
+  (0.1ms) BEGIN
138151
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.712161"], ["updated_at", "2014-05-20 18:56:17.713910"]]
138152
+  (0.2ms) COMMIT
138153
+  (0.1ms) BEGIN
138154
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.712205"], ["updated_at", "2014-05-20 18:56:17.714930"]]
138155
+  (0.2ms) COMMIT
138156
+  (0.1ms) BEGIN
138157
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.715705"], ["updated_at", "2014-05-20 18:56:17.716042"]]
138158
+  (0.2ms) COMMIT
138159
+  (0.3ms) WITH prosperity_metric_count AS (
138160
+ SELECT * FROM users
138161
+ )
138162
+ SELECT to_char(created_at, 'YYYY-MM') AS bucket, MAX(value) AS result
138163
+ FROM prosperity_metric_count
138164
+ WHERE (created_at BETWEEN '2013-05-01T00:00:00Z' AND '2014-05-31T23:59:59Z')
138165
+ GROUP BY bucket
138166
+
138167
+ SQL (0.4ms) DELETE FROM "users"
138168
+  (0.1ms) BEGIN
138169
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.720062"], ["updated_at", "2014-05-20 18:56:17.720640"]]
138170
+  (0.2ms) COMMIT
138171
+  (0.1ms) BEGIN
138172
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.720140"], ["updated_at", "2014-05-20 18:56:17.721895"]]
138173
+  (0.3ms) COMMIT
138174
+  (0.1ms) BEGIN
138175
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.720223"], ["updated_at", "2014-05-20 18:56:17.723127"]]
138176
+  (0.3ms) COMMIT
138177
+  (0.1ms) BEGIN
138178
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.724000"], ["updated_at", "2014-05-20 18:56:17.724364"]]
138179
+  (0.2ms) COMMIT
138180
+  (0.1ms) BEGIN
138181
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-05-20 18:56:17.725412"], ["updated_at", "2014-05-20 18:56:17.725412"], ["value", 1]]
138182
+  (0.3ms) COMMIT
138183
+  (0.1ms) BEGIN
138184
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-05-20 18:56:17.726628"], ["updated_at", "2014-05-20 18:56:17.726628"], ["value", 3]]
138185
+  (0.2ms) COMMIT
138186
+  (0.3ms) WITH prosperity_metric_count AS (
138187
+ SELECT * FROM users
138188
+ )
138189
+ SELECT to_char(created_at, 'YYYY-MM') AS bucket, SUM(value) AS result
138190
+ FROM prosperity_metric_count
138191
+ WHERE (created_at BETWEEN '2013-05-01T00:00:00Z' AND '2014-05-31T23:59:59Z')
138192
+ GROUP BY bucket
138193
+
138194
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users"
138195
+ SQL (0.3ms) DELETE FROM "users"
138196
+  (0.1ms) BEGIN
138197
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.731279"], ["updated_at", "2014-05-20 18:56:17.731718"]]
138198
+  (0.2ms) COMMIT
138199
+  (0.1ms) BEGIN
138200
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.731344"], ["updated_at", "2014-05-20 18:56:17.732783"]]
138201
+  (0.2ms) COMMIT
138202
+  (0.1ms) BEGIN
138203
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.731383"], ["updated_at", "2014-05-20 18:56:17.733802"]]
138204
+  (0.2ms) COMMIT
138205
+  (0.1ms) BEGIN
138206
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.734575"], ["updated_at", "2014-05-20 18:56:17.734877"]]
138207
+  (0.2ms) COMMIT
138208
+  (0.1ms) BEGIN
138209
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-05-20 18:56:17.735856"], ["updated_at", "2014-05-20 18:56:17.735856"], ["value", 1]]
138210
+  (0.2ms) COMMIT
138211
+  (0.1ms) BEGIN
138212
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-05-20 18:56:17.736840"], ["updated_at", "2014-05-20 18:56:17.736840"], ["value", 3]]
138213
+  (0.2ms) COMMIT
138214
+  (0.2ms) SELECT SUM("users"."value") AS sum_value, to_char(created_at, 'YYYY-MM') AS to_char_created_at_yyyy_mm FROM "users" WHERE (created_at BETWEEN '2013-05-01 00:00:00.000000' AND '2014-05-31 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM')
138215
+  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users"
138216
+ SQL (0.4ms) DELETE FROM "users"
138217
+  (0.1ms) BEGIN
138218
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-05-20 18:56:17.741570"], ["updated_at", "2014-05-20 18:56:17.742058"]]
138219
+  (0.2ms) COMMIT
138220
+  (0.1ms) BEGIN
138221
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-20 18:56:17.741660"], ["updated_at", "2014-05-20 18:56:17.743195"]]
138222
+  (0.4ms) COMMIT
138223
+  (0.1ms) BEGIN
138224
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-06-20 18:56:17.741701"], ["updated_at", "2014-05-20 18:56:17.744448"]]
138225
+  (0.2ms) COMMIT
138226
+  (0.1ms) BEGIN
138227
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-13 18:56:17.745304"], ["updated_at", "2014-05-20 18:56:17.745612"]]
138228
+  (0.2ms) COMMIT
138229
+  (0.1ms) BEGIN
138230
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-05-20 18:56:17.746637"], ["updated_at", "2014-05-20 18:56:17.746637"], ["value", 1]]
138231
+  (0.2ms) COMMIT
138232
+  (0.1ms) BEGIN
138233
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-05-20 18:56:17.747691"], ["updated_at", "2014-05-20 18:56:17.747691"], ["value", 3]]
138234
+  (0.3ms) COMMIT
138235
+  (0.1ms) BEGIN
138236
+ SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:17.751613"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-20 18:56:17.751613"]]
138237
+  (0.3ms) COMMIT
138238
+ Processing by Prosperity::DashboardsController#new as HTML
138239
+ Completed 200 OK in 5ms (Views: 5.3ms | ActiveRecord: 0.0ms)
138240
+  (0.1ms) BEGIN
138241
+ SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:17.761888"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-20 18:56:17.761888"]]
138242
+  (0.2ms) COMMIT
138243
+ Processing by Prosperity::DashboardsController#show as HTML
138244
+ Parameters: {"id"=>"49"}
138245
+ Prosperity::Dashboard Load (0.1ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 49]]
138246
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/shared/_date_range.html.erb (0.4ms)
138247
+ Prosperity::Graph Exists (0.4ms) SELECT 1 AS one FROM "prosperity_graphs" INNER JOIN "prosperity_dashboard_graphs" ON "prosperity_graphs"."id" = "prosperity_dashboard_graphs"."graph_id" WHERE "prosperity_dashboard_graphs"."dashboard_id" = $1 LIMIT 1 [["dashboard_id", 49]]
138248
+ Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" INNER JOIN "prosperity_dashboard_graphs" ON "prosperity_graphs"."id" = "prosperity_dashboard_graphs"."graph_id" WHERE "prosperity_dashboard_graphs"."dashboard_id" = $1 [["dashboard_id", 49]]
138249
+ Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.7ms)
138250
+  (0.1ms) BEGIN
138251
+ SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:17.779762"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-20 18:56:17.779762"]]
138252
+  (5.8ms) COMMIT
138253
+ Processing by Prosperity::DashboardsController#create as HTML
138254
+ Parameters: {"dashboard"=>{"title"=>""}}
138255
+  (0.1ms) BEGIN
138256
+  (0.1ms) ROLLBACK
138257
+ Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.2ms)
138258
+  (0.1ms) BEGIN
138259
+ SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:17.793879"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-20 18:56:17.793879"]]
138260
+  (0.3ms) COMMIT
138261
+  (0.2ms) SELECT COUNT(*) FROM "prosperity_dashboards"
138262
+ Processing by Prosperity::DashboardsController#create as HTML
138263
+ Parameters: {"dashboard"=>{"title"=>"test"}}
138264
+  (0.1ms) BEGIN
138265
+ SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:17.797312"], ["default", "f"], ["title", "test"], ["updated_at", "2014-05-20 18:56:17.797312"]]
138266
+  (0.3ms) COMMIT
138267
+ Redirected to http://test.host/prosperity/dashboards/52/edit
138268
+ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
138269
+  (0.2ms) SELECT COUNT(*) FROM "prosperity_dashboards"
138270
+  (0.1ms) BEGIN
138271
+ SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:17.800882"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-20 18:56:17.800882"]]
138272
+  (0.2ms) COMMIT
138273
+ Processing by Prosperity::DashboardsController#index as HTML
138274
+ Prosperity::Dashboard Load (0.3ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards"
138275
+ Completed 200 OK in 28ms (Views: 27.8ms | ActiveRecord: 0.3ms)
138276
+  (0.1ms) BEGIN
138277
+ SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:17.832912"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-20 18:56:17.832912"]]
138278
+  (0.3ms) COMMIT
138279
+ Processing by Prosperity::DashboardsController#destroy as HTML
138280
+ Parameters: {"id"=>"54"}
138281
+ Prosperity::Dashboard Load (0.1ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 54]]
138282
+  (0.1ms) BEGIN
138283
+ SQL (0.1ms) DELETE FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 [["id", 54]]
138284
+  (0.2ms) COMMIT
138285
+ Redirected to http://test.host/prosperity/dashboards
138286
+ Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
138287
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = 54 LIMIT 1
138288
+  (0.1ms) BEGIN
138289
+ SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-05-20 18:56:17.839850"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-05-20 18:56:17.839850"]]
138290
+  (0.3ms) COMMIT
138291
+ Processing by Prosperity::DashboardsController#edit as HTML
138292
+ Parameters: {"id"=>"55"}
138293
+ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 55]]
138294
+ Prosperity::Graph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_graphs" LIMIT 1
138295
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" INNER JOIN "prosperity_dashboard_graphs" ON "prosperity_graphs"."id" = "prosperity_dashboard_graphs"."graph_id" WHERE "prosperity_dashboard_graphs"."dashboard_id" = $1 [["dashboard_id", 55]]
138296
+ Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs"
138297
+ Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 1.0ms)