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 @@
[1m[36mProsperity::Dashboard Load (0.2ms)[0m [1mSELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1[0m [["id", 55]]
[1m[35mProsperity::Graph Exists (0.2ms)[0m SELECT 1 AS one FROM "prosperity_graphs" LIMIT 1
[1m[36mProsperity::Graph Load (0.3ms)[0m [1mSELECT "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[0m [["dashboard_id", 55]]
[1m[35mProsperity::Graph Load (0.3ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs"
Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 1.0ms)
+ [1m[36m (17.7ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (46.4ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (23.4ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (12.8ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.5ms)[0m 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"}
+ [1m[36mProsperity::Graph Load (7.7ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 116]]
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 AND "prosperity_graph_lines"."id" IN (25)[0m [["graph_id", 116]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (5.7ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/116/edit
+Completed 302 Found in 29ms (ActiveRecord: 14.2ms)
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 LIMIT 1 [["id", 25]]
+ [1m[36mProsperity::Graph Load (0.2ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 116]]
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 116]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (5.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["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"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 117]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::GraphLine Load (0.1ms)[0m 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]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "prosperity_graph_lines" SET "extractor" = $1, "option" = $2, "updated_at" = $3 WHERE "prosperity_graph_lines"."id" = 26[0m [["extractor", "interval"], ["option", "new_option"], ["updated_at", "2014-05-27 02:47:43.815545"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Redirected to http://test.host/prosperity/graphs/117/edit
+Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
+ [1m[36mProsperity::Graph Load (0.1ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 117]]
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"foo", "metric"=>"bar", "extractor"=>"count"}}}, "id"=>"118"}
+ [1m[35mProsperity::Graph Load (0.7ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 118]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/118/edit
+Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 118]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 118]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Processing by Prosperity::GraphsController#edit as HTML
+ Parameters: {"id"=>"119"}
+ [1m[36mProsperity::Graph Load (0.1ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 119]]
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (17.6ms)
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m 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)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "prosperity_graphs"[0m
+Processing by Prosperity::GraphsController#create as HTML
+ Parameters: {"graph"=>{"title"=>"My Graph", "period"=>"month", "graph_type"=>"line"}}
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (6.1ms)[0m COMMIT
+Redirected to http://test.host/prosperity/graphs/120/edit
+Completed 302 Found in 9ms (ActiveRecord: 6.4ms)
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "prosperity_graphs"[0m
+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)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (6.3ms)[0m COMMIT
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"121"}
+ [1m[36mProsperity::Graph Load (0.3ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 121]]
+Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.3ms)
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"unknown_id"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (6.2ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"122"}
+ [1m[35mProsperity::Graph Load (0.3ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (6.2ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"123"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m COMMIT
+Processing by Prosperity::GraphsController#show as JSON
+ Parameters: {"id"=>"124"}
+ [1m[36mProsperity::Graph Load (0.1ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 124]]
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (6.1ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as JSON
+ Parameters: {"id"=>"125"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 125]]
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 125]]
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+ [1m[36m (2.3ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.9ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as JSON
+ Parameters: {"id"=>"126"}
+ [1m[35mProsperity::Graph Load (0.3ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 126]]
+ [1m[36mProsperity::GraphLine Load (0.3ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 126]]
+Completed 200 OK in 15ms (Views: 0.3ms | ActiveRecord: 1.1ms)
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as JSON
+ Parameters: {"id"=>"127"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 127]]
+ [1m[36mProsperity::GraphLine Load (0.1ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 127]]
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"128"}
+ [1m[36mProsperity::Graph Load (0.2ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 128]]
+Completed 200 OK in 18ms (Views: 17.6ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m COMMIT
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"129"}
+ [1m[36mProsperity::Graph Load (0.4ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 129]]
+Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m COMMIT
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"130"}
+ [1m[36mProsperity::Graph Load (0.2ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 130]]
+Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"unknown_id"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m 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)
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["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"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 131]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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]]
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "prosperity_graph_lines" SET "extractor" = $1, "option" = $2, "updated_at" = $3 WHERE "prosperity_graph_lines"."id" = 30[0m [["extractor", "interval"], ["option", "new_option"], ["updated_at", "2014-05-27 02:47:50.978451"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Redirected to http://test.host/prosperity/graphs/131/edit
+Completed 302 Found in 7ms (ActiveRecord: 1.0ms)
+ [1m[36mProsperity::Graph Load (0.1ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 131]]
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"foo", "metric"=>"bar", "extractor"=>"count"}}}, "id"=>"132"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 132]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/132/edit
+Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
+ [1m[35mProsperity::Graph Load (0.1ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 132]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 132]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+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"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 133]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "prosperity_graph_lines" SET "extractor" = $1, "metric" = $2, "option" = $3, "updated_at" = $4 WHERE "prosperity_graph_lines"."id" = 32[0m [["extractor", "interval"], ["metric", "UsersMetric"], ["option", "default"], ["updated_at", "2014-05-27 02:47:50.998023"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Redirected to http://test.host/prosperity/graphs/133/edit
+Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 LIMIT 1[0m [["id", 32]]
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 133]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 133]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "prosperity_graphs"
+Processing by Prosperity::GraphsController#create as HTML
+ Parameters: {"graph"=>{"title"=>"My Graph", "period"=>"month", "graph_type"=>"line"}}
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/134/edit
+Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "prosperity_graphs"
+Processing by Prosperity::GraphsController#create as HTML
+ Parameters: {"graph"=>{"graph"=>{}}}
+Unpermitted parameters: graph
+Unpermitted parameters: graph
+Unpermitted parameters: graph
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m 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)
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#edit as HTML
+ Parameters: {"id"=>"135"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m 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)
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 135]]
+Completed 200 OK in 19ms (Views: 11.2ms | ActiveRecord: 0.4ms)
+ [1m[36m (8.1ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.3ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36mProsperity::GraphLine Load (0.4ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["graph_id", 136]]
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"33", "_destroy"=>true}}}, "id"=>"136"}
+ [1m[35mProsperity::Graph Load (0.3ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 136]]
+Unpermitted parameters: _destroy
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/136/edit
+Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 33 LIMIT 1
+ [1m[36m (8.6ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (5.4ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36mProsperity::GraphLine Load (0.3ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["graph_id", 137]]
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"34", "_destroy"=>true}}}, "id"=>"137"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 137]]
+Unpermitted parameters: _destroy
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/137/edit
+Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 34 LIMIT 1
+ [1m[36m (1.8ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.6ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.6ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36mProsperity::GraphLine Load (0.3ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["graph_id", 138]]
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"35", "_destroy"=>"1"}}}, "id"=>"138"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 138]]
+Unpermitted parameters: _destroy
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/138/edit
+Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 35 LIMIT 1
+ [1m[36m (8.5ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (3.9ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36mProsperity::GraphLine Load (0.3ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["graph_id", 139]]
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"36", "_destroy"=>true}}}, "id"=>"139"}
+ [1m[35mProsperity::Graph Load (0.3ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 139]]
+Unpermitted parameters: _destroy
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::GraphLine Load (0.4ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/139/edit
+Completed 302 Found in 10ms (ActiveRecord: 1.0ms)
+ [1m[35mProsperity::GraphLine Load (0.3ms)[0m SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 36 LIMIT 1
+ [1m[36m (8.6ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.5ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.9ms)[0m COMMIT
+ [1m[36mProsperity::GraphLine Load (0.4ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["graph_id", 140]]
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"37", "_destroy"=>true}}}, "id"=>"140"}
+ [1m[35mProsperity::Graph Load (0.3ms)[0m 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)
+ [1m[36m (3.0ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (3.6ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36mProsperity::GraphLine Load (0.3ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["graph_id", 141]]
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"38", "_destroy"=>true}}}, "id"=>"141"}
+ [1m[35mProsperity::Graph Load (0.3ms)[0m 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)
+ [1m[36m (2.3ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.1ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36mProsperity::GraphLine Load (0.4ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["graph_id", 142]]
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"39", "_destroy"=>true}}}, "id"=>"142"}
+ [1m[35mProsperity::Graph Load (0.3ms)[0m 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)
+ [1m[36m (2.5ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.1ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as JSON
+ Parameters: {"id"=>"143"}
+ [1m[35mProsperity::Graph Load (0.4ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 143]]
+ [1m[36mProsperity::GraphLine Load (0.3ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 143]]
+Completed 200 OK in 20ms (Views: 0.3ms | ActiveRecord: 1.5ms)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as JSON
+ Parameters: {"id"=>"144"}
+ [1m[35mProsperity::Graph Load (0.3ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 144]]
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 144]]
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"145"}
+ [1m[36mProsperity::Graph Load (0.5ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 145]]
+Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.5ms)
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"unknown_id"}
+ [1m[35mProsperity::Graph Load (0.4ms)[0m 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)
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.7ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"146"}
+ [1m[35mProsperity::Graph Load (0.3ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"147"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#edit as HTML
+ Parameters: {"id"=>"148"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m 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)
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 148]]
+Completed 200 OK in 31ms (Views: 25.3ms | ActiveRecord: 0.4ms)
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "prosperity_graphs"
+Processing by Prosperity::GraphsController#create as HTML
+ Parameters: {"graph"=>{"title"=>"My Graph", "period"=>"month", "graph_type"=>"line"}}
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/149/edit
+Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "prosperity_graphs"
+Processing by Prosperity::GraphsController#create as HTML
+ Parameters: {"graph"=>{"graph"=>{}}}
+Unpermitted parameters: graph
+Unpermitted parameters: graph
+Unpermitted parameters: graph
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m 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"}
+ [1m[36mProsperity::Graph Load (0.2ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 150]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 AND "prosperity_graph_lines"."id" IN (41)[0m [["graph_id", 150]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/150/edit
+Completed 302 Found in 9ms (ActiveRecord: 1.1ms)
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 LIMIT 1 [["id", 41]]
+ [1m[36mProsperity::Graph Load (0.1ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 150]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 150]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["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"}
+ [1m[35mProsperity::Graph Load (0.3ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 151]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "prosperity_graph_lines" SET "extractor" = $1, "option" = $2, "updated_at" = $3 WHERE "prosperity_graph_lines"."id" = 42[0m [["extractor", "interval"], ["option", "new_option"], ["updated_at", "2014-05-27 02:54:55.884749"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Redirected to http://test.host/prosperity/graphs/151/edit
+Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
+ [1m[36mProsperity::Graph Load (0.1ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 151]]
+ [1m[35mProsperity::GraphLine Load (0.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["graph_id", 152]]
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"43", "_destroy"=>true}}}, "id"=>"152"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 152]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::GraphLine Load (0.1ms)[0m 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]]
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1[0m [["id", 43]]
+ [1m[35m (0.3ms)[0m COMMIT
+Redirected to http://test.host/prosperity/graphs/152/edit
+Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
+ [1m[36mProsperity::GraphLine Load (0.1ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 43 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m COMMIT
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"foo", "metric"=>"bar", "extractor"=>"count"}}}, "id"=>"153"}
+ [1m[36mProsperity::Graph Load (0.1ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 153]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m COMMIT
+Redirected to http://test.host/prosperity/graphs/153/edit
+Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
+ [1m[36mProsperity::Graph Load (0.1ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 153]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 153]]
+ [1m[36m (31.2ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (48.8ms)[0m 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"}
+ [1m[36m (2.4ms)[0m [1mSELECT 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')[0m
+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"}
+ [1m[35m (0.4ms)[0m 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)
+ [1m[36m (14.1ms)[0m [1mSELECT COUNT(*) FROM "prosperity_dashboard_graphs"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (18.2ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 16:47:24.176439"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.176439"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (2.7ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::DashboardGraphsController#create as HTML
+ Parameters: {"dashboard_id"=>"56", "graph_id"=>"154"}
+ [1m[35mProsperity::Graph Load (0.9ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 154]]
+ [1m[36mProsperity::Dashboard Load (0.2ms)[0m [1mSELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1[0m [["id", 56]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mProsperity::DashboardGraph Exists (6.8ms)[0m [1mSELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 56 AND "prosperity_dashboard_graphs"."graph_id" = 154) LIMIT 1[0m
+ [1m[35mSQL (17.8ms)[0m 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"]]
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/dashboards/56/edit
+Completed 302 Found in 53ms (ActiveRecord: 26.3ms)
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "prosperity_dashboard_graphs"
+ [1m[36mProsperity::DashboardGraph Load (0.4ms)[0m [1mSELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" ORDER BY "prosperity_dashboard_graphs"."id" DESC LIMIT 1[0m
+ [1m[35mProsperity::Graph Load (0.3ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 154]]
+ [1m[36mProsperity::Dashboard Load (0.2ms)[0m [1mSELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1[0m [["id", 56]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 16:47:24.277269"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.277269"]]
+ [1m[35m (6.1ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (6.1ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::DashboardGraphsController#create as HTML
+ Parameters: {"dashboard_id"=>"57", "graph_id"=>"155"}
+ [1m[35mProsperity::Graph Load (0.3ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 155]]
+ [1m[36mProsperity::Dashboard Load (0.2ms)[0m [1mSELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1[0m [["id", 57]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mProsperity::DashboardGraph Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 57 AND "prosperity_dashboard_graphs"."graph_id" = 155) LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+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"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 155]]
+ [1m[36mProsperity::Dashboard Load (0.1ms)[0m [1mSELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1[0m [["id", 57]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mProsperity::DashboardGraph Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 57 AND "prosperity_dashboard_graphs"."graph_id" = 155) LIMIT 1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+Redirected to http://test.host/prosperity/dashboards/57/edit
+Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 16:47:24.309414"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.309414"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::DashboardGraph Exists (0.2ms)[0m SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 58 AND "prosperity_dashboard_graphs"."graph_id" = 156) LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 16:47:24.311576"], ["dashboard_id", 58], ["graph_id", 156], ["updated_at", "2014-06-06 16:47:24.311576"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "prosperity_dashboard_graphs"[0m
+Processing by Prosperity::DashboardGraphsController#destroy as HTML
+ Parameters: {"dashboard_id"=>"58", "graph_id"=>"156"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 156]]
+ [1m[36mProsperity::Dashboard Load (0.1ms)[0m [1mSELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1[0m [["id", 58]]
+ [1m[35mProsperity::DashboardGraph Load (0.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."id" = $1 [["id", 20]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/dashboards/58/edit
+Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "prosperity_dashboard_graphs"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (6.1ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (6.1ms)[0m COMMIT
+Processing by Prosperity::DashboardGraphsController#destroy as HTML
+ Parameters: {"dashboard_id"=>"59", "graph_id"=>"157"}
+ [1m[36mProsperity::Graph Load (0.3ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 157]]
+ [1m[35mProsperity::Dashboard Load (0.2ms)[0m SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 59]]
+ [1m[36mProsperity::DashboardGraph Load (0.3ms)[0m [1mSELECT "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[0m
+Completed 404 Not Found in 2ms
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.345775"], ["updated_at", "2014-06-06 16:47:24.351569"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.353620"], ["updated_at", "2014-06-06 16:47:24.353989"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (2.2ms)[0m [1mSELECT 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')[0m
+ [1m[35mSQL (0.6ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.362846"], ["updated_at", "2014-06-06 16:47:24.364573"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.366329"], ["updated_at", "2014-06-06 16:47:24.366625"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.9ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.370971"], ["updated_at", "2014-06-06 16:47:24.372331"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.373905"], ["updated_at", "2014-06-06 16:47:24.374162"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.377668"], ["updated_at", "2014-06-06 16:47:24.378967"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.380699"], ["updated_at", "2014-06-06 16:47:24.380971"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.384444"], ["updated_at", "2014-06-06 16:47:24.385744"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.387306"], ["updated_at", "2014-06-06 16:47:24.387548"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mSELECT 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')[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.392178"], ["updated_at", "2014-06-06 16:47:24.393592"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.395184"], ["updated_at", "2014-06-06 16:47:24.395461"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mSELECT 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')[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.400235"], ["updated_at", "2014-06-06 16:47:24.401654"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.403311"], ["updated_at", "2014-06-06 16:47:24.403571"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT 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')[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.408046"], ["updated_at", "2014-06-06 16:47:24.409460"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.412244"], ["updated_at", "2014-06-06 16:47:24.412645"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mSELECT 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')[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.417215"], ["updated_at", "2014-06-06 16:47:24.418791"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.420430"], ["updated_at", "2014-06-06 16:47:24.420789"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.5ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.425357"], ["updated_at", "2014-06-06 16:47:24.426925"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.428488"], ["updated_at", "2014-06-06 16:47:24.428752"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.432742"], ["updated_at", "2014-06-06 16:47:24.434317"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.435920"], ["updated_at", "2014-06-06 16:47:24.436321"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.440333"], ["updated_at", "2014-06-06 16:47:24.441766"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.444334"], ["updated_at", "2014-06-06 16:47:24.444792"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mSELECT 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')[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.449173"], ["updated_at", "2014-06-06 16:47:24.450722"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.452384"], ["updated_at", "2014-06-06 16:47:24.452668"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT 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')[0m
+ [1m[35mSQL (0.6ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.457687"], ["updated_at", "2014-06-06 16:47:24.459412"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.461054"], ["updated_at", "2014-06-06 16:47:24.461329"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.464879"], ["updated_at", "2014-06-06 16:47:24.466584"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.468349"], ["updated_at", "2014-06-06 16:47:24.468623"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.472527"], ["updated_at", "2014-06-06 16:47:24.473970"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.475693"], ["updated_at", "2014-06-06 16:47:24.475955"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35mSQL (6.0ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (5.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.488939"], ["updated_at", "2014-06-06 16:47:24.496334"]]
+ [1m[35m (6.0ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (4.9ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.509263"], ["updated_at", "2014-06-06 16:47:24.509846"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.516930"], ["updated_at", "2014-06-06 16:47:24.518660"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.520838"], ["updated_at", "2014-06-06 16:47:24.521167"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.523894"], ["updated_at", "2014-06-06 16:47:24.525250"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.527164"], ["updated_at", "2014-06-06 16:47:24.527445"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.530502"], ["updated_at", "2014-06-06 16:47:24.531898"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.533462"], ["updated_at", "2014-06-06 16:47:24.533720"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.537025"], ["updated_at", "2014-06-06 16:47:24.538420"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.540049"], ["updated_at", "2014-06-06 16:47:24.540304"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.544342"], ["updated_at", "2014-06-06 16:47:24.546263"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.548151"], ["updated_at", "2014-06-06 16:47:24.548417"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 16:47:24.550638"], ["updated_at", "2014-06-06 16:47:24.550638"], ["value", 3]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mSELECT 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')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users"
+ [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 16:47:24.555358"], ["updated_at", "2014-06-06 16:47:24.556034"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 16:47:24.555525"], ["updated_at", "2014-06-06 16:47:24.558332"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 16:47:24.560323"], ["updated_at", "2014-06-06 16:47:24.560323"], ["value", 1]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.564566"], ["updated_at", "2014-06-06 16:47:24.566047"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 16:47:24.567660"], ["updated_at", "2014-06-06 16:47:24.567918"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 16:47:24.569744"], ["updated_at", "2014-06-06 16:47:24.569744"], ["value", 3]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::DashboardsController#index as HTML
+ [1m[35mProsperity::Dashboard Load (0.3ms)[0m SELECT "prosperity_dashboards".* FROM "prosperity_dashboards"
+Completed 200 OK in 32ms (Views: 31.4ms | ActiveRecord: 0.3ms)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::DashboardsController#show as HTML
+ Parameters: {"id"=>"61"}
+ [1m[35mProsperity::Dashboard Load (0.1ms)[0m 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)
+ [1m[36mProsperity::Graph Exists (0.4ms)[0m [1mSELECT 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[0m [["dashboard_id", 61]]
+ [1m[35mProsperity::Graph Load (0.2ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (5.5ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::DashboardsController#edit as HTML
+ Parameters: {"id"=>"62"}
+ [1m[35mProsperity::Dashboard Load (0.2ms)[0m SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 62]]
+ [1m[36mProsperity::Graph Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "prosperity_graphs" LIMIT 1[0m
+ [1m[35mProsperity::Graph Load (0.3ms)[0m 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]]
+ [1m[36mProsperity::Graph Load (0.5ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs"[0m
+Completed 200 OK in 21ms (Views: 18.5ms | ActiveRecord: 1.3ms)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 16:47:24.672989"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.672989"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "prosperity_dashboards"[0m
+Processing by Prosperity::DashboardsController#create as HTML
+ Parameters: {"dashboard"=>{"title"=>"test"}}
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 16:47:24.677283"], ["default", "f"], ["title", "test"], ["updated_at", "2014-06-06 16:47:24.677283"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Redirected to http://test.host/prosperity/dashboards/64/edit
+Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "prosperity_dashboards"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 16:47:24.681020"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.681020"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Processing by Prosperity::DashboardsController#create as HTML
+ Parameters: {"dashboard"=>{"title"=>""}}
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (6.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::DashboardsController#new as HTML
+Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 16:47:24.714250"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 16:47:24.714250"]]
+ [1m[35m (5.1ms)[0m COMMIT
+Processing by Prosperity::DashboardsController#destroy as HTML
+ Parameters: {"id"=>"67"}
+ [1m[36mProsperity::Dashboard Load (0.2ms)[0m [1mSELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1[0m [["id", 67]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1[0m [["id", 67]]
+ [1m[35m (0.4ms)[0m COMMIT
+Redirected to http://test.host/prosperity/dashboards
+Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
+ [1m[36mProsperity::Dashboard Load (0.2ms)[0m [1mSELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = 67 LIMIT 1[0m
+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)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (6.1ms)[0m COMMIT
+Processing by Prosperity::GraphsController#edit as HTML
+ Parameters: {"id"=>"158"}
+ [1m[36mProsperity::Graph Load (0.2ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 158]]
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.3ms)
+ [1m[35mProsperity::GraphLine Load (2.2ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (6.0ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as JSON
+ Parameters: {"id"=>"159"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 159]]
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 159]]
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (6.1ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (1.7ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as JSON
+ Parameters: {"id"=>"160"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 160]]
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 160]]
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"161"}
+ [1m[36mProsperity::Graph Load (0.2ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 161]]
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m COMMIT
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"162"}
+ [1m[36mProsperity::Graph Load (0.1ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 162]]
+Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"unknown_id"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"163"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m 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)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "prosperity_graphs"[0m
+Processing by Prosperity::GraphsController#create as HTML
+ Parameters: {"graph"=>{"title"=>"My Graph", "period"=>"month", "graph_type"=>"line"}}
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Redirected to http://test.host/prosperity/graphs/164/edit
+Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "prosperity_graphs"[0m
+Processing by Prosperity::GraphsController#create as HTML
+ Parameters: {"graph"=>{"graph"=>{}}}
+Unpermitted parameters: graph
+Unpermitted parameters: graph
+Unpermitted parameters: graph
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ 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)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.4ms)[0m COMMIT
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"foo", "metric"=>"bar", "extractor"=>"count"}}}, "id"=>"165"}
+ [1m[36mProsperity::Graph Load (0.1ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 165]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Redirected to http://test.host/prosperity/graphs/165/edit
+Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
+ [1m[36mProsperity::Graph Load (0.2ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 165]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 165]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m 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"}
+ [1m[36mProsperity::Graph Load (0.1ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 166]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 AND "prosperity_graph_lines"."id" IN (47)[0m [["graph_id", 166]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/166/edit
+Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 LIMIT 1 [["id", 47]]
+ [1m[36mProsperity::Graph Load (0.1ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 166]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 [["graph_id", 166]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["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"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 167]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "prosperity_graph_lines" SET "extractor" = $1, "option" = $2, "updated_at" = $3 WHERE "prosperity_graph_lines"."id" = 48[0m [["extractor", "interval"], ["option", "new_option"], ["updated_at", "2014-06-06 16:47:24.865634"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Redirected to http://test.host/prosperity/graphs/167/edit
+Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
+ [1m[36mProsperity::Graph Load (0.1ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 167]]
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_graph_lines" ("created_at", "extractor", "graph_id", "metric", "option", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["graph_id", 168]]
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"id"=>"49", "_destroy"=>true}}}, "id"=>"168"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 168]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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]]
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1[0m [["id", 49]]
+ [1m[35m (0.3ms)[0m COMMIT
+Redirected to http://test.host/prosperity/graphs/168/edit
+Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 49 LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.890186"], ["updated_at", "2014-06-06 16:47:24.892043"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.6ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.902269"], ["updated_at", "2014-06-06 16:47:24.903908"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.910964"], ["updated_at", "2014-06-06 16:47:24.912500"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.919263"], ["updated_at", "2014-06-06 16:47:24.920672"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.927085"], ["updated_at", "2014-06-06 16:47:24.928446"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.938321"], ["updated_at", "2014-06-06 16:47:24.939965"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.948823"], ["updated_at", "2014-06-06 16:47:24.950274"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.960398"], ["updated_at", "2014-06-06 16:47:24.961816"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.971939"], ["updated_at", "2014-06-06 16:47:24.973474"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.980286"], ["updated_at", "2014-06-06 16:47:24.981848"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.988193"], ["updated_at", "2014-06-06 16:47:24.989509"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:24.997902"], ["updated_at", "2014-06-06 16:47:24.999327"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:25.008225"], ["updated_at", "2014-06-06 16:47:25.009620"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:25.019345"], ["updated_at", "2014-06-06 16:47:25.021111"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:25.027909"], ["updated_at", "2014-06-06 16:47:25.029226"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:25.035810"], ["updated_at", "2014-06-06 16:47:25.037140"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:25.048143"], ["updated_at", "2014-06-06 16:47:25.049838"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35mSQL (0.5ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 16:47:25.057615"], ["updated_at", "2014-06-06 16:47:25.059686"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 16:47:25.057703"], ["updated_at", "2014-06-06 16:47:25.062322"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 16:47:25.075814"], ["updated_at", "2014-06-06 16:47:25.076364"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:25.075928"], ["updated_at", "2014-06-06 16:47:25.078650"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 16:47:25.088396"], ["updated_at", "2014-06-06 16:47:25.089819"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 16:47:25.088476"], ["updated_at", "2014-06-06 16:47:25.091567"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 16:47:25.100882"], ["updated_at", "2014-06-06 16:47:25.101460"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:25.100994"], ["updated_at", "2014-06-06 16:47:25.103643"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 16:47:25.113819"], ["updated_at", "2014-06-06 16:47:25.115315"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 16:47:25.113900"], ["updated_at", "2014-06-06 16:47:25.117090"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.3ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.3ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.3ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.3ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 16:47:25.134295"], ["updated_at", "2014-06-06 16:47:25.134815"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:25.134402"], ["updated_at", "2014-06-06 16:47:25.136857"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.5ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 16:47:25.152950"], ["updated_at", "2014-06-06 16:47:25.154840"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 16:47:25.153057"], ["updated_at", "2014-06-06 16:47:25.156800"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 16:47:25.170932"], ["updated_at", "2014-06-06 16:47:25.171459"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:25.171046"], ["updated_at", "2014-06-06 16:47:25.173568"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 16:47:25.189130"], ["updated_at", "2014-06-06 16:47:25.190720"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 16:47:25.189210"], ["updated_at", "2014-06-06 16:47:25.192470"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 16:47:25.201589"], ["updated_at", "2014-06-06 16:47:25.202097"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:25.201696"], ["updated_at", "2014-06-06 16:47:25.204216"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 16:47:25.214130"], ["updated_at", "2014-06-06 16:47:25.215588"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 16:47:25.214213"], ["updated_at", "2014-06-06 16:47:25.217502"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 16:47:25.226730"], ["updated_at", "2014-06-06 16:47:25.227254"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:25.226853"], ["updated_at", "2014-06-06 16:47:25.229124"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 16:47:25.234189"], ["updated_at", "2014-06-06 16:47:25.235883"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 16:47:25.234268"], ["updated_at", "2014-06-06 16:47:25.237778"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 16:47:25.251867"], ["updated_at", "2014-06-06 16:47:25.252384"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:25.251981"], ["updated_at", "2014-06-06 16:47:25.254290"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 16:47:25.278684"], ["updated_at", "2014-06-06 16:47:25.281328"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 16:47:25.278776"], ["updated_at", "2014-06-06 16:47:25.284707"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.3ms)[0m 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'
+
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 16:47:25.296007"], ["updated_at", "2014-06-06 16:47:25.297145"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 16:47:25.296656"], ["updated_at", "2014-06-06 16:47:25.300445"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[36m (7.2ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (6.3ms)[0m 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
+ [1m[36m (2.0ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (3.8ms)[0m 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
+ [1m[36m (8.2ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (5.1ms)[0m 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)
+ [1m[36m (4.4ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.8ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "prosperity_graphs"[0m
+Processing by Prosperity::GraphsController#create as HTML
+ Parameters: {"graph"=>{"title"=>"My Graph", "period"=>"month", "graph_type"=>"line"}}
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (5.9ms)[0m COMMIT
+Redirected to http://test.host/prosperity/graphs/169/edit
+Completed 302 Found in 17ms (ActiveRecord: 6.5ms)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "prosperity_graphs"[0m
+Processing by Prosperity::GraphsController#create as HTML
+ Parameters: {"graph"=>{"graph"=>{}}}
+Unpermitted parameters: graph
+Unpermitted parameters: graph
+Unpermitted parameters: graph
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ 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)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (6.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.6ms)[0m 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"]]
+ [1m[36m (5.9ms)[0m [1mCOMMIT[0m
+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"}
+ [1m[35mProsperity::Graph Load (0.3ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 170]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::GraphLine Load (0.4ms)[0m 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]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "prosperity_graph_lines" SET "extractor" = $1, "metric" = $2, "option" = $3, "updated_at" = $4 WHERE "prosperity_graph_lines"."id" = 50[0m [["extractor", "interval"], ["metric", "UsersMetric"], ["option", "default"], ["updated_at", "2014-06-06 17:29:47.120369"]]
+ [1m[35m (5.7ms)[0m COMMIT
+Redirected to http://test.host/prosperity/graphs/170/edit
+Completed 302 Found in 20ms (ActiveRecord: 6.7ms)
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 LIMIT 1[0m [["id", 50]]
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 170]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 170]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (6.0ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (5.0ms)[0m [1mCOMMIT[0m
+ [1m[35mProsperity::GraphLine Load (0.3ms)[0m 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"}
+ [1m[36mProsperity::Graph Load (0.2ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 171]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 AND "prosperity_graph_lines"."id" IN (51)[0m [["graph_id", 171]]
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = $1 [["id", 51]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/171/edit
+Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
+ [1m[35mProsperity::GraphLine Load (0.3ms)[0m SELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."id" = 51 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#update as HTML
+ Parameters: {"graph"=>{"graph_lines_attributes"=>{"0"=>{"option"=>"foo", "metric"=>"bar", "extractor"=>"count"}}}, "id"=>"172"}
+ [1m[35mProsperity::Graph Load (0.6ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 172]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/172/edit
+Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 172]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 172]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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"}
+ [1m[36mProsperity::Graph Load (0.2ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 173]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 AND "prosperity_graph_lines"."id" IN (53)[0m [["graph_id", 173]]
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/graphs/173/edit
+Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
+ [1m[35mProsperity::Graph Load (0.1ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 173]]
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1 ORDER BY "prosperity_graph_lines"."id" ASC LIMIT 1[0m [["graph_id", 173]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Processing by Prosperity::GraphsController#edit as HTML
+ Parameters: {"id"=>"174"}
+ [1m[36mProsperity::Graph Load (0.2ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 174]]
+ Rendered /Users/simon/Documents/rainforest/prosperity/app/views/prosperity/graphs/_common_fields.html.erb (1.4ms)
+ [1m[35mProsperity::GraphLine Load (0.2ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (6.2ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as JSON
+ Parameters: {"id"=>"175"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 175]]
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 175]]
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (6.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as JSON
+ Parameters: {"id"=>"176"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 176]]
+ [1m[36mProsperity::GraphLine Load (0.2ms)[0m [1mSELECT "prosperity_graph_lines".* FROM "prosperity_graph_lines" WHERE "prosperity_graph_lines"."graph_id" = $1[0m [["graph_id", 176]]
+Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"177"}
+ [1m[36mProsperity::Graph Load (0.2ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 177]]
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"unknown_id"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (5.6ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"178"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (6.2ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::GraphsController#show as HTML
+ Parameters: {"id"=>"179"}
+ [1m[35mProsperity::Graph Load (0.2ms)[0m 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"}
+ [1m[36m (0.5ms)[0m [1mSELECT 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')[0m
+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"}
+ [1m[35m (0.3ms)[0m 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)
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.334227"], ["updated_at", "2014-06-06 17:29:47.338547"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.334437"], ["updated_at", "2014-06-06 17:29:47.341609"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 17:29:47.345856"], ["updated_at", "2014-06-06 17:29:47.347350"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.345942"], ["updated_at", "2014-06-06 17:29:47.349334"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.357968"], ["updated_at", "2014-06-06 17:29:47.358460"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.358086"], ["updated_at", "2014-06-06 17:29:47.360407"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 17:29:47.369895"], ["updated_at", "2014-06-06 17:29:47.371230"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.369978"], ["updated_at", "2014-06-06 17:29:47.372995"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.381871"], ["updated_at", "2014-06-06 17:29:47.382367"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.381981"], ["updated_at", "2014-06-06 17:29:47.384246"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 17:29:47.398639"], ["updated_at", "2014-06-06 17:29:47.400136"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.398720"], ["updated_at", "2014-06-06 17:29:47.401951"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.415404"], ["updated_at", "2014-06-06 17:29:47.415940"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.415533"], ["updated_at", "2014-06-06 17:29:47.418188"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.3ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 17:29:47.428080"], ["updated_at", "2014-06-06 17:29:47.429507"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.428161"], ["updated_at", "2014-06-06 17:29:47.432001"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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'
+[0m
+ [1m[35m (0.3ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.443712"], ["updated_at", "2014-06-06 17:29:47.444235"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.443814"], ["updated_at", "2014-06-06 17:29:47.446254"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.3ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 17:29:47.456482"], ["updated_at", "2014-06-06 17:29:47.457933"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.456562"], ["updated_at", "2014-06-06 17:29:47.459800"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.4ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.470270"], ["updated_at", "2014-06-06 17:29:47.471056"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.470450"], ["updated_at", "2014-06-06 17:29:47.473756"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 17:29:47.488882"], ["updated_at", "2014-06-06 17:29:47.490484"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.488975"], ["updated_at", "2014-06-06 17:29:47.492463"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.512051"], ["updated_at", "2014-06-06 17:29:47.512602"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.512178"], ["updated_at", "2014-06-06 17:29:47.514859"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 17:29:47.524924"], ["updated_at", "2014-06-06 17:29:47.526443"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.525000"], ["updated_at", "2014-06-06 17:29:47.528375"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.542613"], ["updated_at", "2014-06-06 17:29:47.543453"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.542839"], ["updated_at", "2014-06-06 17:29:47.546018"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35mSQL (0.6ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-04-06 17:29:47.561010"], ["updated_at", "2014-06-06 17:29:47.562722"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.561093"], ["updated_at", "2014-06-06 17:29:47.564888"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-05-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')[0m
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.597339"], ["updated_at", "2014-06-06 17:29:47.598229"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.597464"], ["updated_at", "2014-06-06 17:29:47.600743"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.9ms)[0m 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
+
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.605993"], ["updated_at", "2014-06-06 17:29:47.606484"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.606136"], ["updated_at", "2014-06-06 17:29:47.608536"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m 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
+
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.615883"], ["updated_at", "2014-06-06 17:29:47.616425"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.616032"], ["updated_at", "2014-06-06 17:29:47.619407"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m 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
+
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.624856"], ["updated_at", "2014-06-06 17:29:47.625372"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.624994"], ["updated_at", "2014-06-06 17:29:47.628304"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m 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')
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.637431"], ["updated_at", "2014-06-06 17:29:47.638472"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.637683"], ["updated_at", "2014-06-06 17:29:47.643169"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m 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')
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.650776"], ["updated_at", "2014-06-06 17:29:47.651308"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.650908"], ["updated_at", "2014-06-06 17:29:47.653452"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m 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
+
+ [1m[36mSQL (0.8ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.661207"], ["updated_at", "2014-06-06 17:29:47.662156"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36m (0.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.661512"], ["updated_at", "2014-06-06 17:29:47.667594"]]
+ [1m[35m (0.6ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36m (0.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.5ms)[0m 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
+
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.678187"], ["updated_at", "2014-06-06 17:29:47.678710"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.678317"], ["updated_at", "2014-06-06 17:29:47.680928"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m 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
+
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.685777"], ["updated_at", "2014-06-06 17:29:47.686263"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.685896"], ["updated_at", "2014-06-06 17:29:47.688324"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m 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
+
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.693239"], ["updated_at", "2014-06-06 17:29:47.693732"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.693368"], ["updated_at", "2014-06-06 17:29:47.695835"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m 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')
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.701152"], ["updated_at", "2014-06-06 17:29:47.701681"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.701303"], ["updated_at", "2014-06-06 17:29:47.703957"]]
+ [1m[35m (0.6ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m 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')
+ [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.713879"], ["updated_at", "2014-06-06 17:29:47.714778"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.714135"], ["updated_at", "2014-06-06 17:29:47.717664"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m 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
+
+ [1m[36mSQL (0.6ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.724515"], ["updated_at", "2014-06-06 17:29:47.725647"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.724790"], ["updated_at", "2014-06-06 17:29:47.729678"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m 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')
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.736088"], ["updated_at", "2014-06-06 17:29:47.736642"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.736238"], ["updated_at", "2014-06-06 17:29:47.740570"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.6ms)[0m 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"]]
+ [1m[36m (0.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 17:29:47.746655"], ["updated_at", "2014-06-06 17:29:47.746655"], ["value", 1]]
+ [1m[35m (0.7ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35mSQL (0.5ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.755748"], ["updated_at", "2014-06-06 17:29:47.757286"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 17:29:47.759006"], ["updated_at", "2014-06-06 17:29:47.759290"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 17:29:47.761150"], ["updated_at", "2014-06-06 17:29:47.761150"], ["value", 3]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users"
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.765599"], ["updated_at", "2014-06-06 17:29:47.766050"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.765710"], ["updated_at", "2014-06-06 17:29:47.768142"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 17:29:47.770321"], ["updated_at", "2014-06-06 17:29:47.770321"], ["value", 1]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m 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')
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users"[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.776902"], ["updated_at", "2014-06-06 17:29:47.778581"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 17:29:47.780532"], ["updated_at", "2014-06-06 17:29:47.780784"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT 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')[0m
+ [1m[35mSQL (0.5ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.785271"], ["updated_at", "2014-06-06 17:29:47.786839"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 17:29:47.788680"], ["updated_at", "2014-06-06 17:29:47.789102"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.5ms)[0m [1mSELECT 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')[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.793888"], ["updated_at", "2014-06-06 17:29:47.795412"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 17:29:47.797057"], ["updated_at", "2014-06-06 17:29:47.797323"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.800691"], ["updated_at", "2014-06-06 17:29:47.802239"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 17:29:47.804147"], ["updated_at", "2014-06-06 17:29:47.804433"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.808626"], ["updated_at", "2014-06-06 17:29:47.810102"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 17:29:47.811977"], ["updated_at", "2014-06-06 17:29:47.812247"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.819244"], ["updated_at", "2014-06-06 17:29:47.820923"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 17:29:47.822732"], ["updated_at", "2014-06-06 17:29:47.823010"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.4ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.830073"], ["updated_at", "2014-06-06 17:29:47.831562"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 17:29:47.833229"], ["updated_at", "2014-06-06 17:29:47.833471"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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
+[0m
+ [1m[35mSQL (0.3ms)[0m DELETE FROM "users"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-06 17:29:47.836044"], ["updated_at", "2014-06-06 17:29:47.837410"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-05-30 17:29:47.839130"], ["updated_at", "2014-06-06 17:29:47.839400"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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
+[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 17:29:47.846686"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:47.846686"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "prosperity_dashboards"[0m
+Processing by Prosperity::DashboardsController#create as HTML
+ Parameters: {"dashboard"=>{"title"=>"test"}}
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 17:29:47.851397"], ["default", "f"], ["title", "test"], ["updated_at", "2014-06-06 17:29:47.851397"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Redirected to http://test.host/prosperity/dashboards/69/edit
+Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "prosperity_dashboards"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 17:29:47.855145"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:47.855145"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Processing by Prosperity::DashboardsController#create as HTML
+ Parameters: {"dashboard"=>{"title"=>""}}
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::DashboardsController#show as HTML
+ Parameters: {"id"=>"71"}
+ [1m[35mProsperity::Dashboard Load (0.3ms)[0m 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)
+ [1m[36mProsperity::Graph Exists (0.7ms)[0m [1mSELECT 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[0m [["dashboard_id", 71]]
+ [1m[35mProsperity::Graph Load (0.3ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (6.0ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::DashboardsController#destroy as HTML
+ Parameters: {"id"=>"72"}
+ [1m[35mProsperity::Dashboard Load (0.2ms)[0m SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 72]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m DELETE FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 [["id", 72]]
+ [1m[36m (6.2ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/dashboards
+Completed 302 Found in 8ms (ActiveRecord: 6.7ms)
+ [1m[35mProsperity::Dashboard Load (0.3ms)[0m SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = 72 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::DashboardsController#edit as HTML
+ Parameters: {"id"=>"73"}
+ [1m[35mProsperity::Dashboard Load (0.2ms)[0m SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 73]]
+ [1m[36mProsperity::Graph Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "prosperity_graphs" LIMIT 1[0m
+ [1m[35mProsperity::Graph Load (0.3ms)[0m 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]]
+ [1m[36mProsperity::Graph Load (0.4ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs"[0m
+Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 1.0ms)
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 17:29:47.935118"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:47.935118"]]
+ [1m[35m (0.4ms)[0m COMMIT
+Processing by Prosperity::DashboardsController#new as HTML
+Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::DashboardsController#index as HTML
+ [1m[35mProsperity::Dashboard Load (0.3ms)[0m SELECT "prosperity_dashboards".* FROM "prosperity_dashboards"
+Completed 200 OK in 38ms (Views: 37.2ms | ActiveRecord: 0.3ms)
+ [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.984848"], ["updated_at", "2014-06-06 17:29:47.985728"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.985059"], ["updated_at", "2014-06-06 17:29:47.988645"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (1 = 2) AND (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:47.997314"], ["updated_at", "2014-06-06 17:29:47.997762"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:47.997434"], ["updated_at", "2014-06-06 17:29:47.999750"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.005209"], ["updated_at", "2014-06-06 17:29:48.005615"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.005315"], ["updated_at", "2014-06-06 17:29:48.007503"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT AVG("users"."value") AS avg_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.015033"], ["updated_at", "2014-06-06 17:29:48.015430"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.015148"], ["updated_at", "2014-06-06 17:29:48.017339"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.3ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT SUM("users"."value") AS sum_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.034321"], ["updated_at", "2014-06-06 17:29:48.035450"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.034928"], ["updated_at", "2014-06-06 17:29:48.038173"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.3ms)[0m 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'
+
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.051532"], ["updated_at", "2014-06-06 17:29:48.052049"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.051652"], ["updated_at", "2014-06-06 17:29:48.054249"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.059637"], ["updated_at", "2014-06-06 17:29:48.060050"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.059733"], ["updated_at", "2014-06-06 17:29:48.062027"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.067906"], ["updated_at", "2014-06-06 17:29:48.068414"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.068022"], ["updated_at", "2014-06-06 17:29:48.070580"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.076346"], ["updated_at", "2014-06-06 17:29:48.076829"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.076505"], ["updated_at", "2014-06-06 17:29:48.079174"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MIN("users"."value") AS min_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.087453"], ["updated_at", "2014-06-06 17:29:48.087850"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.087556"], ["updated_at", "2014-06-06 17:29:48.089810"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.097888"], ["updated_at", "2014-06-06 17:29:48.098297"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.098001"], ["updated_at", "2014-06-06 17:29:48.100318"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.105636"], ["updated_at", "2014-06-06 17:29:48.106027"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.105732"], ["updated_at", "2014-06-06 17:29:48.107875"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT MAX("users"."value") AS max_id FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.115871"], ["updated_at", "2014-06-06 17:29:48.116335"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.116015"], ["updated_at", "2014-06-06 17:29:48.118410"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.121079"], ["updated_at", "2014-06-06 17:29:48.121473"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.121186"], ["updated_at", "2014-06-06 17:29:48.123426"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.132401"], ["updated_at", "2014-06-06 17:29:48.132798"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.132507"], ["updated_at", "2014-06-06 17:29:48.134806"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-07-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-08-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-09-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-10-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2013-11-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2013-12-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-01-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-02-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-03-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-04-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-05-01 00:00:00.000000')
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE (created_at < '2014-06-01 00:00:00.000000')[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE (created_at < '2014-07-01 00:00:00.000000')
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.142899"], ["updated_at", "2014-06-06 17:29:48.143334"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.143036"], ["updated_at", "2014-06-06 17:29:48.145479"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m 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'
+
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 17:29:48.150958"], ["updated_at", "2014-06-06 17:29:48.151351"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 17:29:48.151057"], ["updated_at", "2014-06-06 17:29:48.153364"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "prosperity_dashboard_graphs"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 17:29:48.160957"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:48.160957"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::DashboardGraphsController#create as HTML
+ Parameters: {"dashboard_id"=>"76", "graph_id"=>"180"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 180]]
+ [1m[36mProsperity::Dashboard Load (0.2ms)[0m [1mSELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1[0m [["id", 76]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mProsperity::DashboardGraph Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 76 AND "prosperity_dashboard_graphs"."graph_id" = 180) LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (5.7ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/dashboards/76/edit
+Completed 302 Found in 17ms (ActiveRecord: 6.6ms)
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "prosperity_dashboard_graphs"
+ [1m[36mProsperity::DashboardGraph Load (0.2ms)[0m [1mSELECT "prosperity_dashboard_graphs".* FROM "prosperity_dashboard_graphs" ORDER BY "prosperity_dashboard_graphs"."id" DESC LIMIT 1[0m
+ [1m[35mProsperity::Graph Load (0.2ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 180]]
+ [1m[36mProsperity::Dashboard Load (0.2ms)[0m [1mSELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1[0m [["id", 76]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 17:29:48.187471"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:48.187471"]]
+ [1m[35m (5.0ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+Processing by Prosperity::DashboardGraphsController#create as HTML
+ Parameters: {"dashboard_id"=>"77", "graph_id"=>"181"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 181]]
+ [1m[36mProsperity::Dashboard Load (0.2ms)[0m [1mSELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1[0m [["id", 77]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mProsperity::DashboardGraph Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 77 AND "prosperity_dashboard_graphs"."graph_id" = 181) LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+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"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 181]]
+ [1m[36mProsperity::Dashboard Load (0.1ms)[0m [1mSELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1[0m [["id", 77]]
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mProsperity::DashboardGraph Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 77 AND "prosperity_dashboard_graphs"."graph_id" = 181) LIMIT 1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+Redirected to http://test.host/prosperity/dashboards/77/edit
+Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_dashboards" ("created_at", "default", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 17:29:48.207332"], ["default", "f"], ["title", "My Dashboard"], ["updated_at", "2014-06-06 17:29:48.207332"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mProsperity::DashboardGraph Exists (0.2ms)[0m SELECT 1 AS one FROM "prosperity_dashboard_graphs" WHERE ("prosperity_dashboard_graphs"."dashboard_id" = 78 AND "prosperity_dashboard_graphs"."graph_id" = 182) LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_dashboard_graphs" ("created_at", "dashboard_id", "graph_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2014-06-06 17:29:48.209264"], ["dashboard_id", 78], ["graph_id", 182], ["updated_at", "2014-06-06 17:29:48.209264"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "prosperity_dashboard_graphs"[0m
+Processing by Prosperity::DashboardGraphsController#destroy as HTML
+ Parameters: {"dashboard_id"=>"78", "graph_id"=>"182"}
+ [1m[35mProsperity::Graph Load (0.1ms)[0m SELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1 [["id", 182]]
+ [1m[36mProsperity::Dashboard Load (0.1ms)[0m [1mSELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1[0m [["id", 78]]
+ [1m[35mProsperity::DashboardGraph Load (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m DELETE FROM "prosperity_dashboard_graphs" WHERE "prosperity_dashboard_graphs"."id" = $1 [["id", 23]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Redirected to http://test.host/prosperity/dashboards/78/edit
+Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "prosperity_dashboard_graphs"
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "prosperity_graphs" ("created_at", "graph_type", "period", "title", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.3ms)[0m COMMIT
+Processing by Prosperity::DashboardGraphsController#destroy as HTML
+ Parameters: {"dashboard_id"=>"79", "graph_id"=>"183"}
+ [1m[36mProsperity::Graph Load (0.2ms)[0m [1mSELECT "prosperity_graphs".* FROM "prosperity_graphs" WHERE "prosperity_graphs"."id" = $1 LIMIT 1[0m [["id", 183]]
+ [1m[35mProsperity::Dashboard Load (0.1ms)[0m SELECT "prosperity_dashboards".* FROM "prosperity_dashboards" WHERE "prosperity_dashboards"."id" = $1 LIMIT 1 [["id", 79]]
+ [1m[36mProsperity::DashboardGraph Load (0.2ms)[0m [1mSELECT "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[0m
+Completed 404 Not Found in 2ms
+ [1m[36m (8.7ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.3ms)[0m 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)
+ [1m[36m (2.0ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.7ms)[0m 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)
+ [1m[36m (2.6ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (3.5ms)[0m 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)
+ [1m[36m (25.5ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[36m (3.9ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.2ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (3.7ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.8ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (3.1ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.2ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.9ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mSQL (6.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 21:56:54.552972"], ["updated_at", "2014-06-06 21:56:54.597641"]]
+ [1m[35m (5.8ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (5.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 21:56:54.553420"], ["updated_at", "2014-06-06 21:56:54.623132"]]
+ [1m[35m (0.6ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 21:56:54.628490"], ["updated_at", "2014-06-06 21:56:54.628490"], ["value", 1]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[36m (2.3ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (3.8ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 21:57:57.921722"], ["updated_at", "2014-06-06 21:57:57.930902"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 21:57:57.921949"], ["updated_at", "2014-06-06 21:57:57.936946"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 21:57:57.939077"], ["updated_at", "2014-06-06 21:57:57.939077"], ["value", 1]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35mUser Load (4.0ms)[0m 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')
+ [1m[36m (8.9ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (5.2ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.9ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 21:58:40.057210"], ["updated_at", "2014-06-06 21:58:40.067701"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 21:58:40.057594"], ["updated_at", "2014-06-06 21:58:40.073050"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 21:58:40.075922"], ["updated_at", "2014-06-06 21:58:40.075922"], ["value", 1]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+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')
+ [1m[36m (2.3ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.2ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 22:05:37.961486"], ["updated_at", "2014-06-06 22:05:37.970488"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 22:05:37.961714"], ["updated_at", "2014-06-06 22:05:37.977169"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 22:05:37.979590"], ["updated_at", "2014-06-06 22:05:37.979590"], ["value", 1]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[36m (9.1ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.5ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 22:05:57.125437"], ["updated_at", "2014-06-06 22:05:57.140022"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 22:05:57.125812"], ["updated_at", "2014-06-06 22:05:57.145133"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 22:05:57.147246"], ["updated_at", "2014-06-06 22:05:57.147246"], ["value", 1]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[36m (2.7ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (6.4ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 22:06:11.578862"], ["updated_at", "2014-06-06 22:06:11.588899"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 22:06:11.579082"], ["updated_at", "2014-06-06 22:06:11.595095"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 22:06:11.598432"], ["updated_at", "2014-06-06 22:06:11.598432"], ["value", 1]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35mUser Load (1.7ms)[0m 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')
+ [1m[36m (1.9ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.6ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 22:06:45.929247"], ["updated_at", "2014-06-06 22:06:45.940515"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 22:06:45.929466"], ["updated_at", "2014-06-06 22:06:45.945761"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 22:06:45.947718"], ["updated_at", "2014-06-06 22:06:45.947718"], ["value", 1]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35mUser Load (1.6ms)[0m 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')
+ [1m[36m (8.9ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.5ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 22:07:20.230608"], ["updated_at", "2014-06-06 22:07:20.241180"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 22:07:20.230915"], ["updated_at", "2014-06-06 22:07:20.245979"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 22:07:20.248008"], ["updated_at", "2014-06-06 22:07:20.248008"], ["value", 1]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[36m (8.7ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.5ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 22:07:29.417005"], ["updated_at", "2014-06-06 22:07:29.428216"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 22:07:29.417357"], ["updated_at", "2014-06-06 22:07:29.433404"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 22:07:29.437312"], ["updated_at", "2014-06-06 22:07:29.437312"], ["value", 1]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35mUser Load (1.9ms)[0m 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')
+ [1m[36m (8.6ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (3.6ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 22:08:12.086856"], ["updated_at", "2014-06-06 22:08:12.097316"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 22:08:12.087096"], ["updated_at", "2014-06-06 22:08:12.102539"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 22:08:12.105549"], ["updated_at", "2014-06-06 22:08:12.105549"], ["value", 1]]
+ [1m[35m (0.5ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[36m (2.6ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.3ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 22:09:17.762921"], ["updated_at", "2014-06-06 22:09:17.774071"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 22:09:17.763149"], ["updated_at", "2014-06-06 22:09:17.780395"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 22:09:17.782860"], ["updated_at", "2014-06-06 22:09:17.782860"], ["value", 1]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.5ms)[0m [1mCOMMIT[0m
+ [1m[36m (2.2ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.4ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (1.5ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 22:10:24.503637"], ["updated_at", "2014-06-06 22:10:24.513573"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 22:10:24.503962"], ["updated_at", "2014-06-06 22:10:24.519535"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 22:10:24.521520"], ["updated_at", "2014-06-06 22:10:24.521520"], ["value", 1]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[36m (8.5ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (4.4ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.5ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 22:11:16.479695"], ["updated_at", "2014-06-06 22:11:16.490883"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 22:11:16.480049"], ["updated_at", "2014-06-06 22:11:16.496217"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 22:11:16.498279"], ["updated_at", "2014-06-06 22:11:16.498279"], ["value", 1]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[36m (2.8ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (5.2ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 22:12:10.942596"], ["updated_at", "2014-06-06 22:12:10.952871"]]
+ [1m[35m (0.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 22:12:10.942844"], ["updated_at", "2014-06-06 22:12:10.957905"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 22:12:10.959978"], ["updated_at", "2014-06-06 22:12:10.959978"], ["value", 1]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[36m (2.8ms)[0m [1mDROP TABLE "users"[0m
+ [1m[35m (5.1ms)[0m CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "name" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mSQL (1.1ms)[0m [1mDELETE FROM "users"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2012-06-06 22:18:06.753462"], ["updated_at", "2014-06-06 22:18:06.762425"]]
+ [1m[35m (0.3ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2014-07-06 22:18:06.753820"], ["updated_at", "2014-06-06 22:18:06.767290"]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.0ms)[0m BEGIN
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "value") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-06-06 22:18:06.769227"], ["updated_at", "2014-06-06 22:18:06.769227"], ["value", 1]]
+ [1m[35m (0.2ms)[0m COMMIT
+ [1m[36m (0.0ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.1ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m