best_boy 2.0.0 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/README.md +13 -2
  2. data/Rakefile +0 -12
  3. data/app/controllers/best_boy/best_boy_events_controller.rb +12 -14
  4. data/lib/best_boy/models/active_record/best_boy_day_report.rb +8 -6
  5. data/lib/best_boy/models/active_record/best_boy_month_report.rb +5 -1
  6. data/lib/best_boy/version.rb +1 -1
  7. data/lib/tasks/recover_report_history.rake +4 -4
  8. data/spec/dummy/db/development.sqlite3 +0 -0
  9. data/spec/dummy/db/test.sqlite3 +0 -0
  10. data/spec/dummy/tmp/cache/assets/development/sass/{f99cb4f6f36f128b2d6950c813eec72c66616bfc → 4a6e68811662121fe1049014c3677ece8bd5de12}/bootstrap.scssc +0 -0
  11. data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  12. data/spec/dummy/tmp/cache/assets/development/sprockets/207d5e64e2cebd2453c18bd64d2961e9 +0 -0
  13. data/spec/dummy/tmp/cache/assets/development/sprockets/{3a5f8aba9c98833836df55cdc5502ee8 → 2b348013eb6ff07d5c30fbd231f48ead} +0 -0
  14. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  15. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  16. data/spec/dummy/tmp/cache/assets/development/sprockets/{42804a4f90448633879c06a33e49f4e6 → 385fe425643c1aa4f6d65ff6562e536e} +0 -0
  17. data/spec/dummy/tmp/cache/assets/development/sprockets/{f14dc22e71f0438b9fc154ec08da7c10 → 3df20dbdd9feb9b6181ccaf69566f9b7} +0 -0
  18. data/spec/dummy/tmp/cache/assets/development/sprockets/{8dab559778ce584628d484b9d919cfa8 → 428540decb22e109bd1221fbc0543fab} +0 -0
  19. data/spec/dummy/tmp/cache/assets/development/sprockets/{642b8ba757f92502a3a3281a956eec2a → 4b137a5fed68ef0fcfef0ec706e46313} +0 -0
  20. data/spec/dummy/tmp/cache/assets/development/sprockets/{1565c81151c1e0fe577f787a645bca3d → 5a42f175bf885737d4e31c9985d6fe07} +0 -0
  21. data/spec/dummy/tmp/cache/assets/development/sprockets/5fa93bf05e13e230b8f400edb70fef1d +0 -0
  22. data/spec/dummy/tmp/cache/assets/development/sprockets/{48279ff6b6f65f85e766c3a7ae0c71f6 → 5faa5b46b3032de437b4cb56b03865c6} +0 -0
  23. data/spec/dummy/tmp/cache/assets/development/sprockets/6eaff7b9f6611fc81edb0b1b45f3fd2e +0 -0
  24. data/spec/dummy/tmp/cache/assets/development/sprockets/73a1efeff5a637a701c94afff8697e19 +0 -0
  25. data/spec/dummy/tmp/cache/assets/development/sprockets/{77e01a708457c1d4aac9446e173321a1 → 7f6a8adf47d3f3d25e88800bba7470f6} +0 -0
  26. data/spec/dummy/tmp/cache/assets/development/sprockets/8aa4f4408b1d26bd374de22fa249c0ed +0 -0
  27. data/spec/dummy/tmp/cache/assets/development/sprockets/{3241270f308313221453f51980c07883 → a50fa992e0426e9c5d165ef9274cb535} +0 -0
  28. data/spec/dummy/tmp/cache/assets/development/sprockets/{e5cfb1a438298274f827c0cbea06e7dc → bc05356ab498eeba43f3f7e8b496eb10} +0 -0
  29. data/spec/dummy/tmp/cache/assets/development/sprockets/{01af51e20498d87feb18694bed0d0731 → c4db8bd94cb08dd1291ec04b1d06a493} +0 -0
  30. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  31. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  32. data/spec/dummy/tmp/cache/assets/development/sprockets/{8ac87e607a25fc208fc1da0c60b24b8b → da46dd3b99291773829efe873601b4b7} +0 -0
  33. data/spec/dummy/tmp/cache/assets/development/sprockets/{1c90620581903652712500bb92915909 → db1632e0b72a95b4e7bbf489a0ffecbc} +0 -0
  34. data/spec/dummy/tmp/cache/assets/development/sprockets/ebb402e0bb3b027cc688fe002bdee3f7 +0 -0
  35. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  36. metadata +44 -47
  37. data/spec/dummy/log/development.log +0 -10092
  38. data/spec/dummy/log/test.log +0 -531
  39. data/spec/dummy/tmp/cache/assets/development/sprockets/057daf732c672b9e0ec8bd233ec79077 +0 -0
  40. data/spec/dummy/tmp/cache/assets/development/sprockets/3a59d6acf2f4543a36d946d653b08dab +0 -0
  41. data/spec/dummy/tmp/cache/assets/development/sprockets/64fe0e7bbf53d3cf292e85e123137bcb +0 -0
  42. data/spec/dummy/tmp/cache/assets/development/sprockets/8fde9b9595ed926214e7858402849bb2 +0 -0
  43. data/spec/dummy/tmp/cache/assets/development/sprockets/c9e7400c0b4cf9165368acf909971237 +0 -0
  44. data/spec/dummy/tmp/cache/assets/development/sprockets/e58e48ebcd3216893f3b053ee6a3d7eb +0 -0
@@ -1,531 +0,0 @@
1
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'ExampleClass' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
2
-  (0.1ms) begin transaction
3
- SQL (1.9ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_type", "ExampleClass"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
4
-  (2.1ms) commit transaction
5
-  (0.1ms) begin transaction
6
- SQL (0.8ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["month_report_id", 1], ["owner_type", "ExampleClass"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
7
-  (0.9ms) commit transaction
8
- BestBoy::MonthReport Load (0.3ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'ExampleClass' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" = 'api' AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
9
-  (0.1ms) begin transaction
10
- SQL (0.8ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "event_source", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["event_source", "api"], ["owner_type", "ExampleClass"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
11
-  (0.8ms) commit transaction
12
-  (0.1ms) begin transaction
13
- SQL (0.7ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "event_source", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["event_source", "api"], ["month_report_id", 2], ["owner_type", "ExampleClass"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
14
-  (1.2ms) commit transaction
15
- BestBoy::DayReport Load (0.3ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'ExampleClass' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
16
- BestBoy::DayReport Load (0.3ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'ExampleClass' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" = 'api' AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
17
-  (0.1ms) begin transaction
18
- SQL (0.6ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
19
- SQL (0.6ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 1], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
20
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
21
- SQL (0.3ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
22
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
23
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
24
- SQL (0.5ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["month_report_id", 3], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
25
- SQL (0.3ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 3 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
26
- SQL (0.3ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 3 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
27
-  (1.3ms) commit transaction
28
- BestBoy::MonthReport Load (0.3ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
29
-  (0.1ms) begin transaction
30
- SQL (0.7ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["month_report_id", 3], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
31
-  (0.9ms) commit transaction
32
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" = 'api' AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
33
-  (0.1ms) begin transaction
34
- SQL (0.6ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "event_source", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["event_source", "api"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
35
-  (1.0ms) commit transaction
36
-  (0.1ms) begin transaction
37
- SQL (0.7ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "event_source", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["event_source", "api"], ["month_report_id", 4], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
38
-  (1.1ms) commit transaction
39
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
40
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" = 'api' AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
41
-  (0.1ms) begin transaction
42
- SQL (0.5ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
43
- SQL (0.3ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 2], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
44
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
45
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
46
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 4 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
47
- SQL (0.1ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 3 [["occurrences", 2], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
48
-  (1.2ms) commit transaction
49
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
50
-  (0.0ms) begin transaction
51
- SQL (0.5ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["month_report_id", 3], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
52
-  (1.2ms) commit transaction
53
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" = 'api' AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
54
-  (0.0ms) begin transaction
55
- SQL (0.4ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "event_source", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["event_source", "api"], ["month_report_id", 4], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
56
-  (1.0ms) commit transaction
57
-  (0.1ms) begin transaction
58
- SQL (0.6ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_type", "TestEventClass"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
59
-  (1.0ms) commit transaction
60
-  (0.0ms) begin transaction
61
- SQL (0.4ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "event_source", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["event_source", "api"], ["owner_type", "TestEventClass"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
62
-  (1.0ms) commit transaction
63
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEventClass' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
64
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEventClass' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" = 'api' AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
65
-  (0.1ms) begin transaction
66
- SQL (0.5ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
67
- SQL (0.4ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 3], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
68
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
69
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
70
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
71
- SQL (0.1ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 3 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
72
-  (1.1ms) commit transaction
73
-  (0.1ms) begin transaction
74
- SQL (0.4ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
75
-  (1.0ms) commit transaction
76
-  (0.1ms) begin transaction
77
- SQL (0.4ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "event_source", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["event_source", "api"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
78
-  (1.0ms) commit transaction
79
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
80
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" = 'api' AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
81
-  (0.1ms) begin transaction
82
- SQL (0.7ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
83
- SQL (0.3ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 4], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
84
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
85
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
86
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 2], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
87
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 7 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
88
-  (1.2ms) commit transaction
89
-  (0.1ms) begin transaction
90
- SQL (0.5ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
91
-  (1.2ms) commit transaction
92
-  (0.1ms) begin transaction
93
- SQL (0.5ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "event_source", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["event_source", "api"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
94
-  (1.0ms) commit transaction
95
-  (0.2ms) begin transaction
96
-  (0.1ms) SAVEPOINT active_record_1
97
- SQL (0.6ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
98
- SQL (0.3ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
99
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
100
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
101
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
102
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
103
-  (0.0ms) RELEASE SAVEPOINT active_record_1
104
-  (0.0ms) SAVEPOINT active_record_1
105
- SQL (0.5ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "testing"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
106
-  (0.0ms) RELEASE SAVEPOINT active_record_1
107
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'testing' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
108
-  (0.1ms) SAVEPOINT active_record_1
109
- SQL (0.4ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "testing"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
110
-  (0.1ms) RELEASE SAVEPOINT active_record_1
111
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'testing' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
112
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'testing' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
113
-  (0.0ms) SAVEPOINT active_record_1
114
- SQL (0.3ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "testing"], ["month_report_id", 11], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
115
-  (0.0ms) RELEASE SAVEPOINT active_record_1
116
-  (0.0ms) SAVEPOINT active_record_1
117
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 8 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
118
-  (0.0ms) RELEASE SAVEPOINT active_record_1
119
-  (0.0ms) SAVEPOINT active_record_1
120
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 11 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
121
-  (0.0ms) RELEASE SAVEPOINT active_record_1
122
- BestBoyEvent Load (0.1ms) SELECT "best_boy_events".* FROM "best_boy_events" WHERE "best_boy_events"."owner_id" = 5 AND "best_boy_events"."owner_type" = 'TestEvent' AND "best_boy_events"."event" = 'testing' ORDER BY "best_boy_events"."id" ASC LIMIT 1
123
-  (1.9ms) rollback transaction
124
-  (0.1ms) begin transaction
125
-  (0.1ms) SAVEPOINT active_record_1
126
- SQL (0.5ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
127
- SQL (0.3ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
128
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
129
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
130
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
131
- SQL (0.3ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
132
-  (0.1ms) RELEASE SAVEPOINT active_record_1
133
-  (0.7ms) rollback transaction
134
-  (0.1ms) begin transaction
135
-  (0.1ms) SAVEPOINT active_record_1
136
- SQL (0.7ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
137
- SQL (0.4ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
138
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
139
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
140
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
141
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
142
-  (0.1ms) RELEASE SAVEPOINT active_record_1
143
-  (0.6ms) rollback transaction
144
-  (0.1ms) begin transaction
145
-  (0.1ms) SAVEPOINT active_record_1
146
- SQL (0.5ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
147
- SQL (0.5ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
148
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
149
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
150
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
151
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
152
-  (0.1ms) RELEASE SAVEPOINT active_record_1
153
-  (0.0ms) SAVEPOINT active_record_1
154
- SQL (0.5ms) INSERT INTO "best_boy_events" ("created_at", "event", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
155
-  (0.0ms) RELEASE SAVEPOINT active_record_1
156
-  (0.5ms) rollback transaction
157
-  (0.1ms) begin transaction
158
-  (0.1ms) rollback transaction
159
-  (0.1ms) begin transaction
160
-  (0.0ms) SAVEPOINT active_record_1
161
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
162
-  (0.0ms) rollback transaction
163
-  (0.1ms) begin transaction
164
-  (0.1ms) SAVEPOINT active_record_1
165
- SQL (0.5ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
166
- SQL (21.6ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
167
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
168
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
169
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
170
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
171
-  (0.1ms) RELEASE SAVEPOINT active_record_1
172
-  (0.0ms) SAVEPOINT active_record_1
173
- SQL (0.5ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
174
-  (0.1ms) RELEASE SAVEPOINT active_record_1
175
-  (0.0ms) SAVEPOINT active_record_1
176
- SQL (0.4ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["month_report_id", 11], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
177
-  (0.0ms) RELEASE SAVEPOINT active_record_1
178
-  (0.8ms) rollback transaction
179
-  (0.1ms) begin transaction
180
-  (0.1ms) SAVEPOINT active_record_1
181
- SQL (0.7ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
182
- SQL (0.3ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
183
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
184
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
185
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
186
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
187
-  (0.1ms) RELEASE SAVEPOINT active_record_1
188
-  (0.1ms) SAVEPOINT active_record_1
189
- SQL (0.5ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
190
-  (0.0ms) RELEASE SAVEPOINT active_record_1
191
-  (0.0ms) SAVEPOINT active_record_1
192
- SQL (0.3ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["month_report_id", 11], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
193
-  (0.0ms) RELEASE SAVEPOINT active_record_1
194
-  (0.7ms) rollback transaction
195
-  (0.1ms) begin transaction
196
-  (0.1ms) SAVEPOINT active_record_1
197
- SQL (0.6ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
198
- SQL (0.3ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
199
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
200
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
201
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
202
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
203
-  (0.1ms) RELEASE SAVEPOINT active_record_1
204
-  (0.0ms) SAVEPOINT active_record_1
205
- SQL (0.6ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
206
-  (0.1ms) RELEASE SAVEPOINT active_record_1
207
-  (0.0ms) SAVEPOINT active_record_1
208
- SQL (0.3ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["month_report_id", 11], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
209
-  (0.0ms) RELEASE SAVEPOINT active_record_1
210
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY created_at DESC
211
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE ("best_boy_day_reports"."created_at" BETWEEN '2013-11-06 23:00:00.000000' AND '2013-11-07 22:59:59.999999') ORDER BY created_at DESC
212
-  (0.8ms) rollback transaction
213
-  (0.1ms) begin transaction
214
-  (0.0ms) SAVEPOINT active_record_1
215
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
216
-  (0.0ms) SAVEPOINT active_record_1
217
-  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
218
-  (0.1ms) SAVEPOINT active_record_1
219
- SQL (0.5ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
220
- SQL (0.4ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
221
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
222
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
223
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
224
- SQL (0.1ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
225
-  (0.0ms) RELEASE SAVEPOINT active_record_1
226
-  (0.0ms) SAVEPOINT active_record_1
227
- SQL (0.4ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
228
-  (0.0ms) RELEASE SAVEPOINT active_record_1
229
-  (0.0ms) SAVEPOINT active_record_1
230
- SQL (0.3ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["month_report_id", 11], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
231
-  (0.0ms) RELEASE SAVEPOINT active_record_1
232
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE ("best_boy_day_reports"."created_at" BETWEEN '2013-11-03 23:00:00.000000' AND '2013-11-08 10:17:18.942893') ORDER BY created_at DESC
233
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE ("best_boy_day_reports"."created_at" BETWEEN '2013-11-03 23:00:00.000000' AND '2013-11-08 10:17:18.944723') ORDER BY created_at DESC
234
-  (0.7ms) rollback transaction
235
-  (0.1ms) begin transaction
236
-  (0.1ms) rollback transaction
237
-  (0.1ms) begin transaction
238
-  (0.1ms) rollback transaction
239
-  (0.1ms) begin transaction
240
-  (0.2ms) SELECT COUNT(*) FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'GibberishClass' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999')
241
-  (0.1ms) rollback transaction
242
-  (0.1ms) begin transaction
243
-  (0.1ms) rollback transaction
244
-  (0.1ms) begin transaction
245
-  (0.0ms) rollback transaction
246
-  (0.1ms) begin transaction
247
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports"
248
-  (0.0ms) SAVEPOINT active_record_1
249
- SQL (0.3ms) DELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ? [["id", 1]]
250
-  (0.1ms) RELEASE SAVEPOINT active_record_1
251
-  (0.1ms) SAVEPOINT active_record_1
252
- SQL (0.3ms) DELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ? [["id", 2]]
253
-  (0.0ms) RELEASE SAVEPOINT active_record_1
254
-  (0.0ms) SAVEPOINT active_record_1
255
- SQL (0.1ms) DELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ? [["id", 3]]
256
-  (0.0ms) RELEASE SAVEPOINT active_record_1
257
-  (0.0ms) SAVEPOINT active_record_1
258
- SQL (0.1ms) DELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ? [["id", 4]]
259
-  (0.0ms) RELEASE SAVEPOINT active_record_1
260
-  (0.0ms) SAVEPOINT active_record_1
261
- SQL (0.1ms) DELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ? [["id", 5]]
262
-  (0.0ms) RELEASE SAVEPOINT active_record_1
263
-  (0.0ms) SAVEPOINT active_record_1
264
- SQL (0.1ms) DELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ? [["id", 6]]
265
-  (0.0ms) RELEASE SAVEPOINT active_record_1
266
-  (0.0ms) SAVEPOINT active_record_1
267
- SQL (0.1ms) DELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ? [["id", 7]]
268
-  (0.0ms) RELEASE SAVEPOINT active_record_1
269
-  (0.1ms) SELECT COUNT(*) FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999')
270
-  (0.0ms) SAVEPOINT active_record_1
271
- SQL (0.3ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
272
- SQL (0.3ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
273
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
274
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
275
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
276
- SQL (0.2ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["month_report_id", 9], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
277
- SQL (0.1ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 8 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
278
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
279
-  (0.1ms) RELEASE SAVEPOINT active_record_1
280
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
281
-  (0.1ms) SELECT COUNT(*) FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999')
282
-  (0.8ms) rollback transaction
283
-  (0.1ms) begin transaction
284
-  (0.1ms) rollback transaction
285
-  (0.1ms) begin transaction
286
-  (0.1ms) rollback transaction
287
-  (0.1ms) begin transaction
288
-  (0.1ms) rollback transaction
289
-  (0.1ms) begin transaction
290
-  (0.1ms) rollback transaction
291
-  (0.1ms) begin transaction
292
-  (0.1ms) rollback transaction
293
-  (0.1ms) begin transaction
294
-  (0.1ms) rollback transaction
295
-  (0.1ms) begin transaction
296
-  (0.1ms) SAVEPOINT active_record_1
297
- SQL (0.5ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
298
- SQL (0.5ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:18 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
299
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
300
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
301
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
302
- SQL (0.1ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
303
-  (0.0ms) RELEASE SAVEPOINT active_record_1
304
- BestBoyEvent Load (0.2ms) SELECT "best_boy_events".* FROM "best_boy_events" WHERE "best_boy_events"."owner_id" = ? AND "best_boy_events"."owner_type" = ? ORDER BY "best_boy_events"."id" ASC LIMIT 1 [["owner_id", 5], ["owner_type", "TestEvent"]]
305
-  (0.9ms) rollback transaction
306
-  (0.1ms) begin transaction
307
-  (0.1ms) SAVEPOINT active_record_1
308
- SQL (0.8ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
309
- SQL (0.5ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
310
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
311
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
312
- SQL (0.3ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
313
- SQL (0.3ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
314
-  (0.1ms) RELEASE SAVEPOINT active_record_1
315
-  (0.1ms) SAVEPOINT active_record_1
316
- SQL (0.6ms) UPDATE "best_boy_events" SET "owner_id" = NULL WHERE "best_boy_events"."owner_id" = ? AND "best_boy_events"."owner_type" = ? [["owner_id", 5], ["owner_type", "TestEvent"]]
317
- SQL (0.2ms) DELETE FROM "test_events" WHERE "test_events"."id" = ? [["id", 5]]
318
- SQL (0.7ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "destroy"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
319
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'destroy' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
320
- SQL (0.5ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "destroy"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
321
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'destroy' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
322
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'destroy' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
323
- SQL (0.6ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "destroy"], ["month_report_id", 11], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
324
- SQL (0.3ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 8 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
325
- SQL (0.3ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 11 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
326
-  (0.1ms) RELEASE SAVEPOINT active_record_1
327
-  (0.7ms) rollback transaction
328
-  (0.1ms) begin transaction
329
-  (0.1ms) SAVEPOINT active_record_1
330
- SQL (0.9ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
331
- SQL (0.6ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
332
- BestBoy::MonthReport Load (0.3ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
333
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
334
- SQL (0.3ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
335
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
336
-  (0.1ms) RELEASE SAVEPOINT active_record_1
337
-  (0.6ms) rollback transaction
338
-  (0.1ms) begin transaction
339
-  (0.1ms) SAVEPOINT active_record_1
340
- SQL (0.6ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
341
- SQL (0.5ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
342
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
343
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
344
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
345
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
346
-  (0.1ms) RELEASE SAVEPOINT active_record_1
347
- BestBoy::MonthReport Load (0.3ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' ORDER BY "best_boy_month_reports"."id" ASC LIMIT 1
348
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' ORDER BY "best_boy_day_reports"."id" ASC LIMIT 1
349
-  (0.6ms) rollback transaction
350
-  (0.1ms) begin transaction
351
-  (0.1ms) SAVEPOINT active_record_1
352
- SQL (0.6ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
353
- SQL (0.3ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
354
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
355
- BestBoy::DayReport Load (0.3ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
356
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
357
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
358
-  (0.1ms) RELEASE SAVEPOINT active_record_1
359
-  (0.1ms) SAVEPOINT active_record_1
360
- SQL (0.7ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
361
- SQL (0.5ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_id", 6], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
362
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
363
- BestBoy::DayReport Load (0.3ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
364
-  (0.1ms) RELEASE SAVEPOINT active_record_1
365
-  (0.9ms) rollback transaction
366
-  (0.1ms) begin transaction
367
-  (0.1ms) SAVEPOINT active_record_1
368
- SQL (0.6ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
369
- SQL (0.4ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
370
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
371
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
372
- SQL (0.3ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
373
- SQL (0.3ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
374
-  (0.1ms) RELEASE SAVEPOINT active_record_1
375
- TestEvent Load (0.1ms) SELECT "test_events".* FROM "test_events" ORDER BY "test_events"."id" ASC LIMIT 1
376
-  (0.1ms) SAVEPOINT active_record_1
377
- SQL (0.4ms) UPDATE "best_boy_events" SET "owner_id" = NULL WHERE "best_boy_events"."owner_id" = ? AND "best_boy_events"."owner_type" = ? [["owner_id", 1], ["owner_type", "TestEvent"]]
378
- SQL (0.1ms) DELETE FROM "test_events" WHERE "test_events"."id" = ? [["id", 1]]
379
- SQL (0.4ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "destroy"], ["owner_id", 1], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
380
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'destroy' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
381
- SQL (0.3ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "destroy"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
382
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'destroy' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
383
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'destroy' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
384
- SQL (0.3ms) INSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "destroy"], ["month_report_id", 11], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
385
-  (0.1ms) RELEASE SAVEPOINT active_record_1
386
-  (0.8ms) rollback transaction
387
-  (0.1ms) begin transaction
388
-  (0.1ms) SAVEPOINT active_record_1
389
- SQL (0.5ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
390
- SQL (0.3ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
391
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
392
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
393
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
394
- SQL (0.1ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
395
-  (0.0ms) RELEASE SAVEPOINT active_record_1
396
-  (0.1ms) SAVEPOINT active_record_1
397
- SQL (0.5ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
398
-  (0.0ms) RELEASE SAVEPOINT active_record_1
399
-  (0.7ms) rollback transaction
400
-  (0.1ms) begin transaction
401
-  (0.1ms) SAVEPOINT active_record_1
402
- SQL (0.5ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
403
- SQL (0.5ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
404
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
405
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
406
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
407
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
408
-  (0.1ms) RELEASE SAVEPOINT active_record_1
409
-  (0.0ms) SAVEPOINT active_record_1
410
- SQL (0.8ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
411
-  (0.1ms) RELEASE SAVEPOINT active_record_1
412
-  (0.8ms) rollback transaction
413
-  (0.1ms) begin transaction
414
-  (0.1ms) SAVEPOINT active_record_1
415
- SQL (0.5ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
416
- SQL (0.3ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
417
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
418
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
419
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
420
- SQL (0.2ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
421
-  (0.1ms) RELEASE SAVEPOINT active_record_1
422
-  (0.0ms) SAVEPOINT active_record_1
423
- SQL (0.5ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
424
-  (0.0ms) RELEASE SAVEPOINT active_record_1
425
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY created_at DESC
426
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE ("best_boy_month_reports"."created_at" BETWEEN '2013-08-31 22:00:00.000000' AND '2013-09-08 21:59:59.999999') ORDER BY created_at DESC
427
-  (0.7ms) rollback transaction
428
-  (0.1ms) begin transaction
429
-  (0.1ms) SAVEPOINT active_record_1
430
- SQL (0.5ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
431
-  (0.1ms) RELEASE SAVEPOINT active_record_1
432
-  (0.0ms) SAVEPOINT active_record_1
433
- SQL (0.4ms) UPDATE "best_boy_month_reports" SET "created_at" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 11 [["created_at", Sun, 08 Sep 2013 11:17:19 CEST +02:00], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
434
-  (0.0ms) RELEASE SAVEPOINT active_record_1
435
-  (0.1ms) SAVEPOINT active_record_1
436
- SQL (0.3ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
437
-  (0.1ms) RELEASE SAVEPOINT active_record_1
438
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE ("best_boy_month_reports"."created_at" BETWEEN '2013-08-07 22:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY created_at DESC
439
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE ("best_boy_month_reports"."created_at" BETWEEN '2013-08-07 22:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY created_at DESC
440
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE ("best_boy_month_reports"."created_at" BETWEEN '2013-10-07 22:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY created_at DESC
441
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE ("best_boy_month_reports"."created_at" BETWEEN '2013-08-07 22:00:00.000000' AND '2013-09-08 21:59:59.999999') ORDER BY created_at DESC
442
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE ("best_boy_month_reports"."created_at" BETWEEN '2013-05-07 22:00:00.000000' AND '2013-07-08 21:59:59.999999') ORDER BY created_at DESC
443
-  (0.6ms) rollback transaction
444
-  (0.1ms) begin transaction
445
-  (0.1ms) SAVEPOINT active_record_1
446
- SQL (0.5ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
447
- SQL (0.3ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
448
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
449
- BestBoy::DayReport Load (0.2ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
450
- SQL (0.4ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
451
- SQL (0.4ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
452
-  (0.1ms) RELEASE SAVEPOINT active_record_1
453
-  (0.1ms) SAVEPOINT active_record_1
454
- SQL (0.6ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
455
-  (0.1ms) RELEASE SAVEPOINT active_record_1
456
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE ("best_boy_month_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY created_at DESC
457
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE ("best_boy_month_reports"."created_at" BETWEEN '2013-11-06 23:00:00.000000' AND '2013-11-07 22:59:59.999999') ORDER BY created_at DESC
458
-  (0.8ms) rollback transaction
459
-  (0.1ms) begin transaction
460
-  (0.1ms) rollback transaction
461
-  (0.1ms) begin transaction
462
-  (0.1ms) rollback transaction
463
-  (0.1ms) begin transaction
464
-  (0.3ms) SELECT COUNT(*) FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'GibberishClass' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999')
465
-  (0.1ms) rollback transaction
466
-  (0.1ms) begin transaction
467
-  (0.1ms) rollback transaction
468
-  (0.1ms) begin transaction
469
-  (0.1ms) rollback transaction
470
-  (0.1ms) begin transaction
471
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports"
472
-  (0.0ms) SAVEPOINT active_record_1
473
- SQL (0.3ms) DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 1]]
474
-  (0.0ms) RELEASE SAVEPOINT active_record_1
475
-  (0.0ms) SAVEPOINT active_record_1
476
- SQL (0.2ms) DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 2]]
477
-  (0.0ms) RELEASE SAVEPOINT active_record_1
478
-  (0.0ms) SAVEPOINT active_record_1
479
- SQL (0.1ms) DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 3]]
480
-  (0.0ms) RELEASE SAVEPOINT active_record_1
481
-  (0.0ms) SAVEPOINT active_record_1
482
- SQL (0.1ms) DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 4]]
483
-  (0.0ms) RELEASE SAVEPOINT active_record_1
484
-  (0.0ms) SAVEPOINT active_record_1
485
- SQL (0.1ms) DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 5]]
486
-  (0.0ms) RELEASE SAVEPOINT active_record_1
487
-  (0.0ms) SAVEPOINT active_record_1
488
- SQL (0.1ms) DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 6]]
489
-  (0.0ms) RELEASE SAVEPOINT active_record_1
490
-  (0.0ms) SAVEPOINT active_record_1
491
- SQL (0.1ms) DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 7]]
492
-  (0.0ms) RELEASE SAVEPOINT active_record_1
493
-  (0.0ms) SAVEPOINT active_record_1
494
- SQL (0.1ms) DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 8]]
495
-  (0.0ms) RELEASE SAVEPOINT active_record_1
496
-  (0.0ms) SAVEPOINT active_record_1
497
- SQL (0.1ms) DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 9]]
498
-  (0.0ms) RELEASE SAVEPOINT active_record_1
499
-  (0.0ms) SAVEPOINT active_record_1
500
- SQL (0.1ms) DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 10]]
501
-  (0.0ms) RELEASE SAVEPOINT active_record_1
502
-  (0.2ms) SELECT COUNT(*) FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999')
503
-  (0.1ms) SELECT COUNT(*) FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999')
504
-  (0.1ms) SAVEPOINT active_record_1
505
- SQL (0.4ms) INSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
506
- SQL (0.4ms) INSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_id", 5], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
507
- BestBoy::MonthReport Load (0.2ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
508
- SQL (0.2ms) INSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Nov 2013 11:17:19 CET +01:00], ["event", "create"], ["owner_type", "TestEvent"], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
509
- BestBoy::DayReport Load (0.1ms) SELECT "best_boy_day_reports".* FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."owner_type" = 'TestEvent' AND "best_boy_day_reports"."event" = 'create' AND "best_boy_day_reports"."event_source" IS NULL AND ("best_boy_day_reports"."created_at" BETWEEN '2013-11-07 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_day_reports"."id" DESC LIMIT 1
510
- SQL (0.2ms) UPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6 [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
511
- SQL (0.1ms) UPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 11 [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
512
-  (0.1ms) RELEASE SAVEPOINT active_record_1
513
- BestBoy::MonthReport Load (0.1ms) SELECT "best_boy_month_reports".* FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND "best_boy_month_reports"."event_source" IS NULL AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999') ORDER BY "best_boy_month_reports"."id" DESC LIMIT 1
514
-  (0.1ms) SELECT COUNT(*) FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."owner_type" = 'TestEvent' AND "best_boy_month_reports"."event" = 'create' AND ("best_boy_month_reports"."created_at" BETWEEN '2013-10-31 23:00:00.000000' AND '2013-11-08 22:59:59.999999')
515
-  (0.7ms) rollback transaction
516
-  (0.1ms) begin transaction
517
-  (0.1ms) rollback transaction
518
-  (0.1ms) begin transaction
519
-  (0.1ms) rollback transaction
520
-  (0.1ms) begin transaction
521
-  (0.1ms) rollback transaction
522
-  (0.1ms) begin transaction
523
-  (0.1ms) rollback transaction
524
-  (0.1ms) begin transaction
525
-  (0.1ms) rollback transaction
526
-  (0.1ms) begin transaction
527
-  (0.0ms) rollback transaction
528
-  (0.1ms) begin transaction
529
-  (0.0ms) rollback transaction
530
-  (0.1ms) begin transaction
531
-  (0.0ms) rollback transaction