spec/dummy/log/test.log in prosperity-0.0.8 vs spec/dummy/log/test.log in prosperity-0.0.9

- old
+ new

@@ -138293,5 +138293,7934 @@ Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 55]] Prosperity::Graph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_graphs" LIMIT 1 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]] Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 1.0ms) +  (17.7ms) DROP TABLE "users" +  (46.4ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.3ms) BEGIN + SQL (23.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-27 02:47:43.678824"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:43.678824"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (12.8ms) 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-27 02:47:43.745547"], ["extractor", "count"], ["graph_id", 116], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:47:43.745547"]] +  (0.5ms) COMMIT +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"default", "metric"=>"UsersMetric", "extractor"=>"interval", "id"=>"25"}, "1"=>{"option"=>"default", "metric"=>"", "extractor"=>"change"}}}, "id"=>"116"} + Prosperity::Graph Load (7.7ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 116]] +  (0.2ms) BEGIN + 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 (25) [["graph_id", 116]] + SQL (0.2ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "metric" = $2, "option" = $3, "updated_at" = $4 WHERE "prosperity_graph_lines"."id" = 25 [["extractor", "interval"], ["metric", "UsersMetric"], ["option", "default"], ["updated_at", "2014-05-27 02:47:43.785918"]] +  (5.7ms) COMMIT +Redirected to http://test.host/prosperity/graphs/116/edit +Completed 302 Found in 29ms (ActiveRecord: 14.2ms) + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 LIMIT 1 [["id", 25]] + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 116]] +  (0.3ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 116]] +  (0.1ms) BEGIN + 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-27 02:47:43.800076"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:43.800076"]] +  (5.8ms) COMMIT +  (0.2ms) BEGIN + SQL (0.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-27 02:47:43.809209"], ["extractor", "count"], ["graph_id", 117], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:47:43.809209"]] +  (0.3ms) COMMIT + 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", 117]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"26", "option"=>"new_option", "extractor"=>"interval"}}}, "id"=>"117"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 117]] +  (0.1ms) BEGIN + Prosperity::GraphLine Load (0.1ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 AND "prosperity_graph_lines"."id" IN (26) [["graph_id", 117]] + SQL (0.2ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "option" = $2, "updated_at" = $3 WHERE "prosperity_graph_lines"."id" = 26 [["extractor", "interval"], ["option", "new_option"], ["updated_at", "2014-05-27 02:47:43.815545"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/117/edit +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 117]] + 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", 117]] +  (0.1ms) BEGIN + 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-27 02:47:43.819497"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:43.819497"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"foo", "metric"=>"bar", "extractor"=>"count"}}}, "id"=>"118"} + Prosperity::Graph Load (0.7ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 118]] +  (0.1ms) BEGIN + 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-27 02:47:43.825937"], ["extractor", "count"], ["graph_id", 118], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:47:43.825937"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/118/edit +Completed 302 Found in 5ms (ActiveRecord: 1.3ms) + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 118]] +  (0.2ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 118]] +  (0.1ms) BEGIN + 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-27 02:47:43.830541"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:43.830541"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#edit as HTML + Parameters: {"id"=>"119"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 119]] + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (17.6ms) + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 119]] +Completed 200 OK in 104ms (Views: 87.9ms | ActiveRecord: 0.3ms) +Processing by Prosperity::GraphsController#create as HTML + Parameters: {"graph"=>{"graph"=>{}}} +Unpermitted parameters: graph +Unpermitted parameters: graph +Unpermitted parameters: graph +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.4ms) +Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 0.2ms) +  (0.2ms) SELECT COUNT(*) FROM "prosperity_graphs" +Processing by Prosperity::GraphsController#create as HTML + Parameters: {"graph"=>{"title"=>"My Graph", "period"=>"month", "graph_type"=>"line"}} +  (0.1ms) BEGIN + 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-27 02:47:43.953385"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:43.953385"]] +  (6.1ms) COMMIT +Redirected to http://test.host/prosperity/graphs/120/edit +Completed 302 Found in 9ms (ActiveRecord: 6.4ms) +  (0.3ms) SELECT COUNT(*) FROM "prosperity_graphs" +Processing by Prosperity::GraphsController#new as HTML + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.6ms) +Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) +  (0.1ms) BEGIN + 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-27 02:47:43.972872"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:43.972872"]] +  (6.3ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"121"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 121]] +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.3ms) +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"unknown_id"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]] +Completed 404 Not Found in 3ms (Views: 1.7ms | ActiveRecord: 0.5ms) +  (0.1ms) BEGIN + 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-27 02:47:43.997172"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:43.997172"]] +  (6.2ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"122"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 122]] +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.1ms) BEGIN + 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-27 02:47:44.010341"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:44.010341"]] +  (6.2ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"123"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 123]] +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms) +  (0.1ms) BEGIN + 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-27 02:47:44.023177"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:44.023177"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + 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-27 02:47:44.025674"], ["extractor", "count"], ["graph_id", 124], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:47:44.025674"]] +  (0.4ms) COMMIT +Processing by Prosperity::GraphsController#show as JSON + Parameters: {"id"=>"124"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 124]] + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 124]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (0.1ms) BEGIN + 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-27 02:47:44.032297"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:44.032297"]] +  (6.1ms) COMMIT +Processing by Prosperity::GraphsController#show as JSON + Parameters: {"id"=>"125"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 125]] + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 125]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) +  (2.3ms) DROP TABLE "users" +  (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) +  (0.1ms) BEGIN + 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-27 02:47:50.865815"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:50.865815"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#show as JSON + Parameters: {"id"=>"126"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 126]] + Prosperity::GraphLine Load (0.3ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 126]] +Completed 200 OK in 15ms (Views: 0.3ms | ActiveRecord: 1.1ms) +  (0.2ms) BEGIN + 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-27 02:47:50.888963"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:50.888963"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + 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-27 02:47:50.895262"], ["extractor", "count"], ["graph_id", 127], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:47:50.895262"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#show as JSON + Parameters: {"id"=>"127"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 127]] + Prosperity::GraphLine Load (0.1ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 127]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (0.1ms) BEGIN + 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-27 02:47:50.901435"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:50.901435"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"128"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 128]] +Completed 200 OK in 18ms (Views: 17.6ms | ActiveRecord: 0.2ms) +  (0.1ms) BEGIN + 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-27 02:47:50.924516"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:50.924516"]] +  (0.4ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"129"} + Prosperity::Graph Load (0.4ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 129]] +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) +  (0.2ms) BEGIN + 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-27 02:47:50.934549"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:50.934549"]] +  (0.4ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"130"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 130]] +Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms) +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"unknown_id"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]] +Completed 404 Not Found in 2ms (Views: 1.3ms | ActiveRecord: 0.4ms) +Processing by Prosperity::GraphsController#new as HTML + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (9.6ms) +Completed 200 OK in 21ms (Views: 21.1ms | ActiveRecord: 0.0ms) +  (0.2ms) BEGIN + 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-27 02:47:50.967948"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:50.967948"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) 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-27 02:47:50.970454"], ["extractor", "count"], ["graph_id", 131], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:47:50.970454"]] +  (0.3ms) COMMIT + 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", 131]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"30", "option"=>"new_option", "extractor"=>"interval"}}}, "id"=>"131"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 131]] +  (0.1ms) BEGIN + 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 (30) [["graph_id", 131]] + SQL (0.3ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "option" = $2, "updated_at" = $3 WHERE "prosperity_graph_lines"."id" = 30 [["extractor", "interval"], ["option", "new_option"], ["updated_at", "2014-05-27 02:47:50.978451"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/131/edit +Completed 302 Found in 7ms (ActiveRecord: 1.0ms) + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 131]] + 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", 131]] +  (0.1ms) BEGIN + 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-27 02:47:50.983730"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:50.983730"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"foo", "metric"=>"bar", "extractor"=>"count"}}}, "id"=>"132"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 132]] +  (0.1ms) BEGIN + 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-27 02:47:50.987655"], ["extractor", "count"], ["graph_id", 132], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:47:50.987655"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/132/edit +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 132]] +  (0.2ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 132]] +  (0.1ms) BEGIN + 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-27 02:47:50.991714"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:50.991714"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) 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-27 02:47:50.993410"], ["extractor", "count"], ["graph_id", 133], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:47:50.993410"]] +  (0.2ms) COMMIT +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"default", "metric"=>"UsersMetric", "extractor"=>"interval", "id"=>"32"}, "1"=>{"option"=>"default", "metric"=>"", "extractor"=>"change"}}}, "id"=>"133"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 133]] +  (0.1ms) BEGIN + 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 (32) [["graph_id", 133]] + SQL (0.2ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "metric" = $2, "option" = $3, "updated_at" = $4 WHERE "prosperity_graph_lines"."id" = 32 [["extractor", "interval"], ["metric", "UsersMetric"], ["option", "default"], ["updated_at", "2014-05-27 02:47:50.998023"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/133/edit +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 LIMIT 1 [["id", 32]] + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 133]] +  (0.1ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 133]] +  (0.2ms) SELECT COUNT(*) FROM "prosperity_graphs" +Processing by Prosperity::GraphsController#create as HTML + Parameters: {"graph"=>{"title"=>"My Graph", "period"=>"month", "graph_type"=>"line"}} +  (0.1ms) BEGIN + 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-27 02:47:51.005876"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:51.005876"]] +  (0.4ms) COMMIT +Redirected to http://test.host/prosperity/graphs/134/edit +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "prosperity_graphs" +Processing by Prosperity::GraphsController#create as HTML + Parameters: {"graph"=>{"graph"=>{}}} +Unpermitted parameters: graph +Unpermitted parameters: graph +Unpermitted parameters: graph +  (0.2ms) BEGIN +  (0.1ms) ROLLBACK + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.2ms) +Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 0.3ms) +  (0.2ms) BEGIN + 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-27 02:47:51.020908"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:47:51.020908"]] +  (0.4ms) COMMIT +Processing by Prosperity::GraphsController#edit as HTML + Parameters: {"id"=>"135"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 135]] + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.5ms) + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 135]] +Completed 200 OK in 19ms (Views: 11.2ms | ActiveRecord: 0.4ms) +  (8.1ms) DROP TABLE "users" +  (4.3ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.1ms) BEGIN + 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-27 02:49:52.172089"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:49:52.172089"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.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-27 02:49:52.190155"], ["extractor", "count"], ["graph_id", 136], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:49:52.190155"]] +  (0.4ms) COMMIT + Prosperity::GraphLine Load (0.4ms) 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", 136]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"33", "_destroy"=>true}}}, "id"=>"136"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 136]] +Unpermitted parameters: _destroy +  (0.1ms) BEGIN + 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 (33) [["graph_id", 136]] +  (0.1ms) COMMIT +Redirected to http://test.host/prosperity/graphs/136/edit +Completed 302 Found in 6ms (ActiveRecord: 0.6ms) + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 33 LIMIT 1 +  (8.6ms) DROP TABLE "users" +  (5.4ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.2ms) BEGIN + 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-27 02:50:11.952689"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:50:11.952689"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.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-27 02:50:11.972537"], ["extractor", "count"], ["graph_id", 137], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:50:11.972537"]] +  (0.4ms) COMMIT + Prosperity::GraphLine Load (0.3ms) 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", 137]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"34", "_destroy"=>true}}}, "id"=>"137"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 137]] +Unpermitted parameters: _destroy +  (0.1ms) BEGIN + 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 (34) [["graph_id", 137]] +  (0.1ms) COMMIT +Redirected to http://test.host/prosperity/graphs/137/edit +Completed 302 Found in 5ms (ActiveRecord: 0.6ms) + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 34 LIMIT 1 +  (1.8ms) DROP TABLE "users" +  (4.6ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.2ms) BEGIN + SQL (0.6ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-27 02:51:01.424666"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:51:01.424666"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.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-27 02:51:01.444955"], ["extractor", "count"], ["graph_id", 138], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:51:01.444955"]] +  (0.4ms) COMMIT + Prosperity::GraphLine Load (0.3ms) 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", 138]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"35", "_destroy"=>"1"}}}, "id"=>"138"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 138]] +Unpermitted parameters: _destroy +  (0.1ms) BEGIN + 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 (35) [["graph_id", 138]] +  (0.1ms) COMMIT +Redirected to http://test.host/prosperity/graphs/138/edit +Completed 302 Found in 5ms (ActiveRecord: 0.6ms) + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 35 LIMIT 1 +  (8.5ms) DROP TABLE "users" +  (3.9ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.1ms) BEGIN + 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-27 02:51:27.559170"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:51:27.559170"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.4ms) 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-27 02:51:27.577853"], ["extractor", "count"], ["graph_id", 139], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:51:27.577853"]] +  (0.3ms) COMMIT + Prosperity::GraphLine Load (0.3ms) 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", 139]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"36", "_destroy"=>true}}}, "id"=>"139"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 139]] +Unpermitted parameters: _destroy +  (0.2ms) BEGIN + Prosperity::GraphLine Load (0.4ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 AND "prosperity_graph_lines"."id" IN (36) [["graph_id", 139]] +  (0.2ms) COMMIT +Redirected to http://test.host/prosperity/graphs/139/edit +Completed 302 Found in 10ms (ActiveRecord: 1.0ms) + Prosperity::GraphLine Load (0.3ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 36 LIMIT 1 +  (8.6ms) DROP TABLE "users" +  (4.5ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.1ms) BEGIN + 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-27 02:51:51.646485"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:51:51.646485"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.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-27 02:51:51.666316"], ["extractor", "count"], ["graph_id", 140], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:51:51.666316"]] +  (0.9ms) COMMIT + Prosperity::GraphLine Load (0.4ms) 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", 140]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"37", "_destroy"=>true}}}, "id"=>"140"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 140]] +Unpermitted parameters: _destroy +Unpermitted parameters: _destroy +Redirected to http://test.host/prosperity/graphs/140/edit +Completed 302 Found in 7618ms (ActiveRecord: 0.8ms) +  (3.0ms) DROP TABLE "users" +  (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) +  (0.1ms) BEGIN + 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-27 02:52:55.040182"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:52:55.040182"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.4ms) 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-27 02:52:55.062927"], ["extractor", "count"], ["graph_id", 141], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:52:55.062927"]] +  (0.3ms) COMMIT + Prosperity::GraphLine Load (0.3ms) 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", 141]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"38", "_destroy"=>true}}}, "id"=>"141"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 141]] +Unpermitted parameters: _destroy +Unpermitted parameters: _destroy +Unpermitted parameters: _destroy +Redirected to http://test.host/prosperity/graphs/141/edit +Completed 302 Found in 31799ms (ActiveRecord: 0.8ms) +  (2.3ms) DROP TABLE "users" +  (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) +  (0.2ms) BEGIN + SQL (0.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-27 02:54:41.924377"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:54:41.924377"]] +  (0.3ms) COMMIT +  (0.3ms) BEGIN + SQL (0.4ms) 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-27 02:54:41.948977"], ["extractor", "count"], ["graph_id", 142], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:54:41.948977"]] +  (0.3ms) COMMIT + Prosperity::GraphLine Load (0.4ms) 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", 142]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"39", "_destroy"=>true}}}, "id"=>"142"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 142]] +Redirected to http://test.host/prosperity/graphs/142/edit +Completed 302 Found in 5946ms (ActiveRecord: 6.6ms) +  (2.5ms) DROP TABLE "users" +  (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) +  (0.1ms) BEGIN + 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-27 02:54:55.707673"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:54:55.707673"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#show as JSON + Parameters: {"id"=>"143"} + Prosperity::Graph Load (0.4ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 143]] + Prosperity::GraphLine Load (0.3ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 143]] +Completed 200 OK in 20ms (Views: 0.3ms | ActiveRecord: 1.5ms) +  (0.1ms) BEGIN + 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-27 02:54:55.735794"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:54:55.735794"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.5ms) 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-27 02:54:55.742711"], ["extractor", "count"], ["graph_id", 144], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:54:55.742711"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#show as JSON + Parameters: {"id"=>"144"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 144]] + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 144]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms) +  (0.1ms) BEGIN + 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-27 02:54:55.751356"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:54:55.751356"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"145"} + Prosperity::Graph Load (0.5ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 145]] +Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.5ms) +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"unknown_id"} + Prosperity::Graph Load (0.4ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]] +Completed 404 Not Found in 3ms (Views: 1.8ms | ActiveRecord: 0.9ms) +  (0.2ms) BEGIN + SQL (0.7ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-05-27 02:54:55.781107"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:54:55.781107"]] +  (0.4ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"146"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 146]] +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.3ms) +  (0.1ms) BEGIN + 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-27 02:54:55.788648"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:54:55.788648"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"147"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 147]] +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.2ms) +  (0.1ms) BEGIN + 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-27 02:54:55.794021"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:54:55.794021"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#edit as HTML + Parameters: {"id"=>"148"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 148]] + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (9.6ms) + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 148]] +Completed 200 OK in 31ms (Views: 25.3ms | ActiveRecord: 0.4ms) +  (0.6ms) SELECT COUNT(*) FROM "prosperity_graphs" +Processing by Prosperity::GraphsController#create as HTML + Parameters: {"graph"=>{"title"=>"My Graph", "period"=>"month", "graph_type"=>"line"}} +  (0.2ms) BEGIN + 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-27 02:54:55.834766"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:54:55.834766"]] +  (0.4ms) COMMIT +Redirected to http://test.host/prosperity/graphs/149/edit +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.2ms) SELECT COUNT(*) FROM "prosperity_graphs" +Processing by Prosperity::GraphsController#create as HTML + Parameters: {"graph"=>{"graph"=>{}}} +Unpermitted parameters: graph +Unpermitted parameters: graph +Unpermitted parameters: graph +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.4ms) +Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.2ms) +Processing by Prosperity::GraphsController#new as HTML + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.1ms) +Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms) +  (0.1ms) BEGIN + 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-27 02:54:55.856834"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:54:55.856834"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + 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-27 02:54:55.859721"], ["extractor", "count"], ["graph_id", 150], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:54:55.859721"]] +  (0.4ms) COMMIT +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"default", "metric"=>"UsersMetric", "extractor"=>"interval", "id"=>"41"}, "1"=>{"option"=>"default", "metric"=>"", "extractor"=>"change"}}}, "id"=>"150"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 150]] +  (0.1ms) BEGIN + 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 (41) [["graph_id", 150]] + SQL (0.2ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "metric" = $2, "option" = $3, "updated_at" = $4 WHERE "prosperity_graph_lines"."id" = 41 [["extractor", "interval"], ["metric", "UsersMetric"], ["option", "default"], ["updated_at", "2014-05-27 02:54:55.869214"]] +  (0.4ms) COMMIT +Redirected to http://test.host/prosperity/graphs/150/edit +Completed 302 Found in 9ms (ActiveRecord: 1.1ms) + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 LIMIT 1 [["id", 41]] + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 150]] +  (0.2ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 150]] +  (0.1ms) BEGIN + 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-27 02:54:55.875739"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:54:55.875739"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + 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-27 02:54:55.877710"], ["extractor", "count"], ["graph_id", 151], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:54:55.877710"]] +  (0.3ms) COMMIT + 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", 151]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"42", "option"=>"new_option", "extractor"=>"interval"}}}, "id"=>"151"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 151]] +  (0.1ms) BEGIN + 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 (42) [["graph_id", 151]] + SQL (0.2ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "option" = $2, "updated_at" = $3 WHERE "prosperity_graph_lines"."id" = 42 [["extractor", "interval"], ["option", "new_option"], ["updated_at", "2014-05-27 02:54:55.884749"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/151/edit +Completed 302 Found in 5ms (ActiveRecord: 1.1ms) + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 151]] + Prosperity::GraphLine Load (0.3ms) 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", 151]] +  (0.1ms) BEGIN + 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-27 02:54:55.889594"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:54:55.889594"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) 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-27 02:54:55.891320"], ["extractor", "count"], ["graph_id", 152], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:54:55.891320"]] +  (0.3ms) COMMIT + 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", 152]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"43", "_destroy"=>true}}}, "id"=>"152"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 152]] +  (0.1ms) BEGIN + Prosperity::GraphLine Load (0.1ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 AND "prosperity_graph_lines"."id" IN (43) [["graph_id", 152]] + SQL (0.2ms) DELETE FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 [["id", 43]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/152/edit +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) + Prosperity::GraphLine Load (0.1ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 43 LIMIT 1 +  (0.1ms) BEGIN + 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-27 02:54:55.898880"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-05-27 02:54:55.898880"]] +  (0.4ms) COMMIT +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"foo", "metric"=>"bar", "extractor"=>"count"}}}, "id"=>"153"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 153]] +  (0.1ms) BEGIN + SQL (0.1ms) 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-27 02:54:55.902790"], ["extractor", "count"], ["graph_id", 153], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-05-27 02:54:55.902790"]] +  (0.4ms) COMMIT +Redirected to http://test.host/prosperity/graphs/153/edit +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 153]] +  (0.1ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 153]] +  (31.2ms) DROP TABLE "users" +  (48.8ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +Processing by Prosperity::MetricsController#index as HTML + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/metrics/index.html.erb within layouts/prosperity/application (2.8ms) +Completed 200 OK in 1746ms (Views: 1744.1ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"id"=>"UsersMetric"} +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"option"=>"with_1", "id"=>"UsersMetric"} +Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"period"=>"week", "id"=>"UsersMetric"} +  (2.4ms) 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-03-03 08:00:00.000000' AND '2014-06-09 06:59:59.999999') GROUP BY to_char(created_at, 'YYYY-WW') +Completed 200 OK in 67ms (Views: 0.3ms | ActiveRecord: 57.1ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"id"=>"blah"} +Filter chain halted as :get_metric rendered or redirected +Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"extractor"=>"does-not-exist", "id"=>"UsersMetric"} +Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"period"=>"week", "start_time"=>2014-06-06 00:00:00 -0700, "end_time"=>2014-06-06 23:59:59 -0700, "id"=>"UsersMetric"} +  (0.4ms) 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-06-02 07:00:00.000000' AND '2014-06-09 06:59:59.999999') GROUP BY to_char(created_at, 'YYYY-WW') +Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.4ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"id"=>"UsersMetric"} +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"extractor"=>"total", "id"=>"UsersMetric"} +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#show as HTML + Parameters: {"id"=>"UsersMetric"} + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_render_graph.html.erb (0.6ms) + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/shared/_date_range.html.erb (0.7ms) +Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#show as JSON + Parameters: {"id"=>"UsersMetric"} +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (14.1ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs" +  (0.1ms) BEGIN + SQL (18.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 16:47:24.176439"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.176439"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (2.7ms) INSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-06-06 16:47:24.210089"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.210089"]] +  (0.3ms) COMMIT +Processing by Prosperity::DashboardGraphsController#create as HTML + Parameters: {"dashboard_id"=>"56", "graph_id"=>"154"} + Prosperity::Graph Load (0.9ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 154]] + Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 56]] +  (0.1ms) BEGIN + Prosperity::DashboardGraph Exists (6.8ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 56 AND "prosperity_dashboard_graphs"."graph_id" = 154) LIMIT 1 + SQL (17.8ms) INSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 16:47:24.249026"], ["dashboard_id", 56], ["graph_id", 154], ["updated_at", "2014-06-06 16:47:24.249026"]] +  (0.5ms) COMMIT +Redirected to http://test.host/prosperity/dashboards/56/edit +Completed 302 Found in 53ms (ActiveRecord: 26.3ms) +  (0.3ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs" + Prosperity::DashboardGraph Load (0.4ms) SELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" ORDER BY "prosperity_dashboard_graphs"."id" DESC LIMIT 1 + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 154]] + Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 56]] +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 16:47:24.277269"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.277269"]] +  (6.1ms) COMMIT +  (0.1ms) BEGIN + 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-06-06 16:47:24.285341"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.285341"]] +  (6.1ms) COMMIT +Processing by Prosperity::DashboardGraphsController#create as HTML + Parameters: {"dashboard_id"=>"57", "graph_id"=>"155"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 155]] + Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 57]] +  (0.1ms) BEGIN + Prosperity::DashboardGraph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 57 AND "prosperity_dashboard_graphs"."graph_id" = 155) LIMIT 1 + 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-06-06 16:47:24.296622"], ["dashboard_id", 57], ["graph_id", 155], ["updated_at", "2014-06-06 16:47:24.296622"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/dashboards/57/edit +Completed 302 Found in 4ms (ActiveRecord: 1.2ms) +Processing by Prosperity::DashboardGraphsController#create as HTML + Parameters: {"dashboard_id"=>"57", "graph_id"=>"155"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 155]] + Prosperity::Dashboard Load (0.1ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 57]] +  (0.1ms) BEGIN + Prosperity::DashboardGraph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 57 AND "prosperity_dashboard_graphs"."graph_id" = 155) LIMIT 1 +  (0.1ms) ROLLBACK +Redirected to http://test.host/prosperity/dashboards/57/edit +Completed 302 Found in 7ms (ActiveRecord: 0.7ms) +  (0.1ms) BEGIN + 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-06-06 16:47:24.307809"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.307809"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 16:47:24.309414"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.309414"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Prosperity::DashboardGraph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 58 AND "prosperity_dashboard_graphs"."graph_id" = 156) LIMIT 1 + 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-06-06 16:47:24.311576"], ["dashboard_id", 58], ["graph_id", 156], ["updated_at", "2014-06-06 16:47:24.311576"]] +  (0.4ms) COMMIT +  (0.1ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs" +Processing by Prosperity::DashboardGraphsController#destroy as HTML + Parameters: {"dashboard_id"=>"58", "graph_id"=>"156"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 156]] + Prosperity::Dashboard Load (0.1ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 58]] + Prosperity::DashboardGraph Load (0.3ms) SELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."graph_id" = 156 AND "prosperity_dashboard_graphs"."dashboard_id" = 58 ORDER BY "prosperity_dashboard_graphs"."id" ASC LIMIT 1 +  (0.1ms) BEGIN + SQL (0.2ms) DELETE FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."id" = $1 [["id", 20]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/dashboards/58/edit +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) +  (0.2ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 16:47:24.324192"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.324192"]] +  (6.1ms) COMMIT +  (0.1ms) BEGIN + 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-06-06 16:47:24.332153"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.332153"]] +  (6.1ms) COMMIT +Processing by Prosperity::DashboardGraphsController#destroy as HTML + Parameters: {"dashboard_id"=>"59", "graph_id"=>"157"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 157]] + Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 59]] + Prosperity::DashboardGraph Load (0.3ms) SELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."graph_id" = 157 AND "prosperity_dashboard_graphs"."dashboard_id" = 59 ORDER BY "prosperity_dashboard_graphs"."id" ASC LIMIT 1 +Completed 404 Not Found in 2ms + SQL (0.2ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.345643"], ["updated_at", "2014-06-06 16:47:24.349557"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.345775"], ["updated_at", "2014-06-06 16:47:24.351569"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.345832"], ["updated_at", "2014-06-06 16:47:24.352758"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.353620"], ["updated_at", "2014-06-06 16:47:24.353989"]] +  (0.3ms) COMMIT +  (2.2ms) 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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.6ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.362724"], ["updated_at", "2014-06-06 16:47:24.363331"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.362846"], ["updated_at", "2014-06-06 16:47:24.364573"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.362891"], ["updated_at", "2014-06-06 16:47:24.365615"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.366329"], ["updated_at", "2014-06-06 16:47:24.366625"]] +  (0.2ms) COMMIT +  (0.9ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, MIN(value) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.370907"], ["updated_at", "2014-06-06 16:47:24.371336"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.370971"], ["updated_at", "2014-06-06 16:47:24.372331"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.371012"], ["updated_at", "2014-06-06 16:47:24.373226"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.373905"], ["updated_at", "2014-06-06 16:47:24.374162"]] +  (0.2ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.377606"], ["updated_at", "2014-06-06 16:47:24.378014"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.377668"], ["updated_at", "2014-06-06 16:47:24.378967"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.377710"], ["updated_at", "2014-06-06 16:47:24.379959"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.380699"], ["updated_at", "2014-06-06 16:47:24.380971"]] +  (0.2ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, AVG(value) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.384383"], ["updated_at", "2014-06-06 16:47:24.384782"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.384444"], ["updated_at", "2014-06-06 16:47:24.385744"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.384486"], ["updated_at", "2014-06-06 16:47:24.386627"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.387306"], ["updated_at", "2014-06-06 16:47:24.387548"]] +  (0.2ms) COMMIT +  (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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.392111"], ["updated_at", "2014-06-06 16:47:24.392546"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.392178"], ["updated_at", "2014-06-06 16:47:24.393592"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.392219"], ["updated_at", "2014-06-06 16:47:24.394493"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.395184"], ["updated_at", "2014-06-06 16:47:24.395461"]] +  (0.2ms) COMMIT +  (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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.400165"], ["updated_at", "2014-06-06 16:47:24.400636"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.400235"], ["updated_at", "2014-06-06 16:47:24.401654"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.400277"], ["updated_at", "2014-06-06 16:47:24.402595"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.403311"], ["updated_at", "2014-06-06 16:47:24.403571"]] +  (0.2ms) COMMIT +  (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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.407981"], ["updated_at", "2014-06-06 16:47:24.408413"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.408046"], ["updated_at", "2014-06-06 16:47:24.409460"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.408086"], ["updated_at", "2014-06-06 16:47:24.410603"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.412244"], ["updated_at", "2014-06-06 16:47:24.412645"]] +  (0.3ms) COMMIT +  (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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.417132"], ["updated_at", "2014-06-06 16:47:24.417650"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.417215"], ["updated_at", "2014-06-06 16:47:24.418791"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.417254"], ["updated_at", "2014-06-06 16:47:24.419759"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.420430"], ["updated_at", "2014-06-06 16:47:24.420789"]] +  (0.2ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, SUM(value) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.425242"], ["updated_at", "2014-06-06 16:47:24.425801"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.425357"], ["updated_at", "2014-06-06 16:47:24.426925"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.425402"], ["updated_at", "2014-06-06 16:47:24.427827"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.428488"], ["updated_at", "2014-06-06 16:47:24.428752"]] +  (0.2ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, SUM(value) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.432668"], ["updated_at", "2014-06-06 16:47:24.433158"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.432742"], ["updated_at", "2014-06-06 16:47:24.434317"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.432783"], ["updated_at", "2014-06-06 16:47:24.435251"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.435920"], ["updated_at", "2014-06-06 16:47:24.436321"]] +  (0.4ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, MAX(value) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.440264"], ["updated_at", "2014-06-06 16:47:24.440729"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.440333"], ["updated_at", "2014-06-06 16:47:24.441766"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.440374"], ["updated_at", "2014-06-06 16:47:24.442834"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.444334"], ["updated_at", "2014-06-06 16:47:24.444792"]] +  (0.3ms) COMMIT +  (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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.449097"], ["updated_at", "2014-06-06 16:47:24.449623"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.449173"], ["updated_at", "2014-06-06 16:47:24.450722"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.449215"], ["updated_at", "2014-06-06 16:47:24.451661"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.452384"], ["updated_at", "2014-06-06 16:47:24.452668"]] +  (0.2ms) COMMIT +  (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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.6ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.457574"], ["updated_at", "2014-06-06 16:47:24.458217"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.457687"], ["updated_at", "2014-06-06 16:47:24.459412"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.457728"], ["updated_at", "2014-06-06 16:47:24.460313"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.461054"], ["updated_at", "2014-06-06 16:47:24.461329"]] +  (0.2ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.464808"], ["updated_at", "2014-06-06 16:47:24.465312"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.464879"], ["updated_at", "2014-06-06 16:47:24.466584"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.464921"], ["updated_at", "2014-06-06 16:47:24.467585"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.468349"], ["updated_at", "2014-06-06 16:47:24.468623"]] +  (0.3ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.472461"], ["updated_at", "2014-06-06 16:47:24.472914"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.472527"], ["updated_at", "2014-06-06 16:47:24.473970"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.472568"], ["updated_at", "2014-06-06 16:47:24.474960"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.475693"], ["updated_at", "2014-06-06 16:47:24.475955"]] +  (0.2ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-WW') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-03T00:00:00Z' AND '2014-06-08T23:59:59Z') + GROUP BY bucket + + SQL (6.0ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.488822"], ["updated_at", "2014-06-06 16:47:24.489483"]] +  (5.6ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.488939"], ["updated_at", "2014-06-06 16:47:24.496334"]] +  (6.0ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.488979"], ["updated_at", "2014-06-06 16:47:24.503541"]] +  (4.9ms) COMMIT +  (0.2ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.509263"], ["updated_at", "2014-06-06 16:47:24.509846"]] +  (0.3ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-WW') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-03T00:00:00Z' AND '2014-06-08T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.516840"], ["updated_at", "2014-06-06 16:47:24.517407"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.516930"], ["updated_at", "2014-06-06 16:47:24.518660"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.516970"], ["updated_at", "2014-06-06 16:47:24.519753"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.520838"], ["updated_at", "2014-06-06 16:47:24.521167"]] +  (0.2ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-WW') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2014-05-19T00:00:00Z' AND '2014-06-08T23:59:59Z') + GROUP BY bucket + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.523828"], ["updated_at", "2014-06-06 16:47:24.524243"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.523894"], ["updated_at", "2014-06-06 16:47:24.525250"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.523936"], ["updated_at", "2014-06-06 16:47:24.526375"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.527164"], ["updated_at", "2014-06-06 16:47:24.527445"]] +  (0.2ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-WW') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2014-05-19T00:00:00Z' AND '2014-06-08T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.530433"], ["updated_at", "2014-06-06 16:47:24.530872"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.530502"], ["updated_at", "2014-06-06 16:47:24.531898"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.530542"], ["updated_at", "2014-06-06 16:47:24.532771"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.533462"], ["updated_at", "2014-06-06 16:47:24.533720"]] +  (0.2ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + WITH all_columns AS (SELECT * FROM users) SELECT name, created_at FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.536960"], ["updated_at", "2014-06-06 16:47:24.537358"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.537025"], ["updated_at", "2014-06-06 16:47:24.538420"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.537066"], ["updated_at", "2014-06-06 16:47:24.539341"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.540049"], ["updated_at", "2014-06-06 16:47:24.540304"]] +  (0.2ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + WITH all_columns AS (SELECT * FROM users) SELECT name, created_at FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.544231"], ["updated_at", "2014-06-06 16:47:24.544877"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.544342"], ["updated_at", "2014-06-06 16:47:24.546263"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.544390"], ["updated_at", "2014-06-06 16:47:24.547400"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.548151"], ["updated_at", "2014-06-06 16:47:24.548417"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 16:47:24.549323"], ["updated_at", "2014-06-06 16:47:24.549323"], ["value", 1]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 16:47:24.550638"], ["updated_at", "2014-06-06 16:47:24.550638"], ["value", 3]] +  (0.2ms) COMMIT +  (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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" + SQL (0.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.555358"], ["updated_at", "2014-06-06 16:47:24.556034"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.555459"], ["updated_at", "2014-06-06 16:47:24.557344"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.555525"], ["updated_at", "2014-06-06 16:47:24.558332"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.559018"], ["updated_at", "2014-06-06 16:47:24.559303"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 16:47:24.560323"], ["updated_at", "2014-06-06 16:47:24.560323"], ["value", 1]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 16:47:24.561306"], ["updated_at", "2014-06-06 16:47:24.561306"], ["value", 3]] +  (0.2ms) COMMIT + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.564488"], ["updated_at", "2014-06-06 16:47:24.564942"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.564566"], ["updated_at", "2014-06-06 16:47:24.566047"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.564607"], ["updated_at", "2014-06-06 16:47:24.566972"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 16:47:24.567660"], ["updated_at", "2014-06-06 16:47:24.567918"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 16:47:24.568772"], ["updated_at", "2014-06-06 16:47:24.568772"], ["value", 1]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 16:47:24.569744"], ["updated_at", "2014-06-06 16:47:24.569744"], ["value", 3]] +  (0.2ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, SUM(value) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 16:47:24.577821"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.577821"]] +  (0.3ms) COMMIT +Processing by Prosperity::DashboardsController#index as HTML + Prosperity::Dashboard Load (0.3ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" +Completed 200 OK in 32ms (Views: 31.4ms | ActiveRecord: 0.3ms) +  (0.1ms) BEGIN + SQL (0.3ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 16:47:24.615173"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.615173"]] +  (0.4ms) COMMIT +Processing by Prosperity::DashboardsController#show as HTML + Parameters: {"id"=>"61"} + Prosperity::Dashboard Load (0.1ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 61]] + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/shared/_date_range.html.erb (0.4ms) + 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", 61]] + 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", 61]] +Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 0.8ms) +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 16:47:24.642263"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.642263"]] +  (5.5ms) COMMIT +Processing by Prosperity::DashboardsController#edit as HTML + Parameters: {"id"=>"62"} + Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 62]] + Prosperity::Graph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_graphs" LIMIT 1 + 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", 62]] + Prosperity::Graph Load (0.5ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" +Completed 200 OK in 21ms (Views: 18.5ms | ActiveRecord: 1.3ms) +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 16:47:24.672989"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.672989"]] +  (0.4ms) COMMIT +  (0.3ms) SELECT COUNT(*) FROM "prosperity_dashboards" +Processing by Prosperity::DashboardsController#create as HTML + Parameters: {"dashboard"=>{"title"=>"test"}} +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 16:47:24.677283"], ["default", "f"], ["title", "test"], ["updated_at", "2014-06-06 16:47:24.677283"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/dashboards/64/edit +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "prosperity_dashboards" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 16:47:24.681020"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.681020"]] +  (0.3ms) COMMIT +Processing by Prosperity::DashboardsController#create as HTML + Parameters: {"dashboard"=>{"title"=>""}} +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.2ms) +  (0.2ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 16:47:24.698360"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.698360"]] +  (6.3ms) COMMIT +Processing by Prosperity::DashboardsController#new as HTML +Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 16:47:24.714250"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.714250"]] +  (5.1ms) COMMIT +Processing by Prosperity::DashboardsController#destroy as HTML + Parameters: {"id"=>"67"} + Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 67]] +  (0.1ms) BEGIN + SQL (0.2ms) DELETE FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 [["id", 67]] +  (0.4ms) COMMIT +Redirected to http://test.host/prosperity/dashboards +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) + Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = 67 LIMIT 1 +Processing by Prosperity::GraphsController#new as HTML + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (3.3ms) +Completed 200 OK in 9ms (Views: 9.1ms | ActiveRecord: 0.0ms) +  (0.1ms) BEGIN + 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-06-06 16:47:24.740929"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.740929"]] +  (6.1ms) COMMIT +Processing by Prosperity::GraphsController#edit as HTML + Parameters: {"id"=>"158"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 158]] + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.3ms) + Prosperity::GraphLine Load (2.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 158]] + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_render_graph.html.erb (0.1ms) +Completed 200 OK in 20ms (Views: 10.5ms | ActiveRecord: 3.5ms) +  (0.1ms) BEGIN + 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-06-06 16:47:24.771637"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.771637"]] +  (6.0ms) COMMIT +Processing by Prosperity::GraphsController#show as JSON + Parameters: {"id"=>"159"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 159]] + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 159]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) +  (0.1ms) BEGIN + 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-06-06 16:47:24.783791"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.783791"]] +  (6.1ms) COMMIT +  (0.1ms) BEGIN + SQL (1.7ms) 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-06-06 16:47:24.792382"], ["extractor", "count"], ["graph_id", 160], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-06-06 16:47:24.792382"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#show as JSON + Parameters: {"id"=>"160"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 160]] + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 160]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (0.1ms) BEGIN + 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-06-06 16:47:24.800205"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.800205"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"161"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 161]] +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms) +  (0.1ms) BEGIN + 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-06-06 16:47:24.808030"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.808030"]] +  (0.4ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"162"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 162]] +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms) +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"unknown_id"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]] +Completed 404 Not Found in 2ms (Views: 1.2ms | ActiveRecord: 0.4ms) +  (0.1ms) BEGIN + 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-06-06 16:47:24.816654"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.816654"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"163"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 163]] +Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms) +  (0.2ms) SELECT COUNT(*) FROM "prosperity_graphs" +Processing by Prosperity::GraphsController#create as HTML + Parameters: {"graph"=>{"title"=>"My Graph", "period"=>"month", "graph_type"=>"line"}} +  (0.1ms) BEGIN + 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-06-06 16:47:24.823920"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.823920"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/164/edit +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.1ms) SELECT COUNT(*) FROM "prosperity_graphs" +Processing by Prosperity::GraphsController#create as HTML + Parameters: {"graph"=>{"graph"=>{}}} +Unpermitted parameters: graph +Unpermitted parameters: graph +Unpermitted parameters: graph +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.2ms) +Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.2ms) +  (0.1ms) BEGIN + 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-06-06 16:47:24.836127"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.836127"]] +  (0.4ms) COMMIT +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"foo", "metric"=>"bar", "extractor"=>"count"}}}, "id"=>"165"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 165]] +  (0.1ms) BEGIN + 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-06-06 16:47:24.840433"], ["extractor", "count"], ["graph_id", 165], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-06-06 16:47:24.840433"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/165/edit +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 165]] +  (0.2ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 165]] +  (0.1ms) BEGIN + 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-06-06 16:47:24.845520"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.845520"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + 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-06-06 16:47:24.847961"], ["extractor", "count"], ["graph_id", 166], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-06-06 16:47:24.847961"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"default", "metric"=>"UsersMetric", "extractor"=>"interval", "id"=>"47"}, "1"=>{"option"=>"default", "metric"=>"", "extractor"=>"change"}}}, "id"=>"166"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 166]] +  (0.1ms) BEGIN + 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 (47) [["graph_id", 166]] + SQL (0.2ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "metric" = $2, "option" = $3, "updated_at" = $4 WHERE "prosperity_graph_lines"."id" = 47 [["extractor", "interval"], ["metric", "UsersMetric"], ["option", "default"], ["updated_at", "2014-06-06 16:47:24.853081"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/166/edit +Completed 302 Found in 5ms (ActiveRecord: 0.9ms) + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 LIMIT 1 [["id", 47]] + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 166]] +  (0.1ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 166]] +  (0.1ms) BEGIN + 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-06-06 16:47:24.858358"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.858358"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + 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-06-06 16:47:24.860081"], ["extractor", "count"], ["graph_id", 167], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-06-06 16:47:24.860081"]] +  (0.3ms) COMMIT + 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", 167]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"48", "option"=>"new_option", "extractor"=>"interval"}}}, "id"=>"167"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 167]] +  (0.1ms) BEGIN + 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 (48) [["graph_id", 167]] + SQL (0.2ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "option" = $2, "updated_at" = $3 WHERE "prosperity_graph_lines"."id" = 48 [["extractor", "interval"], ["option", "new_option"], ["updated_at", "2014-06-06 16:47:24.865634"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/167/edit +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 167]] + 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", 167]] +  (0.2ms) BEGIN + 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-06-06 16:47:24.869753"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 16:47:24.869753"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) 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-06-06 16:47:24.871862"], ["extractor", "count"], ["graph_id", 168], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-06-06 16:47:24.871862"]] +  (0.3ms) COMMIT + 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", 168]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"49", "_destroy"=>true}}}, "id"=>"168"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 168]] +  (0.1ms) BEGIN + 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 (49) [["graph_id", 168]] + SQL (0.2ms) DELETE FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 [["id", 49]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/168/edit +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 49 LIMIT 1 + SQL (0.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.890076"], ["updated_at", "2014-06-06 16:47:24.890738"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.890186"], ["updated_at", "2014-06-06 16:47:24.892043"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.890230"], ["updated_at", "2014-06-06 16:47:24.892967"]] +  (0.2ms) COMMIT +  (0.6ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.902196"], ["updated_at", "2014-06-06 16:47:24.902739"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.902269"], ["updated_at", "2014-06-06 16:47:24.903908"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.902313"], ["updated_at", "2014-06-06 16:47:24.904871"]] +  (0.3ms) COMMIT +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.910888"], ["updated_at", "2014-06-06 16:47:24.911373"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.910964"], ["updated_at", "2014-06-06 16:47:24.912500"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.911009"], ["updated_at", "2014-06-06 16:47:24.913534"]] +  (0.3ms) COMMIT +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.919202"], ["updated_at", "2014-06-06 16:47:24.919620"]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.919263"], ["updated_at", "2014-06-06 16:47:24.920672"]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.919304"], ["updated_at", "2014-06-06 16:47:24.921622"]] +  (0.3ms) COMMIT +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.927025"], ["updated_at", "2014-06-06 16:47:24.927422"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.927085"], ["updated_at", "2014-06-06 16:47:24.928446"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.927126"], ["updated_at", "2014-06-06 16:47:24.929645"]] +  (0.3ms) COMMIT +  (0.5ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.2ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.938248"], ["updated_at", "2014-06-06 16:47:24.938867"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.938321"], ["updated_at", "2014-06-06 16:47:24.939965"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.938364"], ["updated_at", "2014-06-06 16:47:24.940893"]] +  (0.2ms) COMMIT +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.948755"], ["updated_at", "2014-06-06 16:47:24.949238"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.948823"], ["updated_at", "2014-06-06 16:47:24.950274"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.948864"], ["updated_at", "2014-06-06 16:47:24.951336"]] +  (0.4ms) COMMIT +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.960324"], ["updated_at", "2014-06-06 16:47:24.960813"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.960398"], ["updated_at", "2014-06-06 16:47:24.961816"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.960441"], ["updated_at", "2014-06-06 16:47:24.962648"]] +  (0.2ms) COMMIT +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.971863"], ["updated_at", "2014-06-06 16:47:24.972378"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.971939"], ["updated_at", "2014-06-06 16:47:24.973474"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.971982"], ["updated_at", "2014-06-06 16:47:24.974448"]] +  (0.2ms) COMMIT +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.980218"], ["updated_at", "2014-06-06 16:47:24.980696"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.980286"], ["updated_at", "2014-06-06 16:47:24.981848"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.980329"], ["updated_at", "2014-06-06 16:47:24.982748"]] +  (0.2ms) COMMIT +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.988133"], ["updated_at", "2014-06-06 16:47:24.988524"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.988193"], ["updated_at", "2014-06-06 16:47:24.989509"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.988233"], ["updated_at", "2014-06-06 16:47:24.990637"]] +  (0.3ms) COMMIT +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:24.997837"], ["updated_at", "2014-06-06 16:47:24.998294"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:24.997902"], ["updated_at", "2014-06-06 16:47:24.999327"]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:24.997945"], ["updated_at", "2014-06-06 16:47:25.000289"]] +  (0.3ms) COMMIT +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.008157"], ["updated_at", "2014-06-06 16:47:25.008618"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.008225"], ["updated_at", "2014-06-06 16:47:25.009620"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.008268"], ["updated_at", "2014-06-06 16:47:25.010513"]] +  (0.2ms) COMMIT +  (0.3ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.019272"], ["updated_at", "2014-06-06 16:47:25.019782"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.019345"], ["updated_at", "2014-06-06 16:47:25.021111"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.019387"], ["updated_at", "2014-06-06 16:47:25.022327"]] +  (0.3ms) COMMIT +  (0.4ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.027851"], ["updated_at", "2014-06-06 16:47:25.028249"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.027909"], ["updated_at", "2014-06-06 16:47:25.029226"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.027950"], ["updated_at", "2014-06-06 16:47:25.030151"]] +  (0.2ms) COMMIT +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.035748"], ["updated_at", "2014-06-06 16:47:25.036166"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.035810"], ["updated_at", "2014-06-06 16:47:25.037140"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.035850"], ["updated_at", "2014-06-06 16:47:25.038011"]] +  (0.4ms) COMMIT +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-05-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-06-01 00:00:00.000000') +  (0.4ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-07-01 00:00:00.000000') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.048054"], ["updated_at", "2014-06-06 16:47:25.048599"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.048143"], ["updated_at", "2014-06-06 16:47:25.049838"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.048184"], ["updated_at", "2014-06-06 16:47:25.050828"]] +  (0.2ms) COMMIT + SQL (0.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.057516"], ["updated_at", "2014-06-06 16:47:25.058113"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.057615"], ["updated_at", "2014-06-06 16:47:25.059686"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.057657"], ["updated_at", "2014-06-06 16:47:25.061292"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.057703"], ["updated_at", "2014-06-06 16:47:25.062322"]] +  (0.2ms) COMMIT +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.075814"], ["updated_at", "2014-06-06 16:47:25.076364"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.075884"], ["updated_at", "2014-06-06 16:47:25.077575"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.075928"], ["updated_at", "2014-06-06 16:47:25.078650"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.075968"], ["updated_at", "2014-06-06 16:47:25.079613"]] +  (0.2ms) COMMIT +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.088331"], ["updated_at", "2014-06-06 16:47:25.088796"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.088396"], ["updated_at", "2014-06-06 16:47:25.089819"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.088437"], ["updated_at", "2014-06-06 16:47:25.090685"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.088476"], ["updated_at", "2014-06-06 16:47:25.091567"]] +  (0.2ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.100882"], ["updated_at", "2014-06-06 16:47:25.101460"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.100952"], ["updated_at", "2014-06-06 16:47:25.102688"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.100994"], ["updated_at", "2014-06-06 16:47:25.103643"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.101041"], ["updated_at", "2014-06-06 16:47:25.104551"]] +  (0.2ms) COMMIT +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.113751"], ["updated_at", "2014-06-06 16:47:25.114265"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.113819"], ["updated_at", "2014-06-06 16:47:25.115315"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.113860"], ["updated_at", "2014-06-06 16:47:25.116214"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.113900"], ["updated_at", "2014-06-06 16:47:25.117090"]] +  (0.2ms) COMMIT +  (0.3ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.3ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.3ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.3ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.3ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.134295"], ["updated_at", "2014-06-06 16:47:25.134815"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.134361"], ["updated_at", "2014-06-06 16:47:25.135880"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.134402"], ["updated_at", "2014-06-06 16:47:25.136857"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.134440"], ["updated_at", "2014-06-06 16:47:25.137728"]] +  (0.2ms) COMMIT +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.152865"], ["updated_at", "2014-06-06 16:47:25.153540"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.152950"], ["updated_at", "2014-06-06 16:47:25.154840"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.153002"], ["updated_at", "2014-06-06 16:47:25.155828"]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.153057"], ["updated_at", "2014-06-06 16:47:25.156800"]] +  (0.3ms) COMMIT +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.170932"], ["updated_at", "2014-06-06 16:47:25.171459"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.171001"], ["updated_at", "2014-06-06 16:47:25.172595"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.171046"], ["updated_at", "2014-06-06 16:47:25.173568"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.171086"], ["updated_at", "2014-06-06 16:47:25.174516"]] +  (0.3ms) COMMIT +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.189061"], ["updated_at", "2014-06-06 16:47:25.189621"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.189130"], ["updated_at", "2014-06-06 16:47:25.190720"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.189171"], ["updated_at", "2014-06-06 16:47:25.191602"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.189210"], ["updated_at", "2014-06-06 16:47:25.192470"]] +  (0.2ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.201589"], ["updated_at", "2014-06-06 16:47:25.202097"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.201656"], ["updated_at", "2014-06-06 16:47:25.203246"]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.201696"], ["updated_at", "2014-06-06 16:47:25.204216"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.201734"], ["updated_at", "2014-06-06 16:47:25.205198"]] +  (0.3ms) COMMIT +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.214070"], ["updated_at", "2014-06-06 16:47:25.214517"]] +  (0.4ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.214130"], ["updated_at", "2014-06-06 16:47:25.215588"]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.214175"], ["updated_at", "2014-06-06 16:47:25.216554"]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.214213"], ["updated_at", "2014-06-06 16:47:25.217502"]] +  (0.3ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.226730"], ["updated_at", "2014-06-06 16:47:25.227254"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.226811"], ["updated_at", "2014-06-06 16:47:25.228247"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.226853"], ["updated_at", "2014-06-06 16:47:25.229124"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.226892"], ["updated_at", "2014-06-06 16:47:25.230438"]] +  (0.3ms) COMMIT + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.234119"], ["updated_at", "2014-06-06 16:47:25.234658"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.234189"], ["updated_at", "2014-06-06 16:47:25.235883"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.234229"], ["updated_at", "2014-06-06 16:47:25.236854"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.234268"], ["updated_at", "2014-06-06 16:47:25.237778"]] +  (0.3ms) COMMIT +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.251867"], ["updated_at", "2014-06-06 16:47:25.252384"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.251939"], ["updated_at", "2014-06-06 16:47:25.253412"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.251981"], ["updated_at", "2014-06-06 16:47:25.254290"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.252020"], ["updated_at", "2014-06-06 16:47:25.255155"]] +  (0.2ms) COMMIT +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.278468"], ["updated_at", "2014-06-06 16:47:25.279435"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.278684"], ["updated_at", "2014-06-06 16:47:25.281328"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.278729"], ["updated_at", "2014-06-06 16:47:25.283184"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.278776"], ["updated_at", "2014-06-06 16:47:25.284707"]] +  (0.2ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.3ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 16:47:25.296007"], ["updated_at", "2014-06-06 16:47:25.297145"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 16:47:25.296615"], ["updated_at", "2014-06-06 16:47:25.298964"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 16:47:25.296656"], ["updated_at", "2014-06-06 16:47:25.300445"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 16:47:25.296693"], ["updated_at", "2014-06-06 16:47:25.302128"]] +  (0.2ms) COMMIT +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (7.2ms) DROP TABLE "users" +  (6.3ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"id"=>"UsersMetric"} +Completed 500 Internal Server Error in 6ms +  (2.0ms) DROP TABLE "users" +  (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) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"id"=>"UsersMetric"} +Completed 500 Internal Server Error in 7ms +  (8.2ms) DROP TABLE "users" +  (5.1ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"id"=>"UsersMetric"} +Completed 400 Bad Request in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (4.4ms) DROP TABLE "users" +  (4.8ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.4ms) SELECT COUNT(*) FROM "prosperity_graphs" +Processing by Prosperity::GraphsController#create as HTML + Parameters: {"graph"=>{"title"=>"My Graph", "period"=>"month", "graph_type"=>"line"}} +  (0.1ms) BEGIN + 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-06-06 17:29:46.637772"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:46.637772"]] +  (5.9ms) COMMIT +Redirected to http://test.host/prosperity/graphs/169/edit +Completed 302 Found in 17ms (ActiveRecord: 6.5ms) +  (0.2ms) SELECT COUNT(*) FROM "prosperity_graphs" +Processing by Prosperity::GraphsController#create as HTML + Parameters: {"graph"=>{"graph"=>{}}} +Unpermitted parameters: graph +Unpermitted parameters: graph +Unpermitted parameters: graph +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (9.1ms) +Completed 200 OK in 408ms (Views: 400.5ms | ActiveRecord: 0.2ms) +Processing by Prosperity::GraphsController#new as HTML + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.9ms) +Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms) +  (0.1ms) BEGIN + 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-06-06 17:29:47.070862"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:47.070862"]] +  (6.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.6ms) 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-06-06 17:29:47.098508"], ["extractor", "count"], ["graph_id", 170], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-06-06 17:29:47.098508"]] +  (5.9ms) COMMIT +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"default", "metric"=>"UsersMetric", "extractor"=>"interval", "id"=>"50"}, "1"=>{"option"=>"default", "metric"=>"", "extractor"=>"change"}}}, "id"=>"170"} + Prosperity::Graph Load (0.3ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 170]] +  (0.1ms) BEGIN + Prosperity::GraphLine Load (0.4ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 AND "prosperity_graph_lines"."id" IN (50) [["graph_id", 170]] + SQL (0.2ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "metric" = $2, "option" = $3, "updated_at" = $4 WHERE "prosperity_graph_lines"."id" = 50 [["extractor", "interval"], ["metric", "UsersMetric"], ["option", "default"], ["updated_at", "2014-06-06 17:29:47.120369"]] +  (5.7ms) COMMIT +Redirected to http://test.host/prosperity/graphs/170/edit +Completed 302 Found in 20ms (ActiveRecord: 6.7ms) + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 LIMIT 1 [["id", 50]] + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 170]] +  (0.2ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 170]] +  (0.1ms) BEGIN + 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-06-06 17:29:47.133066"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:47.133066"]] +  (6.0ms) COMMIT +  (0.1ms) BEGIN + 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-06-06 17:29:47.141196"], ["extractor", "count"], ["graph_id", 171], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-06-06 17:29:47.141196"]] +  (5.0ms) COMMIT + Prosperity::GraphLine Load (0.3ms) 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", 171]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"51", "_destroy"=>true}}}, "id"=>"171"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 171]] +  (0.1ms) BEGIN + 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 (51) [["graph_id", 171]] + SQL (0.2ms) DELETE FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 [["id", 51]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/171/edit +Completed 302 Found in 5ms (ActiveRecord: 0.9ms) + Prosperity::GraphLine Load (0.3ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 51 LIMIT 1 +  (0.1ms) BEGIN + 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-06-06 17:29:47.157335"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:47.157335"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"foo", "metric"=>"bar", "extractor"=>"count"}}}, "id"=>"172"} + Prosperity::Graph Load (0.6ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 172]] +  (0.1ms) BEGIN + 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-06-06 17:29:47.164370"], ["extractor", "count"], ["graph_id", 172], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-06-06 17:29:47.164370"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/172/edit +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 172]] +  (0.2ms) SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 172]] +  (0.1ms) BEGIN + 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-06-06 17:29:47.170184"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:47.170184"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + 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-06-06 17:29:47.172324"], ["extractor", "count"], ["graph_id", 173], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-06-06 17:29:47.172324"]] +  (0.2ms) COMMIT + 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", 173]] +Processing by Prosperity::GraphsController#update as HTML + Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"53", "option"=>"new_option", "extractor"=>"interval"}}}, "id"=>"173"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 173]] +  (0.1ms) BEGIN + 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 (53) [["graph_id", 173]] + SQL (0.2ms) UPDATE "prosperity_graph_lines" SET "extractor" = $1, "option" = $2, "updated_at" = $3 WHERE "prosperity_graph_lines"."id" = 53 [["extractor", "interval"], ["option", "new_option"], ["updated_at", "2014-06-06 17:29:47.178304"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/graphs/173/edit +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 173]] + 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", 173]] +  (0.1ms) BEGIN + 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-06-06 17:29:47.183227"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:47.183227"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#edit as HTML + Parameters: {"id"=>"174"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 174]] + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.4ms) + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 174]] + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_render_graph.html.erb (0.4ms) +Completed 200 OK in 15ms (Views: 11.8ms | ActiveRecord: 0.4ms) +  (0.1ms) BEGIN + 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-06-06 17:29:47.202755"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:47.202755"]] +  (6.2ms) COMMIT +Processing by Prosperity::GraphsController#show as JSON + Parameters: {"id"=>"175"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 175]] + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 175]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) +  (0.1ms) BEGIN + 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-06-06 17:29:47.214782"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:47.214782"]] +  (6.2ms) COMMIT +  (0.1ms) BEGIN + 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-06-06 17:29:47.223125"], ["extractor", "count"], ["graph_id", 176], ["metric", "bar"], ["option", "foo"], ["updated_at", "2014-06-06 17:29:47.223125"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#show as JSON + Parameters: {"id"=>"176"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 176]] + Prosperity::GraphLine Load (0.2ms) SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 176]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (0.1ms) BEGIN + 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-06-06 17:29:47.229838"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:47.229838"]] +  (0.3ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"177"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 177]] +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms) +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"unknown_id"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 0]] +Completed 404 Not Found in 2ms (Views: 0.9ms | ActiveRecord: 0.3ms) +  (0.1ms) BEGIN + 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-06-06 17:29:47.240857"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:47.240857"]] +  (5.6ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"178"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 178]] +Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms) +  (0.1ms) BEGIN + 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-06-06 17:29:47.252888"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:47.252888"]] +  (6.2ms) COMMIT +Processing by Prosperity::GraphsController#show as HTML + Parameters: {"id"=>"179"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 179]] +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"id"=>"UsersMetric"} +Completed 400 Bad Request in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"extractor"=>"does-not-exist", "id"=>"UsersMetric"} +Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"id"=>"blah"} +Filter chain halted as :get_metric rendered or redirected +Completed 404 Not Found in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"period"=>"week", "id"=>"UsersMetric"} +  (0.5ms) 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-03-03 08:00:00.000000' AND '2014-06-09 06:59:59.999999') GROUP BY to_char(created_at, 'YYYY-WW') +Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.9ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"id"=>"UsersMetric"} +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"id"=>"UsersMetric"} +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"extractor"=>"total", "id"=>"UsersMetric"} +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"option"=>"with_1", "id"=>"UsersMetric"} +Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"period"=>"week", "start_time"=>2014-06-06 00:00:00 -0700, "end_time"=>2014-06-06 23:59:59 -0700, "id"=>"UsersMetric"} +  (0.3ms) 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-06-02 07:00:00.000000' AND '2014-06-09 06:59:59.999999') GROUP BY to_char(created_at, 'YYYY-WW') +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Processing by Prosperity::MetricsController#show as HTML + Parameters: {"id"=>"UsersMetric"} + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_render_graph.html.erb (0.1ms) + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/shared/_date_range.html.erb (0.7ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#show as JSON + Parameters: {"id"=>"UsersMetric"} +Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Processing by Prosperity::MetricsController#index as HTML +Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) + SQL (0.2ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.334227"], ["updated_at", "2014-06-06 17:29:47.338547"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.334364"], ["updated_at", "2014-06-06 17:29:47.340595"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.334437"], ["updated_at", "2014-06-06 17:29:47.341609"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.334512"], ["updated_at", "2014-06-06 17:29:47.342532"]] +  (0.3ms) COMMIT + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.345781"], ["updated_at", "2014-06-06 17:29:47.346276"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.345856"], ["updated_at", "2014-06-06 17:29:47.347350"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.345902"], ["updated_at", "2014-06-06 17:29:47.348393"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.345942"], ["updated_at", "2014-06-06 17:29:47.349334"]] +  (0.2ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.357968"], ["updated_at", "2014-06-06 17:29:47.358460"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.358035"], ["updated_at", "2014-06-06 17:29:47.359473"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.358086"], ["updated_at", "2014-06-06 17:29:47.360407"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.358132"], ["updated_at", "2014-06-06 17:29:47.361305"]] +  (0.2ms) COMMIT +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.369826"], ["updated_at", "2014-06-06 17:29:47.370265"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.369895"], ["updated_at", "2014-06-06 17:29:47.371230"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.369938"], ["updated_at", "2014-06-06 17:29:47.372113"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.369978"], ["updated_at", "2014-06-06 17:29:47.372995"]] +  (0.2ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.381871"], ["updated_at", "2014-06-06 17:29:47.382367"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.381939"], ["updated_at", "2014-06-06 17:29:47.383381"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.381981"], ["updated_at", "2014-06-06 17:29:47.384246"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.382031"], ["updated_at", "2014-06-06 17:29:47.385113"]] +  (0.2ms) COMMIT +  (0.3ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.398565"], ["updated_at", "2014-06-06 17:29:47.399086"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.398639"], ["updated_at", "2014-06-06 17:29:47.400136"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.398681"], ["updated_at", "2014-06-06 17:29:47.401056"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.398720"], ["updated_at", "2014-06-06 17:29:47.401951"]] +  (0.2ms) COMMIT +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.415404"], ["updated_at", "2014-06-06 17:29:47.415940"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.415486"], ["updated_at", "2014-06-06 17:29:47.417190"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.415533"], ["updated_at", "2014-06-06 17:29:47.418188"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.415575"], ["updated_at", "2014-06-06 17:29:47.419141"]] +  (0.3ms) COMMIT +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.428020"], ["updated_at", "2014-06-06 17:29:47.428457"]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.428080"], ["updated_at", "2014-06-06 17:29:47.429507"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.428124"], ["updated_at", "2014-06-06 17:29:47.430677"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.428161"], ["updated_at", "2014-06-06 17:29:47.432001"]] +  (0.4ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.3ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.443712"], ["updated_at", "2014-06-06 17:29:47.444235"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.443776"], ["updated_at", "2014-06-06 17:29:47.445313"]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.443814"], ["updated_at", "2014-06-06 17:29:47.446254"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.443850"], ["updated_at", "2014-06-06 17:29:47.447496"]] +  (0.2ms) COMMIT +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.456423"], ["updated_at", "2014-06-06 17:29:47.456866"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.456482"], ["updated_at", "2014-06-06 17:29:47.457933"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.456520"], ["updated_at", "2014-06-06 17:29:47.458864"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.456562"], ["updated_at", "2014-06-06 17:29:47.459800"]] +  (0.4ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.4ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.470270"], ["updated_at", "2014-06-06 17:29:47.471056"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.470385"], ["updated_at", "2014-06-06 17:29:47.472482"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.470450"], ["updated_at", "2014-06-06 17:29:47.473756"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.470509"], ["updated_at", "2014-06-06 17:29:47.474636"]] +  (0.2ms) COMMIT +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.488813"], ["updated_at", "2014-06-06 17:29:47.489301"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.488882"], ["updated_at", "2014-06-06 17:29:47.490484"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.488921"], ["updated_at", "2014-06-06 17:29:47.491494"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.488975"], ["updated_at", "2014-06-06 17:29:47.492463"]] +  (0.3ms) COMMIT +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.512051"], ["updated_at", "2014-06-06 17:29:47.512602"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.512134"], ["updated_at", "2014-06-06 17:29:47.513872"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.512178"], ["updated_at", "2014-06-06 17:29:47.514859"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.512227"], ["updated_at", "2014-06-06 17:29:47.515826"]] +  (0.4ms) COMMIT +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.524856"], ["updated_at", "2014-06-06 17:29:47.525345"]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.524924"], ["updated_at", "2014-06-06 17:29:47.526443"]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.524963"], ["updated_at", "2014-06-06 17:29:47.527372"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.525000"], ["updated_at", "2014-06-06 17:29:47.528375"]] +  (0.4ms) COMMIT +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.542613"], ["updated_at", "2014-06-06 17:29:47.543453"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.542775"], ["updated_at", "2014-06-06 17:29:47.544940"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.542839"], ["updated_at", "2014-06-06 17:29:47.546018"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.542932"], ["updated_at", "2014-06-06 17:29:47.547021"]] +  (0.3ms) COMMIT +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.6ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.560939"], ["updated_at", "2014-06-06 17:29:47.561472"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-04-06 17:29:47.561010"], ["updated_at", "2014-06-06 17:29:47.562722"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.561051"], ["updated_at", "2014-06-06 17:29:47.563803"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.561093"], ["updated_at", "2014-06-06 17:29:47.564888"]] +  (0.4ms) COMMIT +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.3ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.4ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.3ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.3ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.3ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.597339"], ["updated_at", "2014-06-06 17:29:47.598229"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.597423"], ["updated_at", "2014-06-06 17:29:47.599656"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.597464"], ["updated_at", "2014-06-06 17:29:47.600743"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.601505"], ["updated_at", "2014-06-06 17:29:47.601773"]] +  (0.2ms) COMMIT +  (0.9ms) WITH prosperity_metric_count AS ( + WITH all_columns AS (SELECT * FROM users) SELECT name, created_at FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.605993"], ["updated_at", "2014-06-06 17:29:47.606484"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.606096"], ["updated_at", "2014-06-06 17:29:47.607556"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.606136"], ["updated_at", "2014-06-06 17:29:47.608536"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.609499"], ["updated_at", "2014-06-06 17:29:47.609961"]] +  (0.5ms) COMMIT +  (0.5ms) WITH prosperity_metric_count AS ( + WITH all_columns AS (SELECT * FROM users) SELECT name, created_at FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.615883"], ["updated_at", "2014-06-06 17:29:47.616425"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.615990"], ["updated_at", "2014-06-06 17:29:47.617572"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.616032"], ["updated_at", "2014-06-06 17:29:47.619407"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.620340"], ["updated_at", "2014-06-06 17:29:47.620671"]] +  (0.2ms) COMMIT +  (0.3ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, SUM(value) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.624856"], ["updated_at", "2014-06-06 17:29:47.625372"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.624953"], ["updated_at", "2014-06-06 17:29:47.626690"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.624994"], ["updated_at", "2014-06-06 17:29:47.628304"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.629236"], ["updated_at", "2014-06-06 17:29:47.629753"]] +  (0.5ms) COMMIT +  (0.4ms) 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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.637431"], ["updated_at", "2014-06-06 17:29:47.638472"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.637601"], ["updated_at", "2014-06-06 17:29:47.640449"]] +  (0.5ms) COMMIT +  (0.2ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.637683"], ["updated_at", "2014-06-06 17:29:47.643169"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.645501"], ["updated_at", "2014-06-06 17:29:47.645947"]] +  (0.2ms) COMMIT +  (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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.650776"], ["updated_at", "2014-06-06 17:29:47.651308"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.650866"], ["updated_at", "2014-06-06 17:29:47.652508"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.650908"], ["updated_at", "2014-06-06 17:29:47.653452"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.654190"], ["updated_at", "2014-06-06 17:29:47.654507"]] +  (0.2ms) COMMIT +  (0.4ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, SUM(value) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.8ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.661207"], ["updated_at", "2014-06-06 17:29:47.662156"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.661405"], ["updated_at", "2014-06-06 17:29:47.664416"]] +  (0.6ms) COMMIT +  (0.1ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.661512"], ["updated_at", "2014-06-06 17:29:47.667594"]] +  (0.6ms) COMMIT +  (0.1ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.670172"], ["updated_at", "2014-06-06 17:29:47.670725"]] +  (0.6ms) COMMIT +  (0.5ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, MIN(value) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.678187"], ["updated_at", "2014-06-06 17:29:47.678710"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.678277"], ["updated_at", "2014-06-06 17:29:47.679884"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.678317"], ["updated_at", "2014-06-06 17:29:47.680928"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.681639"], ["updated_at", "2014-06-06 17:29:47.681916"]] +  (0.2ms) COMMIT +  (0.3ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, MAX(value) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.685777"], ["updated_at", "2014-06-06 17:29:47.686263"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.685855"], ["updated_at", "2014-06-06 17:29:47.687368"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.685896"], ["updated_at", "2014-06-06 17:29:47.688324"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.689105"], ["updated_at", "2014-06-06 17:29:47.689378"]] +  (0.2ms) COMMIT +  (0.3ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, AVG(value) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.693239"], ["updated_at", "2014-06-06 17:29:47.693732"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.693327"], ["updated_at", "2014-06-06 17:29:47.694844"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.693368"], ["updated_at", "2014-06-06 17:29:47.695835"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.696548"], ["updated_at", "2014-06-06 17:29:47.696846"]] +  (0.2ms) COMMIT +  (0.3ms) 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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.701152"], ["updated_at", "2014-06-06 17:29:47.701681"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.701231"], ["updated_at", "2014-06-06 17:29:47.702768"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.701303"], ["updated_at", "2014-06-06 17:29:47.703957"]] +  (0.6ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.706206"], ["updated_at", "2014-06-06 17:29:47.707048"]] +  (0.3ms) COMMIT +  (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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.713879"], ["updated_at", "2014-06-06 17:29:47.714778"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.714087"], ["updated_at", "2014-06-06 17:29:47.716500"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.714135"], ["updated_at", "2014-06-06 17:29:47.717664"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.718711"], ["updated_at", "2014-06-06 17:29:47.719199"]] +  (0.3ms) COMMIT +  (0.3ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.6ms) DELETE FROM "users" +  (0.2ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.724515"], ["updated_at", "2014-06-06 17:29:47.725647"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.724686"], ["updated_at", "2014-06-06 17:29:47.728379"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.724790"], ["updated_at", "2014-06-06 17:29:47.729678"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.730548"], ["updated_at", "2014-06-06 17:29:47.730870"]] +  (0.2ms) COMMIT +  (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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.736088"], ["updated_at", "2014-06-06 17:29:47.736642"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.736171"], ["updated_at", "2014-06-06 17:29:47.738112"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.736238"], ["updated_at", "2014-06-06 17:29:47.740570"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.741993"], ["updated_at", "2014-06-06 17:29:47.742677"]] +  (0.6ms) COMMIT +  (0.3ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 17:29:47.746655"], ["updated_at", "2014-06-06 17:29:47.746655"], ["value", 1]] +  (0.7ms) COMMIT +  (0.2ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 17:29:47.750490"], ["updated_at", "2014-06-06 17:29:47.750490"], ["value", 3]] +  (0.4ms) COMMIT + SQL (0.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.755673"], ["updated_at", "2014-06-06 17:29:47.756163"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.755748"], ["updated_at", "2014-06-06 17:29:47.757286"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.755789"], ["updated_at", "2014-06-06 17:29:47.758232"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.759006"], ["updated_at", "2014-06-06 17:29:47.759290"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 17:29:47.760220"], ["updated_at", "2014-06-06 17:29:47.760220"], ["value", 1]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 17:29:47.761150"], ["updated_at", "2014-06-06 17:29:47.761150"], ["value", 3]] +  (0.4ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, SUM(value) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.765599"], ["updated_at", "2014-06-06 17:29:47.766050"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.765669"], ["updated_at", "2014-06-06 17:29:47.767182"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.765710"], ["updated_at", "2014-06-06 17:29:47.768142"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.768933"], ["updated_at", "2014-06-06 17:29:47.769230"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 17:29:47.770321"], ["updated_at", "2014-06-06 17:29:47.770321"], ["value", 1]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 17:29:47.771431"], ["updated_at", "2014-06-06 17:29:47.771431"], ["value", 3]] +  (0.3ms) COMMIT +  (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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.776754"], ["updated_at", "2014-06-06 17:29:47.777323"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.776902"], ["updated_at", "2014-06-06 17:29:47.778581"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.776945"], ["updated_at", "2014-06-06 17:29:47.779643"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.780532"], ["updated_at", "2014-06-06 17:29:47.780784"]] +  (0.3ms) COMMIT +  (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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.785163"], ["updated_at", "2014-06-06 17:29:47.785649"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.785271"], ["updated_at", "2014-06-06 17:29:47.786839"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.785312"], ["updated_at", "2014-06-06 17:29:47.787759"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.788680"], ["updated_at", "2014-06-06 17:29:47.789102"]] +  (0.3ms) COMMIT +  (0.5ms) 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-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.793808"], ["updated_at", "2014-06-06 17:29:47.794285"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.793888"], ["updated_at", "2014-06-06 17:29:47.795412"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.793929"], ["updated_at", "2014-06-06 17:29:47.796336"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.797057"], ["updated_at", "2014-06-06 17:29:47.797323"]] +  (0.3ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.800632"], ["updated_at", "2014-06-06 17:29:47.801022"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.800691"], ["updated_at", "2014-06-06 17:29:47.802239"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.800731"], ["updated_at", "2014-06-06 17:29:47.803307"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.804147"], ["updated_at", "2014-06-06 17:29:47.804433"]] +  (0.3ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-MM') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-01T00:00:00Z' AND '2014-06-30T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.808561"], ["updated_at", "2014-06-06 17:29:47.809022"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.808626"], ["updated_at", "2014-06-06 17:29:47.810102"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.808688"], ["updated_at", "2014-06-06 17:29:47.811150"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.811977"], ["updated_at", "2014-06-06 17:29:47.812247"]] +  (0.3ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-WW') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-03T00:00:00Z' AND '2014-06-08T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.819176"], ["updated_at", "2014-06-06 17:29:47.819703"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.819244"], ["updated_at", "2014-06-06 17:29:47.820923"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.819283"], ["updated_at", "2014-06-06 17:29:47.821955"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.822732"], ["updated_at", "2014-06-06 17:29:47.823010"]] +  (0.3ms) COMMIT +  (0.3ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-WW') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2013-06-03T00:00:00Z' AND '2014-06-08T23:59:59Z') + GROUP BY bucket + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.829977"], ["updated_at", "2014-06-06 17:29:47.830472"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.830073"], ["updated_at", "2014-06-06 17:29:47.831562"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.830115"], ["updated_at", "2014-06-06 17:29:47.832438"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.833229"], ["updated_at", "2014-06-06 17:29:47.833471"]] +  (0.2ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-WW') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2014-05-19T00:00:00Z' AND '2014-06-08T23:59:59Z') + GROUP BY bucket + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.835983"], ["updated_at", "2014-06-06 17:29:47.836373"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.836044"], ["updated_at", "2014-06-06 17:29:47.837410"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.836083"], ["updated_at", "2014-06-06 17:29:47.838408"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 17:29:47.839130"], ["updated_at", "2014-06-06 17:29:47.839400"]] +  (0.2ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT to_char(created_at, 'YYYY-WW') AS bucket, COUNT(1) AS result + FROM prosperity_metric_count + WHERE (created_at BETWEEN '2014-05-19T00:00:00Z' AND '2014-06-08T23:59:59Z') + GROUP BY bucket + +  (0.1ms) BEGIN + SQL (0.4ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 17:29:47.846686"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:47.846686"]] +  (0.3ms) COMMIT +  (0.2ms) SELECT COUNT(*) FROM "prosperity_dashboards" +Processing by Prosperity::DashboardsController#create as HTML + Parameters: {"dashboard"=>{"title"=>"test"}} +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 17:29:47.851397"], ["default", "f"], ["title", "test"], ["updated_at", "2014-06-06 17:29:47.851397"]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/dashboards/69/edit +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.1ms) SELECT COUNT(*) FROM "prosperity_dashboards" +  (0.2ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 17:29:47.855145"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:47.855145"]] +  (0.3ms) COMMIT +Processing by Prosperity::DashboardsController#create as HTML + Parameters: {"dashboard"=>{"title"=>""}} +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.2ms) +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 17:29:47.868102"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:47.868102"]] +  (0.3ms) COMMIT +Processing by Prosperity::DashboardsController#show as HTML + Parameters: {"id"=>"71"} + Prosperity::Dashboard Load (0.3ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 71]] + Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/shared/_date_range.html.erb (0.4ms) + Prosperity::Graph Exists (0.7ms) 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", 71]] + 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", 71]] +Completed 200 OK in 24ms (Views: 21.2ms | ActiveRecord: 1.9ms) +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 17:29:47.896601"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:47.896601"]] +  (6.0ms) COMMIT +Processing by Prosperity::DashboardsController#destroy as HTML + Parameters: {"id"=>"72"} + Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 72]] +  (0.1ms) BEGIN + SQL (0.1ms) DELETE FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 [["id", 72]] +  (6.2ms) COMMIT +Redirected to http://test.host/prosperity/dashboards +Completed 302 Found in 8ms (ActiveRecord: 6.7ms) + Prosperity::Dashboard Load (0.3ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = 72 LIMIT 1 +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 17:29:47.915882"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:47.915882"]] +  (0.3ms) COMMIT +Processing by Prosperity::DashboardsController#edit as HTML + Parameters: {"id"=>"73"} + Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 73]] + Prosperity::Graph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_graphs" LIMIT 1 + 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", 73]] + Prosperity::Graph Load (0.4ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" +Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 1.0ms) +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 17:29:47.935118"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:47.935118"]] +  (0.4ms) COMMIT +Processing by Prosperity::DashboardsController#new as HTML +Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms) +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 17:29:47.942755"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:47.942755"]] +  (0.4ms) COMMIT +Processing by Prosperity::DashboardsController#index as HTML + Prosperity::Dashboard Load (0.3ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" +Completed 200 OK in 38ms (Views: 37.2ms | ActiveRecord: 0.3ms) + SQL (0.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.984848"], ["updated_at", "2014-06-06 17:29:47.985728"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.984991"], ["updated_at", "2014-06-06 17:29:47.987411"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.985059"], ["updated_at", "2014-06-06 17:29:47.988645"]] +  (0.3ms) COMMIT +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-07-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:47.997314"], ["updated_at", "2014-06-06 17:29:47.997762"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:47.997384"], ["updated_at", "2014-06-06 17:29:47.998837"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:47.997434"], ["updated_at", "2014-06-06 17:29:47.999750"]] +  (0.2ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.005209"], ["updated_at", "2014-06-06 17:29:48.005615"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.005272"], ["updated_at", "2014-06-06 17:29:48.006622"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.005315"], ["updated_at", "2014-06-06 17:29:48.007503"]] +  (0.2ms) COMMIT +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.015033"], ["updated_at", "2014-06-06 17:29:48.015430"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.015096"], ["updated_at", "2014-06-06 17:29:48.016397"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.015148"], ["updated_at", "2014-06-06 17:29:48.017339"]] +  (0.3ms) COMMIT +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.3ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.2ms) SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.034321"], ["updated_at", "2014-06-06 17:29:48.035450"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.034856"], ["updated_at", "2014-06-06 17:29:48.036899"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.034928"], ["updated_at", "2014-06-06 17:29:48.038173"]] +  (0.3ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.3ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT SUM(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.051532"], ["updated_at", "2014-06-06 17:29:48.052049"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.051610"], ["updated_at", "2014-06-06 17:29:48.053269"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.051652"], ["updated_at", "2014-06-06 17:29:48.054249"]] +  (0.3ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MIN(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.059637"], ["updated_at", "2014-06-06 17:29:48.060050"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.059694"], ["updated_at", "2014-06-06 17:29:48.061089"]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.059733"], ["updated_at", "2014-06-06 17:29:48.062027"]] +  (0.3ms) COMMIT +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT MAX(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.067906"], ["updated_at", "2014-06-06 17:29:48.068414"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.067981"], ["updated_at", "2014-06-06 17:29:48.069565"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.068022"], ["updated_at", "2014-06-06 17:29:48.070580"]] +  (0.2ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT AVG(value) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.076346"], ["updated_at", "2014-06-06 17:29:48.076829"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.076421"], ["updated_at", "2014-06-06 17:29:48.077993"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.076505"], ["updated_at", "2014-06-06 17:29:48.079174"]] +  (0.3ms) COMMIT +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.2ms) SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.087453"], ["updated_at", "2014-06-06 17:29:48.087850"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.087517"], ["updated_at", "2014-06-06 17:29:48.088884"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.087556"], ["updated_at", "2014-06-06 17:29:48.089810"]] +  (0.2ms) COMMIT +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.097888"], ["updated_at", "2014-06-06 17:29:48.098297"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.097962"], ["updated_at", "2014-06-06 17:29:48.099353"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.098001"], ["updated_at", "2014-06-06 17:29:48.100318"]] +  (0.2ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.105636"], ["updated_at", "2014-06-06 17:29:48.106027"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.105693"], ["updated_at", "2014-06-06 17:29:48.106976"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.105732"], ["updated_at", "2014-06-06 17:29:48.107875"]] +  (0.2ms) COMMIT +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.115871"], ["updated_at", "2014-06-06 17:29:48.116335"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.115939"], ["updated_at", "2014-06-06 17:29:48.117491"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.116015"], ["updated_at", "2014-06-06 17:29:48.118410"]] +  (0.2ms) COMMIT + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.121079"], ["updated_at", "2014-06-06 17:29:48.121473"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.121145"], ["updated_at", "2014-06-06 17:29:48.122529"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.121186"], ["updated_at", "2014-06-06 17:29:48.123426"]] +  (0.3ms) COMMIT +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.3ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.2ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.132401"], ["updated_at", "2014-06-06 17:29:48.132798"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.132467"], ["updated_at", "2014-06-06 17:29:48.133851"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.132507"], ["updated_at", "2014-06-06 17:29:48.134806"]] +  (0.2ms) COMMIT +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000') +  (0.1ms) SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000') + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.142899"], ["updated_at", "2014-06-06 17:29:48.143334"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.142995"], ["updated_at", "2014-06-06 17:29:48.144486"]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.143036"], ["updated_at", "2014-06-06 17:29:48.145479"]] +  (0.3ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.2ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 17:29:48.150958"], ["updated_at", "2014-06-06 17:29:48.151351"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 17:29:48.151018"], ["updated_at", "2014-06-06 17:29:48.152335"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 17:29:48.151057"], ["updated_at", "2014-06-06 17:29:48.153364"]] +  (0.3ms) COMMIT +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-07-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-08-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-09-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-10-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-11-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2013-12-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-01-01T00:00:00Z' + +  (0.2ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-02-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-03-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-04-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-05-01T00:00:00Z' + +  (0.1ms)  WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-06-01T00:00:00Z' + +  (0.1ms) WITH prosperity_metric_count AS ( + SELECT * FROM users + ) + SELECT COUNT(1) AS RESULT FROM prosperity_metric_count + WHERE created_at < '2014-07-01T00:00:00Z' + +  (0.2ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 17:29:48.160957"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:48.160957"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + 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-06-06 17:29:48.162460"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:48.162460"]] +  (0.3ms) COMMIT +Processing by Prosperity::DashboardGraphsController#create as HTML + Parameters: {"dashboard_id"=>"76", "graph_id"=>"180"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 180]] + Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 76]] +  (0.1ms) BEGIN + Prosperity::DashboardGraph Exists (0.3ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 76 AND "prosperity_dashboard_graphs"."graph_id" = 180) LIMIT 1 + 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-06-06 17:29:48.175174"], ["dashboard_id", 76], ["graph_id", 180], ["updated_at", "2014-06-06 17:29:48.175174"]] +  (5.7ms) COMMIT +Redirected to http://test.host/prosperity/dashboards/76/edit +Completed 302 Found in 17ms (ActiveRecord: 6.6ms) +  (0.3ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs" + Prosperity::DashboardGraph Load (0.2ms) SELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" ORDER BY "prosperity_dashboard_graphs"."id" DESC LIMIT 1 + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 180]] + Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 76]] +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 17:29:48.187471"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:48.187471"]] +  (5.0ms) COMMIT +  (0.1ms) BEGIN + 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-06-06 17:29:48.194036"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:48.194036"]] +  (0.4ms) COMMIT +Processing by Prosperity::DashboardGraphsController#create as HTML + Parameters: {"dashboard_id"=>"77", "graph_id"=>"181"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 181]] + Prosperity::Dashboard Load (0.2ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 77]] +  (0.1ms) BEGIN + Prosperity::DashboardGraph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 77 AND "prosperity_dashboard_graphs"."graph_id" = 181) LIMIT 1 + 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-06-06 17:29:48.198579"], ["dashboard_id", 77], ["graph_id", 181], ["updated_at", "2014-06-06 17:29:48.198579"]] +  (0.4ms) COMMIT +Redirected to http://test.host/prosperity/dashboards/77/edit +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +Processing by Prosperity::DashboardGraphsController#create as HTML + Parameters: {"dashboard_id"=>"77", "graph_id"=>"181"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 181]] + Prosperity::Dashboard Load (0.1ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 77]] +  (0.1ms) BEGIN + Prosperity::DashboardGraph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 77 AND "prosperity_dashboard_graphs"."graph_id" = 181) LIMIT 1 +  (0.1ms) ROLLBACK +Redirected to http://test.host/prosperity/dashboards/77/edit +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.1ms) BEGIN + 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-06-06 17:29:48.205693"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:48.205693"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 17:29:48.207332"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:48.207332"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + Prosperity::DashboardGraph Exists (0.2ms) SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 78 AND "prosperity_dashboard_graphs"."graph_id" = 182) LIMIT 1 + 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-06-06 17:29:48.209264"], ["dashboard_id", 78], ["graph_id", 182], ["updated_at", "2014-06-06 17:29:48.209264"]] +  (0.3ms) COMMIT +  (0.1ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs" +Processing by Prosperity::DashboardGraphsController#destroy as HTML + Parameters: {"dashboard_id"=>"78", "graph_id"=>"182"} + Prosperity::Graph Load (0.1ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 182]] + Prosperity::Dashboard Load (0.1ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 78]] + Prosperity::DashboardGraph Load (0.2ms) SELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."graph_id" = 182 AND "prosperity_dashboard_graphs"."dashboard_id" = 78 ORDER BY "prosperity_dashboard_graphs"."id" ASC LIMIT 1 +  (0.1ms) BEGIN + SQL (0.1ms) DELETE FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."id" = $1 [["id", 23]] +  (0.3ms) COMMIT +Redirected to http://test.host/prosperity/dashboards/78/edit +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (0.1ms) SELECT COUNT(*) FROM "prosperity_dashboard_graphs" +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-06-06 17:29:48.216273"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:48.216273"]] +  (0.5ms) COMMIT +  (0.1ms) BEGIN + 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-06-06 17:29:48.218056"], ["graph_type", "line"], ["period", "month"], ["title", "My Graph"], ["updated_at", "2014-06-06 17:29:48.218056"]] +  (0.3ms) COMMIT +Processing by Prosperity::DashboardGraphsController#destroy as HTML + Parameters: {"dashboard_id"=>"79", "graph_id"=>"183"} + Prosperity::Graph Load (0.2ms) SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 183]] + Prosperity::Dashboard Load (0.1ms) SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 79]] + Prosperity::DashboardGraph Load (0.2ms) SELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."graph_id" = 183 AND "prosperity_dashboard_graphs"."dashboard_id" = 79 ORDER BY "prosperity_dashboard_graphs"."id" ASC LIMIT 1 +Completed 404 Not Found in 2ms +  (8.7ms) DROP TABLE "users" +  (4.3ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"id"=>"UsersMetric"} +divided by 0 +divided by 0 +divided by 0 +Completed 400 Bad Request in 71909ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (2.0ms) DROP TABLE "users" +  (4.7ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"id"=>"UsersMetric"} +divided by 0 +["/Users/simon/Documents/rainforest/prosperity/spec/controllers/prosperity/metrics_controller_spec.rb:107:in `/'", "/Users/simon/Documents/rainforest/prosperity/spec/controllers/prosperity/metrics_controller_spec.rb:107:in `block (4 levels) in <module:Prosperity>'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/message_expectation.rb:519:in `call'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/message_expectation.rb:519:in `block in call'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/message_expectation.rb:518:in `map'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/message_expectation.rb:518:in `call'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/message_expectation.rb:186:in `invoke'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/proxy.rb:149:in `message_received'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/method_double.rb:174:in `scope'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/any_instance/recorder.rb:189:in `scope'", "/Users/simon/Documents/rainforest/prosperity/lib/prosperity/extractors/base.rb:11:in `scope'", "/Users/simon/Documents/rainforest/prosperity/lib/prosperity/extractors/interval.rb:33:in `to_a'", "/Users/simon/Documents/rainforest/prosperity/app/controllers/prosperity/metrics_controller.rb:49:in `data'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/metal/implicit_render.rb:4:in `send_action'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/abstract_controller/base.rb:189:in `process_action'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/metal/rendering.rb:10:in `process_action'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/abstract_controller/callbacks.rb:20:in `block in process_action'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:113:in `call'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:113:in `call'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:86:in `call'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:86:in `run_callbacks'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/abstract_controller/callbacks.rb:19:in `process_action'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/notifications.rb:159:in `block in instrument'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/notifications.rb:159:in `instrument'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activerecord-4.1.0/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/abstract_controller/base.rb:136:in `process'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionview-4.1.0/lib/action_view/rendering.rb:30:in `process'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/test_case.rb:595:in `process'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/test_case.rb:64:in `process'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/test_case.rb:495:in `get'", "/Users/simon/Documents/rainforest/prosperity/spec/controllers/prosperity/metrics_controller_spec.rb:109:in `block (3 levels) in <module:Prosperity>'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:114:in `instance_eval'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:114:in `block in run'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-rails-2.14.2/lib/rspec/rails/example/controller_example_group.rb:159:in `call'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-rails-2.14.2/lib/rspec/rails/example/controller_example_group.rb:159:in `block (2 levels) in <module:ControllerExampleGroup>'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:247:in `instance_eval_with_args'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:106:in `block (2 levels) in run'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:179:in `call'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:179:in `run'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-rails-2.14.2/lib/rspec/rails/adapters.rb:69:in `block (2 levels) in <module:MinitestLifecycleAdapter>'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:247:in `instance_eval_with_args'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:106:in `block (2 levels) in run'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:108:in `call'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:108:in `run'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:446:in `run_hook'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:340:in `run_around_each_hooks'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:256:in `with_around_each_hooks'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:111:in `run'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:390:in `block in run_examples'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:386:in `map'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:386:in `run_examples'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:371:in `run'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:372:in `block in run'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:372:in `map'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:372:in `run'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:28:in `map'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:28:in `block in run'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/reporter.rb:58:in `report'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:25:in `run'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:80:in `run'", "/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:17:in `block in autorun'"] +Completed 400 Bad Request in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (2.6ms) DROP TABLE "users" +  (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) +Processing by Prosperity::MetricsController#data as JSON + Parameters: {"id"=>"UsersMetric"} +divided by 0 +/Users/simon/Documents/rainforest/prosperity/spec/controllers/prosperity/metrics_controller_spec.rb:107:in `/' +/Users/simon/Documents/rainforest/prosperity/spec/controllers/prosperity/metrics_controller_spec.rb:107:in `block (4 levels) in <module:Prosperity>' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/message_expectation.rb:519:in `call' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/message_expectation.rb:519:in `block in call' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/message_expectation.rb:518:in `map' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/message_expectation.rb:518:in `call' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/message_expectation.rb:186:in `invoke' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/proxy.rb:149:in `message_received' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/method_double.rb:174:in `scope' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-mocks-2.14.6/lib/rspec/mocks/any_instance/recorder.rb:189:in `scope' +/Users/simon/Documents/rainforest/prosperity/lib/prosperity/extractors/base.rb:11:in `scope' +/Users/simon/Documents/rainforest/prosperity/lib/prosperity/extractors/interval.rb:33:in `to_a' +/Users/simon/Documents/rainforest/prosperity/app/controllers/prosperity/metrics_controller.rb:49:in `data' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/metal/implicit_render.rb:4:in `send_action' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/abstract_controller/base.rb:189:in `process_action' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/metal/rendering.rb:10:in `process_action' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/abstract_controller/callbacks.rb:20:in `block in process_action' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:113:in `call' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:113:in `call' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:86:in `call' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:86:in `run_callbacks' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/abstract_controller/callbacks.rb:19:in `process_action' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/metal/rescue.rb:29:in `process_action' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/notifications.rb:159:in `block in instrument' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activesupport-4.1.0/lib/active_support/notifications.rb:159:in `instrument' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/metal/instrumentation.rb:30:in `process_action' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/activerecord-4.1.0/lib/active_record/railties/controller_runtime.rb:18:in `process_action' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/abstract_controller/base.rb:136:in `process' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionview-4.1.0/lib/action_view/rendering.rb:30:in `process' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/test_case.rb:595:in `process' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/test_case.rb:64:in `process' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/actionpack-4.1.0/lib/action_controller/test_case.rb:495:in `get' +/Users/simon/Documents/rainforest/prosperity/spec/controllers/prosperity/metrics_controller_spec.rb:109:in `block (3 levels) in <module:Prosperity>' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:114:in `instance_eval' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:114:in `block in run' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-rails-2.14.2/lib/rspec/rails/example/controller_example_group.rb:159:in `call' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-rails-2.14.2/lib/rspec/rails/example/controller_example_group.rb:159:in `block (2 levels) in <module:ControllerExampleGroup>' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:247:in `instance_eval_with_args' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:106:in `block (2 levels) in run' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:179:in `call' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:179:in `run' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-rails-2.14.2/lib/rspec/rails/adapters.rb:69:in `block (2 levels) in <module:MinitestLifecycleAdapter>' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:247:in `instance_eval_with_args' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:106:in `block (2 levels) in run' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:108:in `call' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:108:in `run' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:446:in `run_hook' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:340:in `run_around_each_hooks' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:256:in `with_around_each_hooks' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:111:in `run' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:390:in `block in run_examples' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:386:in `map' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:386:in `run_examples' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:371:in `run' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:372:in `block in run' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:372:in `map' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/example_group.rb:372:in `run' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:28:in `map' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:28:in `block in run' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/reporter.rb:58:in `report' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:25:in `run' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:80:in `run' +/Users/simon/.rvm/gems/ruby-2.1.1@prosperity/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:17:in `block in autorun' +Completed 400 Bad Request in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (25.5ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  +  (3.9ms) DROP TABLE "users" +  (4.2ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +  (3.7ms) DROP TABLE "users" +  (4.8ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) +  (3.1ms) DROP TABLE "users" +  (4.2ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) + SQL (0.9ms) DELETE FROM "users" +  (0.3ms) BEGIN + SQL (6.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 21:56:54.552972"], ["updated_at", "2014-06-06 21:56:54.597641"]] +  (5.8ms) COMMIT +  (0.1ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 21:56:54.553346"], ["updated_at", "2014-06-06 21:56:54.615342"]] +  (5.8ms) COMMIT +  (0.2ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 21:56:54.553420"], ["updated_at", "2014-06-06 21:56:54.623132"]] +  (0.6ms) COMMIT +  (0.2ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 21:56:54.625549"], ["updated_at", "2014-06-06 21:56:54.626556"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 21:56:54.628490"], ["updated_at", "2014-06-06 21:56:54.628490"], ["value", 1]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 21:56:54.630466"], ["updated_at", "2014-06-06 21:56:54.630466"], ["value", 3]] +  (0.3ms) COMMIT +  (2.3ms) DROP TABLE "users" +  (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) + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 21:57:57.921722"], ["updated_at", "2014-06-06 21:57:57.930902"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 21:57:57.921902"], ["updated_at", "2014-06-06 21:57:57.935779"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 21:57:57.921949"], ["updated_at", "2014-06-06 21:57:57.936946"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 21:57:57.937720"], ["updated_at", "2014-06-06 21:57:57.938062"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 21:57:57.939077"], ["updated_at", "2014-06-06 21:57:57.939077"], ["value", 1]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 21:57:57.940251"], ["updated_at", "2014-06-06 21:57:57.940251"], ["value", 3]] +  (0.2ms) COMMIT + User Load (4.0ms) SELECT SUM(value) FROM "users" WHERE (created_at BETWEEN '2013-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') +  (8.9ms) DROP TABLE "users" +  (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) + SQL (0.9ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 21:58:40.057210"], ["updated_at", "2014-06-06 21:58:40.067701"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 21:58:40.057520"], ["updated_at", "2014-06-06 21:58:40.071828"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 21:58:40.057594"], ["updated_at", "2014-06-06 21:58:40.073050"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 21:58:40.073961"], ["updated_at", "2014-06-06 21:58:40.074436"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 21:58:40.075922"], ["updated_at", "2014-06-06 21:58:40.075922"], ["value", 1]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 21:58:40.077346"], ["updated_at", "2014-06-06 21:58:40.077346"], ["value", 3]] +  (0.3ms) COMMIT +PG::GroupingError: ERROR: column "users.id" must appear in the GROUP BY clause or be used in an aggregate function +LINE 1: SELECT "users".* FROM "users" WHERE (created_at BETWEEN '20... + ^ +: SELECT "users".* FROM "users" WHERE (created_at BETWEEN '2013-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') +PG::GroupingError: ERROR: column "users.id" must appear in the GROUP BY clause or be used in an aggregate function +LINE 1: SELECT "users".* FROM "users" WHERE (created_at BETWEEN '20... + ^ +: SELECT "users".* FROM "users" WHERE (created_at BETWEEN '2013-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') +  (2.3ms) DROP TABLE "users" +  (4.2ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 22:05:37.961486"], ["updated_at", "2014-06-06 22:05:37.970488"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 22:05:37.961665"], ["updated_at", "2014-06-06 22:05:37.975976"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 22:05:37.961714"], ["updated_at", "2014-06-06 22:05:37.977169"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 22:05:37.978115"], ["updated_at", "2014-06-06 22:05:37.978498"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:05:37.979590"], ["updated_at", "2014-06-06 22:05:37.979590"], ["value", 1]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:05:37.980722"], ["updated_at", "2014-06-06 22:05:37.980722"], ["value", 3]] +  (0.2ms) COMMIT +  (9.1ms) DROP TABLE "users" +  (4.5ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 22:05:57.125437"], ["updated_at", "2014-06-06 22:05:57.140022"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 22:05:57.125706"], ["updated_at", "2014-06-06 22:05:57.144020"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 22:05:57.125812"], ["updated_at", "2014-06-06 22:05:57.145133"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 22:05:57.145878"], ["updated_at", "2014-06-06 22:05:57.146188"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:05:57.147246"], ["updated_at", "2014-06-06 22:05:57.147246"], ["value", 1]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:05:57.148360"], ["updated_at", "2014-06-06 22:05:57.148360"], ["value", 3]] +  (0.3ms) COMMIT +  (2.7ms) DROP TABLE "users" +  (6.4ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) + SQL (0.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 22:06:11.578862"], ["updated_at", "2014-06-06 22:06:11.588899"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 22:06:11.579033"], ["updated_at", "2014-06-06 22:06:11.593245"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 22:06:11.579082"], ["updated_at", "2014-06-06 22:06:11.595095"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 22:06:11.596327"], ["updated_at", "2014-06-06 22:06:11.596940"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:06:11.598432"], ["updated_at", "2014-06-06 22:06:11.598432"], ["value", 1]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:06:11.599594"], ["updated_at", "2014-06-06 22:06:11.599594"], ["value", 3]] +  (0.3ms) COMMIT + User Load (1.7ms) SELECT SUM(value), to_char(created_at, 'YYYY-MM') FROM "users" WHERE (created_at BETWEEN '2013-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') +  (1.9ms) DROP TABLE "users" +  (4.6ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 22:06:45.929247"], ["updated_at", "2014-06-06 22:06:45.940515"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 22:06:45.929421"], ["updated_at", "2014-06-06 22:06:45.944630"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 22:06:45.929466"], ["updated_at", "2014-06-06 22:06:45.945761"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 22:06:45.946512"], ["updated_at", "2014-06-06 22:06:45.946798"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:06:45.947718"], ["updated_at", "2014-06-06 22:06:45.947718"], ["value", 1]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:06:45.948758"], ["updated_at", "2014-06-06 22:06:45.948758"], ["value", 3]] +  (0.3ms) COMMIT + User Load (1.6ms) SELECT SUM(value), to_char(created_at, 'YYYY-MM') FROM "users" WHERE (created_at BETWEEN '2013-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') +  (8.9ms) DROP TABLE "users" +  (4.5ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) + SQL (0.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 22:07:20.230608"], ["updated_at", "2014-06-06 22:07:20.241180"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 22:07:20.230848"], ["updated_at", "2014-06-06 22:07:20.244899"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 22:07:20.230915"], ["updated_at", "2014-06-06 22:07:20.245979"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 22:07:20.246741"], ["updated_at", "2014-06-06 22:07:20.247044"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:07:20.248008"], ["updated_at", "2014-06-06 22:07:20.248008"], ["value", 1]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:07:20.249055"], ["updated_at", "2014-06-06 22:07:20.249055"], ["value", 3]] +  (0.2ms) COMMIT +  (8.7ms) DROP TABLE "users" +  (4.5ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) + SQL (0.4ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 22:07:29.417005"], ["updated_at", "2014-06-06 22:07:29.428216"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 22:07:29.417265"], ["updated_at", "2014-06-06 22:07:29.432019"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 22:07:29.417357"], ["updated_at", "2014-06-06 22:07:29.433404"]] +  (0.4ms) COMMIT +  (0.2ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 22:07:29.434552"], ["updated_at", "2014-06-06 22:07:29.435658"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:07:29.437312"], ["updated_at", "2014-06-06 22:07:29.437312"], ["value", 1]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:07:29.438453"], ["updated_at", "2014-06-06 22:07:29.438453"], ["value", 3]] +  (0.4ms) COMMIT + User Load (1.9ms) SELECT SUM(value) FROM "users" WHERE (created_at BETWEEN '2013-06-01 00:00:00.000000' AND '2014-06-30 23:59:59.999999') GROUP BY to_char(created_at, 'YYYY-MM') +  (8.6ms) DROP TABLE "users" +  (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) + SQL (0.3ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 22:08:12.086856"], ["updated_at", "2014-06-06 22:08:12.097316"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 22:08:12.087040"], ["updated_at", "2014-06-06 22:08:12.101329"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 22:08:12.087096"], ["updated_at", "2014-06-06 22:08:12.102539"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 22:08:12.103484"], ["updated_at", "2014-06-06 22:08:12.104033"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:08:12.105549"], ["updated_at", "2014-06-06 22:08:12.105549"], ["value", 1]] +  (0.5ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:08:12.108620"], ["updated_at", "2014-06-06 22:08:12.108620"], ["value", 3]] +  (0.2ms) COMMIT +  (2.6ms) DROP TABLE "users" +  (4.3ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) + SQL (0.3ms) DELETE FROM "users" +  (0.2ms) BEGIN + SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 22:09:17.762921"], ["updated_at", "2014-06-06 22:09:17.774071"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 22:09:17.763099"], ["updated_at", "2014-06-06 22:09:17.778639"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 22:09:17.763149"], ["updated_at", "2014-06-06 22:09:17.780395"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 22:09:17.781485"], ["updated_at", "2014-06-06 22:09:17.781818"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:09:17.782860"], ["updated_at", "2014-06-06 22:09:17.782860"], ["value", 1]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:09:17.784197"], ["updated_at", "2014-06-06 22:09:17.784197"], ["value", 3]] +  (0.5ms) COMMIT +  (2.2ms) DROP TABLE "users" +  (4.4ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) + SQL (1.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 22:10:24.503637"], ["updated_at", "2014-06-06 22:10:24.513573"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 22:10:24.503879"], ["updated_at", "2014-06-06 22:10:24.518393"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 22:10:24.503962"], ["updated_at", "2014-06-06 22:10:24.519535"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 22:10:24.520298"], ["updated_at", "2014-06-06 22:10:24.520592"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:10:24.521520"], ["updated_at", "2014-06-06 22:10:24.521520"], ["value", 1]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:10:24.522621"], ["updated_at", "2014-06-06 22:10:24.522621"], ["value", 3]] +  (0.2ms) COMMIT +  (8.5ms) DROP TABLE "users" +  (4.4ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) + SQL (0.5ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 22:11:16.479695"], ["updated_at", "2014-06-06 22:11:16.490883"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 22:11:16.479960"], ["updated_at", "2014-06-06 22:11:16.495044"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 22:11:16.480049"], ["updated_at", "2014-06-06 22:11:16.496217"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 22:11:16.497003"], ["updated_at", "2014-06-06 22:11:16.497333"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:11:16.498279"], ["updated_at", "2014-06-06 22:11:16.498279"], ["value", 1]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:11:16.501074"], ["updated_at", "2014-06-06 22:11:16.501074"], ["value", 3]] +  (0.2ms) COMMIT +  (2.8ms) DROP TABLE "users" +  (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) + SQL (0.4ms) DELETE FROM "users" +  (0.2ms) BEGIN + SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 22:12:10.942596"], ["updated_at", "2014-06-06 22:12:10.952871"]] +  (0.4ms) COMMIT +  (0.1ms) BEGIN + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 22:12:10.942793"], ["updated_at", "2014-06-06 22:12:10.956717"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 22:12:10.942844"], ["updated_at", "2014-06-06 22:12:10.957905"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 22:12:10.958717"], ["updated_at", "2014-06-06 22:12:10.959003"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:12:10.959978"], ["updated_at", "2014-06-06 22:12:10.959978"], ["value", 1]] +  (0.3ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:12:10.961102"], ["updated_at", "2014-06-06 22:12:10.961102"], ["value", 3]] +  (0.3ms) COMMIT +  (2.8ms) DROP TABLE "users" +  (5.1ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) + SQL (1.1ms) DELETE FROM "users" +  (0.1ms) BEGIN + SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2012-06-06 22:18:06.753462"], ["updated_at", "2014-06-06 22:18:06.762425"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-06 22:18:06.753766"], ["updated_at", "2014-06-06 22:18:06.766208"]] +  (0.3ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-06 22:18:06.753820"], ["updated_at", "2014-06-06 22:18:06.767290"]] +  (0.2ms) COMMIT +  (0.1ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-05-30 22:18:06.768034"], ["updated_at", "2014-06-06 22:18:06.768322"]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:18:06.769227"], ["updated_at", "2014-06-06 22:18:06.769227"], ["value", 1]] +  (0.2ms) COMMIT +  (0.0ms) BEGIN + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-06-06 22:18:06.770235"], ["updated_at", "2014-06-06 22:18:06.770235"], ["value", 3]] +  (0.2ms) COMMIT