best_boy 1.3.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +36 -3
- data/Rakefile +45 -7
- data/app/controllers/best_boy/best_boy_events_controller.rb +147 -98
- data/app/helpers/best_boy/best_boy_view_helper.rb +9 -0
- data/app/views/best_boy/best_boy_events/details.html.erb +33 -27
- data/app/views/best_boy/best_boy_events/monthly_details.html.erb +9 -9
- data/app/views/best_boy/best_boy_events/stats.html.erb +20 -19
- data/lib/best_boy/engine.rb +2 -0
- data/lib/best_boy/models/active_record/best_boy/eventable.rb +19 -0
- data/lib/best_boy/models/active_record/best_boy_day_report.rb +65 -0
- data/lib/best_boy/models/active_record/best_boy_event.rb +1 -11
- data/lib/best_boy/models/active_record/best_boy_month_report.rb +63 -0
- data/lib/best_boy/version.rb +1 -1
- data/lib/generators/active_record/best_boy_generator.rb +4 -1
- data/lib/generators/active_record/templates/create_best_boy_reports.rb +30 -0
- data/lib/tasks/recover_report_history.rake +146 -0
- data/spec/{best_boy → controllers}/best_boy_controller_spec.rb +6 -4
- data/spec/dummy/app/views/test_events/index.html.haml +9 -1
- data/spec/dummy/config/routes.rb +1 -0
- data/spec/dummy/db/migrate/20131108085915_create_best_boy_reports.rb +30 -0
- data/spec/dummy/db/schema.rb +27 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +10092 -0
- data/spec/dummy/log/test.log +531 -0
- data/spec/dummy/tmp/cache/assets/development/sass/f99cb4f6f36f128b2d6950c813eec72c66616bfc/bootstrap.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/01af51e20498d87feb18694bed0d0731 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/057daf732c672b9e0ec8bd233ec79077 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1565c81151c1e0fe577f787a645bca3d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1c90620581903652712500bb92915909 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3241270f308313221453f51980c07883 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3a59d6acf2f4543a36d946d653b08dab +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3a5f8aba9c98833836df55cdc5502ee8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/42804a4f90448633879c06a33e49f4e6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/48279ff6b6f65f85e766c3a7ae0c71f6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/642b8ba757f92502a3a3281a956eec2a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/64fe0e7bbf53d3cf292e85e123137bcb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/77e01a708457c1d4aac9446e173321a1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8ac87e607a25fc208fc1da0c60b24b8b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8dab559778ce584628d484b9d919cfa8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8fde9b9595ed926214e7858402849bb2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c9e7400c0b4cf9165368acf909971237 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e58e48ebcd3216893f3b053ee6a3d7eb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e5cfb1a438298274f827c0cbea06e7dc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f14dc22e71f0438b9fc154ec08da7c10 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/models/best_boy_event_spec.rb +20 -0
- data/spec/models/day_report_spec.rb +115 -0
- data/spec/models/eventable_spec.rb +51 -0
- data/spec/models/month_report_spec.rb +113 -0
- data/spec/spec_helper.rb +96 -40
- metadata +110 -123
- data/.gitignore +0 -10
- data/.rspec +0 -1
- data/.travis.yml +0 -3
- data/Gemfile +0 -3
- data/LICENSE.txt +0 -20
- data/best_boy.gemspec +0 -38
- data/db/bestboy.db +0 -0
- data/spec/best_boy/best_boy_event_spec.rb +0 -62
- data/spec/best_boy/eventable_spec.rb +0 -20
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
@@ -0,0 +1,531 @@
|
|
1
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
2
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (2.1ms)[0m commit transaction
|
5
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
8
|
+
[1m[35mBestBoy::MonthReport Load (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
12
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "best_boy_day_reports" ("created_at", "event", "event_source", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.2ms)[0m commit transaction
|
15
|
+
[1m[36mBestBoy::DayReport Load (0.3ms)[0m [1mSELECT "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[0m
|
16
|
+
[1m[35mBestBoy::DayReport Load (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::DayReport Load (0.1ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
24
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 3[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
26
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
28
|
+
[1m[35mBestBoy::MonthReport Load (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
32
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
36
|
+
[1m[35m (0.1ms)[0m begin transaction
|
37
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "best_boy_day_reports" ("created_at", "event", "event_source", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.1ms)[0m commit transaction
|
39
|
+
[1m[36mBestBoy::DayReport Load (0.2ms)[0m [1mSELECT "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[0m
|
40
|
+
[1m[35mBestBoy::DayReport Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
42
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.1ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.1ms)[0m [1mSELECT "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[0m
|
46
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 3[0m [["occurrences", 2], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
48
|
+
[1m[35m (1.2ms)[0m commit transaction
|
49
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
50
|
+
[1m[35m (0.0ms)[0m begin transaction
|
51
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.2ms)[0m commit transaction
|
53
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
54
|
+
[1m[35m (0.0ms)[0m begin transaction
|
55
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "best_boy_day_reports" ("created_at", "event", "event_source", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
57
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
58
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
60
|
+
[1m[35m (0.0ms)[0m begin transaction
|
61
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "best_boy_month_reports" ("created_at", "event", "event_source", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
63
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
64
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
66
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.1ms)[0m [1mSELECT "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[0m
|
70
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 3[0m [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
72
|
+
[1m[35m (1.1ms)[0m commit transaction
|
73
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
74
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
76
|
+
[1m[35m (0.1ms)[0m begin transaction
|
77
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "best_boy_month_reports" ("created_at", "event", "event_source", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
79
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
80
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.1ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.1ms)[0m [1mSELECT "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[0m
|
86
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 7[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
88
|
+
[1m[35m (1.2ms)[0m commit transaction
|
89
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
90
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
92
|
+
[1m[35m (0.1ms)[0m begin transaction
|
93
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "best_boy_month_reports" ("created_at", "event", "event_source", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.0ms)[0m commit transaction
|
95
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
96
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
97
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.1ms)[0m [1mSELECT "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[0m
|
100
|
+
[1m[35mBestBoy::DayReport Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6[0m [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
102
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
104
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
105
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
107
|
+
[1m[36mBestBoy::MonthReport Load (0.1ms)[0m [1mSELECT "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[0m
|
108
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
109
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
111
|
+
[1m[36mBestBoy::DayReport Load (0.1ms)[0m [1mSELECT "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[0m
|
112
|
+
[1m[35mBestBoy::MonthReport Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
114
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
116
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
117
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 8[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
118
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
119
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
120
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
122
|
+
[1m[35mBestBoyEvent Load (0.1ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1mrollback transaction[0m
|
124
|
+
[1m[35m (0.1ms)[0m begin transaction
|
125
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
126
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.1ms)[0m [1mSELECT "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[0m
|
130
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
132
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
133
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
134
|
+
[1m[35m (0.1ms)[0m begin transaction
|
135
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
136
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.1ms)[0m [1mSELECT "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[0m
|
140
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
142
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
143
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
144
|
+
[1m[35m (0.1ms)[0m begin transaction
|
145
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
146
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.2ms)[0m [1mSELECT "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[0m
|
150
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
152
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
153
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
154
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
156
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
157
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
158
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
159
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
160
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
161
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
162
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
163
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
164
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
165
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mSQL (21.6ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
168
|
+
[1m[35mBestBoy::DayReport Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6[0m [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
170
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
172
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
173
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
175
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
176
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
178
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
179
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
180
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
181
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
184
|
+
[1m[35mBestBoy::DayReport Load (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6[0m [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
186
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
188
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
189
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
191
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
192
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
194
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
195
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
196
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
197
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.1ms)[0m [1mSELECT "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[0m
|
200
|
+
[1m[35mBestBoy::DayReport Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6[0m [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
202
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
204
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
205
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
207
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210
|
+
[1m[35mBestBoy::DayReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.1ms)[0m [1mSELECT "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[0m
|
212
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
213
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
214
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
215
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
216
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
217
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
218
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
219
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
222
|
+
[1m[35mBestBoy::DayReport Load (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6[0m [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
224
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
226
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
227
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
232
|
+
[1m[35mBestBoy::DayReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.2ms)[0m [1mSELECT "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[0m
|
234
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
235
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
236
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
237
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
238
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
239
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
240
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
242
|
+
[1m[35m (0.1ms)[0m begin transaction
|
243
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
244
|
+
[1m[35m (0.1ms)[0m begin transaction
|
245
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
246
|
+
[1m[35m (0.1ms)[0m begin transaction
|
247
|
+
[1m[36mBestBoy::DayReport Load (0.2ms)[0m [1mSELECT "best_boy_day_reports".* FROM "best_boy_day_reports"[0m
|
248
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
249
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ?[0m [["id", 1]]
|
250
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
251
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
252
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ? [["id", 2]]
|
253
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
254
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
255
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ?[0m [["id", 3]]
|
256
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
257
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
258
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ? [["id", 4]]
|
259
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
260
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
261
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ?[0m [["id", 5]]
|
262
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
263
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
264
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ? [["id", 6]]
|
265
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
266
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
267
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "best_boy_day_reports" WHERE "best_boy_day_reports"."id" = ?[0m [["id", 7]]
|
268
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
269
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
270
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
271
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.1ms)[0m [1mSELECT "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[0m
|
274
|
+
[1m[35mBestBoy::DayReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.1ms)[0m [1mSELECT "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[0m
|
276
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 8[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
278
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
280
|
+
[1m[35mBestBoy::DayReport Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
282
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
283
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
284
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
285
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
286
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
287
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
288
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
289
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
290
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
291
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
292
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
293
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
294
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
295
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
296
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
297
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.1ms)[0m [1mSELECT "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[0m
|
300
|
+
[1m[35mBestBoy::DayReport Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6[0m [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:18 CET +01:00]]
|
302
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
304
|
+
[1m[35mBestBoyEvent Load (0.2ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
306
|
+
[1m[35m (0.1ms)[0m begin transaction
|
307
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
308
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.2ms)[0m [1mSELECT "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[0m
|
312
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
|
314
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
315
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
316
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "test_events" WHERE "test_events"."id" = ?[0m [["id", 5]]
|
318
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
320
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.2ms)[0m [1mSELECT "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[0m
|
322
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "best_boy_day_reports" ("created_at", "event", "month_report_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 11[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
|
326
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
327
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
328
|
+
[1m[35m (0.1ms)[0m begin transaction
|
329
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
330
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.3ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.2ms)[0m [1mSELECT "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[0m
|
334
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
|
336
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
337
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
338
|
+
[1m[35m (0.1ms)[0m begin transaction
|
339
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
340
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.1ms)[0m [1mSELECT "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[0m
|
344
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
|
346
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
347
|
+
[1m[36mBestBoy::MonthReport Load (0.3ms)[0m [1mSELECT "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[0m
|
348
|
+
[1m[35mBestBoy::DayReport Load (0.2ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
350
|
+
[1m[35m (0.1ms)[0m begin transaction
|
351
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
352
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.3ms)[0m [1mSELECT "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[0m
|
356
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
|
358
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
359
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
360
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.3ms)[0m [1mSELECT "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[0m
|
364
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
365
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
366
|
+
[1m[35m (0.1ms)[0m begin transaction
|
367
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
368
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.1ms)[0m [1mSELECT "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[0m
|
372
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
|
374
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
375
|
+
[1m[36mTestEvent Load (0.1ms)[0m [1mSELECT "test_events".* FROM "test_events" ORDER BY "test_events"."id" ASC LIMIT 1[0m
|
376
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
377
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "best_boy_events" SET "owner_id" = NULL WHERE "best_boy_events"."owner_id" = ? AND "best_boy_events"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "TestEvent"]]
|
378
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "test_events" WHERE "test_events"."id" = ? [["id", 1]]
|
379
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::DayReport Load (0.1ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.1ms)[0m [1mSELECT "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[0m
|
384
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
386
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
387
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
388
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
389
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.1ms)[0m [1mSELECT "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[0m
|
392
|
+
[1m[35mBestBoy::DayReport Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6[0m [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
|
394
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
396
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
397
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
399
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
400
|
+
[1m[35m (0.1ms)[0m begin transaction
|
401
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
402
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.1ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.2ms)[0m [1mSELECT "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[0m
|
406
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
|
408
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
409
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
410
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
412
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
413
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
414
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
415
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
418
|
+
[1m[35mBestBoy::DayReport Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "best_boy_day_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_day_reports"."id" = 6[0m [["occurrences", 3], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
|
420
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
422
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
423
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "best_boy_month_reports" ("created_at", "event", "owner_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
425
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
426
|
+
[1m[35mBestBoy::MonthReport Load (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
428
|
+
[1m[35m (0.1ms)[0m begin transaction
|
429
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
430
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
432
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
433
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "best_boy_month_reports" SET "created_at" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 11[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
435
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
436
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
438
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
440
|
+
[1m[35mBestBoy::MonthReport Load (0.1ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.1ms)[0m [1mSELECT "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[0m
|
442
|
+
[1m[35mBestBoy::MonthReport Load (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
444
|
+
[1m[35m (0.1ms)[0m begin transaction
|
445
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
446
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "best_boy_events" ("created_at", "event", "owner_id", "owner_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mBestBoy::MonthReport Load (0.1ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.2ms)[0m [1mSELECT "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[0m
|
450
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 9[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
|
452
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
453
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
454
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
456
|
+
[1m[35mBestBoy::MonthReport Load (0.2ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
458
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
459
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
460
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
461
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
462
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
463
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
464
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
466
|
+
[1m[35m (0.1ms)[0m begin transaction
|
467
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
468
|
+
[1m[35m (0.1ms)[0m begin transaction
|
469
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
470
|
+
[1m[35m (0.1ms)[0m begin transaction
|
471
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "best_boy_month_reports".* FROM "best_boy_month_reports"[0m
|
472
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
473
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ?[0m [["id", 1]]
|
474
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
475
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
476
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 2]]
|
477
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
478
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
479
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ?[0m [["id", 3]]
|
480
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
481
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
482
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 4]]
|
483
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
484
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
485
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ?[0m [["id", 5]]
|
486
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
487
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
488
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 6]]
|
489
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
490
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
491
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ?[0m [["id", 7]]
|
492
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
493
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
494
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 8]]
|
495
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
496
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
497
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ?[0m [["id", 9]]
|
498
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
499
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
500
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "best_boy_month_reports" WHERE "best_boy_month_reports"."id" = ? [["id", 10]]
|
501
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
502
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
504
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
505
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "test_events" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mBestBoy::MonthReport Load (0.2ms)[0m [1mSELECT "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[0m
|
508
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mBestBoy::DayReport Load (0.1ms)[0m [1mSELECT "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[0m
|
510
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "best_boy_month_reports" SET "occurrences" = ?, "updated_at" = ? WHERE "best_boy_month_reports"."id" = 11[0m [["occurrences", 1], ["updated_at", Fri, 08 Nov 2013 11:17:19 CET +01:00]]
|
512
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
513
|
+
[1m[36mBestBoy::MonthReport Load (0.1ms)[0m [1mSELECT "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[0m
|
514
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
516
|
+
[1m[35m (0.1ms)[0m begin transaction
|
517
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
518
|
+
[1m[35m (0.1ms)[0m begin transaction
|
519
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
520
|
+
[1m[35m (0.1ms)[0m begin transaction
|
521
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
522
|
+
[1m[35m (0.1ms)[0m begin transaction
|
523
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
524
|
+
[1m[35m (0.1ms)[0m begin transaction
|
525
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
526
|
+
[1m[35m (0.1ms)[0m begin transaction
|
527
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
528
|
+
[1m[35m (0.1ms)[0m begin transaction
|
529
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
530
|
+
[1m[35m (0.1ms)[0m begin transaction
|
531
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|