notifiable-rails 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/notifiable/device_tokens_controller.rb +11 -11
- data/lib/notifiable/version.rb +1 -1
- data/spec/test_app/log/test.log +1895 -0
- metadata +2 -2
data/spec/test_app/log/test.log
CHANGED
@@ -236602,3 +236602,1898 @@ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)
|
|
236602
236602
|
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236603
236603
|
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
236604
236604
|
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
236605
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
236606
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236607
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
236608
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
236609
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
236610
|
+
[1m[35mSQL (7.0ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236611
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236612
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
236613
|
+
[1m[36mNotifiable::DeviceToken Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
236614
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
236615
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236616
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236617
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236618
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
236619
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
236620
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
236621
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
236622
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236623
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)[0m
|
236624
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
236625
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
236626
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236627
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
236628
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", nil]]
|
236629
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236630
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
236631
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
236632
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
236633
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
236634
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236635
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
236636
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
236637
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236638
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
236639
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
236640
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236641
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
236642
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
236643
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236644
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
236645
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
236646
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236647
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
236648
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
236649
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
236650
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236651
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-2@example.com"]]
|
236652
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236653
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236654
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236655
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236656
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236657
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1[0m
|
236658
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
236659
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236660
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
236661
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236662
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236663
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236664
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
236665
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236666
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
|
236667
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
236668
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
236669
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236670
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
236671
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", nil]]
|
236672
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236673
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
236674
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
236675
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
236676
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236677
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
236678
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
236679
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236680
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
236681
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
236682
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236683
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
236684
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
236685
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236686
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
236687
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
236688
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236689
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
236690
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
236691
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
236692
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
236693
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
236694
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236695
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236696
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236697
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236698
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236699
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
236700
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
236701
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236702
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236703
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236704
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236705
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
236706
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
236707
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236708
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
236709
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
236710
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236711
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
236712
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
236713
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236714
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
236715
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
236716
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236717
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
236718
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
236719
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236720
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
236721
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
236722
|
+
[1m[35m (0.1ms)[0m begin transaction
|
236723
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236724
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236725
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236726
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236727
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236728
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236729
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236730
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
|
236731
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236732
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236733
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236734
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236735
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236736
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
|
236737
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
236738
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236739
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
236740
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
236741
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236742
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?) [["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["device_token_id", 1], ["status", 200]]
|
236743
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236744
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
|
236745
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
236746
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
236747
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236748
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
236749
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
236750
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236751
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
236752
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
236753
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236754
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
236755
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
236756
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236757
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
236758
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
236759
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236760
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
236761
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
236762
|
+
[1m[35m (0.1ms)[0m begin transaction
|
236763
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
236764
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236765
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236766
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
236767
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL[0m
|
236768
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
|
236769
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
236770
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
236771
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236772
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
236773
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
236774
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236775
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
236776
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
236777
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236778
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
236779
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
236780
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236781
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
236782
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
236783
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236784
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
236785
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
236786
|
+
[1m[35m (0.1ms)[0m begin transaction
|
236787
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
236788
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236789
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236790
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
236791
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236792
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236793
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ?[0m [["app_id", 1]]
|
236794
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
236795
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236796
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
236797
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
236798
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236799
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
236800
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
236801
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236802
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
236803
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
236804
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236805
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
236806
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
236807
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236808
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
236809
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
236810
|
+
[1m[35m (0.0ms)[0m begin transaction
|
236811
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236812
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236813
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236814
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236815
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236816
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236817
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
236818
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
236819
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236820
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
236821
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
236822
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236823
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
236824
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
236825
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236826
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
236827
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
236828
|
+
[1m[35m (23.9ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236829
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
236830
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
236831
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236832
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
236833
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
236834
|
+
[1m[35m (0.1ms)[0m begin transaction
|
236835
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236836
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236837
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236838
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236839
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236840
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236841
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
236842
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
236843
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236844
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
236845
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
236846
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236847
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
236848
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
236849
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236850
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
236851
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
236852
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236853
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
236854
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
236855
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236856
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
236857
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
236858
|
+
[1m[35m (0.1ms)[0m begin transaction
|
236859
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236860
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236861
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236862
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236863
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236864
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236865
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236866
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["notification_id", 1]]
|
236867
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236868
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236869
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
236870
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
|
236871
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ?[0m [["id", 1]]
|
236872
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236873
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
236874
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
236875
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236876
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
236877
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
236878
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236879
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
236880
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
236881
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236882
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
236883
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
236884
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236885
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
236886
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
236887
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236888
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
236889
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
236890
|
+
[1m[35m (0.0ms)[0m begin transaction
|
236891
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236892
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236893
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236894
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
236895
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236896
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236897
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236898
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236899
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236900
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236901
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236902
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
|
236903
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236904
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236905
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236906
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236907
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236908
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
|
236909
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
236910
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236911
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
236912
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236913
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
236914
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236915
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236916
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236917
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236918
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236919
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1[0m
|
236920
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 2]]
|
236921
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236922
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
236923
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236924
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
236925
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236926
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236927
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
236928
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236929
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)[0m
|
236930
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
236931
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
236932
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236933
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
236934
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", nil]]
|
236935
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236936
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
236937
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses"[0m
|
236938
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
236939
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 1]]
|
236940
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
236941
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
236942
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
|
236943
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
236944
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
236945
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236946
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
236947
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
236948
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236949
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
236950
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
236951
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236952
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
236953
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
236954
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
236955
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
236956
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
236957
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
236958
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
236959
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
236960
|
+
[1m[35m (0.1ms)[0m begin transaction
|
236961
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
236962
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236963
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236964
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
236965
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236966
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236967
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236968
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236969
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236970
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236971
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236972
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
|
236973
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236974
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236975
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236976
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236977
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236978
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
236979
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
236980
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236981
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
236982
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236983
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236984
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236985
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236986
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236987
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236988
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236989
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
236990
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
236991
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
236992
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
236993
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236994
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
236995
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1[0m
|
236996
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 2]]
|
236997
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236998
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
236999
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237000
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
237001
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237002
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237003
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
237004
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237005
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)[0m
|
237006
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
237007
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
237008
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237009
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
237010
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", nil]]
|
237011
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237012
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
|
237013
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 2]]
|
237014
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237015
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 4]]
|
237016
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", nil]]
|
237017
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237018
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
237019
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses"[0m
|
237020
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
237021
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 1]]
|
237022
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
237023
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 2]]
|
237024
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
|
237025
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
237026
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
237027
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237028
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237029
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237030
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237031
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237032
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
237033
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237034
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237035
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237036
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237037
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237038
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
237039
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237040
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237041
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
237042
|
+
[1m[35m (0.1ms)[0m begin transaction
|
237043
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237044
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237045
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237046
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
237047
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
237048
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237049
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237050
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237051
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237052
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237053
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
237054
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :sms], ["token", "ABCD9"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
237055
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237056
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
237057
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237058
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237059
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237060
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237061
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237062
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
237063
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
237064
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
237065
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237066
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237067
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237068
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237069
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237070
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
237071
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237072
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237073
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237074
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237075
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237076
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
237077
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237078
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237079
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
237080
|
+
[1m[35m (0.0ms)[0m begin transaction
|
237081
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237082
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
|
237083
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237084
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237085
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237086
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237087
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
237088
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-11@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
237089
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
237090
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
237091
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
237092
|
+
Completed 500 Internal Server Error in 1ms
|
237093
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
237094
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237095
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237096
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237097
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237098
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237099
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
237100
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237101
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237102
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237103
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237104
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237105
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
237106
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237107
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237108
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
237109
|
+
[1m[35m (0.0ms)[0m begin transaction
|
237110
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237111
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
|
237112
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237113
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
237114
|
+
Parameters: {"id"=>"59", "user_email"=>"person-12@example.com", "device_token"=>{"id"=>"59"}}
|
237115
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
|
237116
|
+
Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
237117
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237118
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
|
237119
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237120
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237121
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237122
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237123
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237124
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
|
237125
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 2]]
|
237126
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237127
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
237128
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10'
|
237129
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
237130
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237131
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
237132
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
237133
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237134
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
237135
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
237136
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237137
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
237138
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
237139
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237140
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
237141
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
237142
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237143
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
237144
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
237145
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
237146
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237147
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-14@example.com"]]
|
237148
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237149
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237150
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237151
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237152
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237153
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1[0m
|
237154
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
237155
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237156
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
237157
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
237158
|
+
Parameters: {"id"=>"1", "user_email"=>"person-14@example.com", "device_token"=>{"id"=>"1"}}
|
237159
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
237160
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
237161
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
237162
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
|
237163
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237164
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
237165
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237166
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
237167
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
237168
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
237169
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237170
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
237171
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
237172
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237173
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
237174
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
237175
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237176
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
237177
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
237178
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237179
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
237180
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
237181
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237182
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
237183
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
237184
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
237185
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237186
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-15@example.com"]]
|
237187
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237188
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237189
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237190
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237191
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237192
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1[0m
|
237193
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
237194
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237195
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
237196
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
237197
|
+
Parameters: {"token"=>"ABCD12", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD12", "provider"=>"mpns"}}
|
237198
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1[0m
|
237199
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237200
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
237201
|
+
Completed 500 Internal Server Error in 1ms
|
237202
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
237203
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237204
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237205
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237206
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237207
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237208
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
237209
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237210
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237211
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237212
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237213
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237214
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
237215
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237216
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237217
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
237218
|
+
[1m[35m (0.0ms)[0m begin transaction
|
237219
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237220
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
237221
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237222
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237223
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237224
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237225
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237226
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
|
237227
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
237228
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237229
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
237230
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
237231
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
237232
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
237233
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
237234
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
237235
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
237236
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
237237
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
237238
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13'
|
237239
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
237240
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237241
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
237242
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
237243
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237244
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
237245
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
237246
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237247
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
237248
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
237249
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237250
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
237251
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
237252
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237253
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
237254
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
237255
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
237256
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237257
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-17@example.com"]]
|
237258
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237259
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237260
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237261
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237262
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237263
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1[0m
|
237264
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
237265
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237266
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
237267
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
237268
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-17@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
237269
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
237270
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
237271
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
237272
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
|
237273
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237274
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
237275
|
+
Completed 500 Internal Server Error in 2ms
|
237276
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
237277
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237278
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
237279
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
237280
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237281
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
237282
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
237283
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237284
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
237285
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
237286
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237287
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
237288
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
237289
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237290
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
237291
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
237292
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
237293
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237294
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237295
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237296
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
237297
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
237298
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
237299
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237300
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
237301
|
+
Completed 500 Internal Server Error in 1ms
|
237302
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
237303
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237304
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237305
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237306
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237307
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237308
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
237309
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237310
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237311
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237312
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237313
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237314
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
237315
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237316
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237317
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
237318
|
+
[1m[35m (0.0ms)[0m begin transaction
|
237319
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237320
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
|
237321
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237322
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237323
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237324
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237325
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237326
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
|
237327
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
237328
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237329
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
237330
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237331
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-19@example.com"]]
|
237332
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237333
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
237334
|
+
Parameters: {"id"=>"1", "user_email"=>"person-19@example.com", "device_token"=>{"id"=>"1"}}
|
237335
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
237336
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
237337
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
237338
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
|
237339
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
237340
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
237341
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15'[0m
|
237342
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
237343
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237344
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237345
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237346
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237347
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237348
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
237349
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237350
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237351
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237352
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237353
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237354
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
237355
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237356
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237357
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
237358
|
+
[1m[35m (0.1ms)[0m begin transaction
|
237359
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237360
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
|
237361
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237362
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
237363
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-20@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
|
237364
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
237365
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237366
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
237367
|
+
Completed 500 Internal Server Error in 1ms
|
237368
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM "users";[0m
|
237369
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237370
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
237371
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
237372
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237373
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
237374
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
237375
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237376
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
237377
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
237378
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237379
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
237380
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
237381
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237382
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
237383
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
237384
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
237385
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
237386
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
237387
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237388
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237389
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237390
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237391
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237392
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1[0m
|
237393
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
237394
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237395
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
237396
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237397
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237398
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237399
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
237400
|
+
Parameters: {"token"=>"ABCD16", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-21@example.com", "device_token"=>{"token"=>"ABCD16", "provider"=>"mock", "app_id"=>"2"}}
|
237401
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
|
237402
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237403
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
237404
|
+
Completed 500 Internal Server Error in 1ms
|
237405
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
237406
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237407
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
237408
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
237409
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237410
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
237411
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
237412
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237413
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
237414
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
237415
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237416
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
237417
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
237418
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237419
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
237420
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
237421
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
237422
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237423
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-22@example.com"]]
|
237424
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237425
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237426
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237427
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237428
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237429
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1[0m
|
237430
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
237431
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237432
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
237433
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
237434
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237435
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237436
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237437
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237438
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
237439
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237440
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
237441
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD17"}, "user_email"=>"person-22@example.com", "notification"=>{}}
|
237442
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1
|
237443
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD17') LIMIT 1[0m
|
237444
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
237445
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1[0m
|
237446
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
|
237447
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
237448
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237449
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
237450
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237451
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
237452
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237453
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", nil]]
|
237454
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237455
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
|
237456
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
237457
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
237458
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
237459
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
237460
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
237461
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237462
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
237463
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
237464
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237465
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
237466
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
237467
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237468
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
237469
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
237470
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237471
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
237472
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
237473
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237474
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
237475
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
237476
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
237477
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237478
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-23@example.com"]]
|
237479
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237480
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237481
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237482
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237483
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237484
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1[0m
|
237485
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["user_id", 1]]
|
237486
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237487
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
237488
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
237489
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237490
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00]]
|
237491
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237492
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237493
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 13:33:49 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
237494
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237495
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237496
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-24@example.com"]]
|
237497
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237498
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
237499
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD18"}, "user_email"=>"person-24@example.com", "notification"=>{}}
|
237500
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-24@example.com' LIMIT 1[0m
|
237501
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD18') LIMIT 1
|
237502
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1[0m
|
237503
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-24@example.com' LIMIT 1
|
237504
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 1]]
|
237505
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
237506
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
237507
|
+
Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.3ms)
|
237508
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
237509
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
237510
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
237511
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
237512
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
237513
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237514
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
237515
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
237516
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237517
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
237518
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
237519
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237520
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
237521
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
237522
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237523
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
237524
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
237525
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237526
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
237527
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
237528
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
237529
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237530
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
237531
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237532
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237533
|
+
[1m[35mSQL (3.0ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237534
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237535
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
237536
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
237537
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
237538
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237539
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237540
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237541
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237542
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
237543
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237544
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
237545
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237546
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)[0m
|
237547
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
237548
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
237549
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237550
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
237551
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", nil]]
|
237552
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237553
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
237554
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
237555
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
237556
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
237557
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237558
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
237559
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
237560
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237561
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
237562
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
237563
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237564
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
237565
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
237566
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237567
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
237568
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
237569
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237570
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
237571
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
237572
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
237573
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
237574
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-2@example.com"]]
|
237575
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
237576
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237577
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237578
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237579
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
237580
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1[0m
|
237581
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
237582
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237583
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
237584
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237585
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237586
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237587
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
237588
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237589
|
+
[1m[35mNotifiable::Notification Load (0.2ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
|
237590
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
237591
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
237592
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237593
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
237594
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", nil]]
|
237595
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237596
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
237597
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
237598
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
237599
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237600
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
237601
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
237602
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237603
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
237604
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
237605
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237606
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
237607
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
237608
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237609
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
237610
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
237611
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237612
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
237613
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
237614
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
237615
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
237616
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
237617
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237618
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237619
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237620
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237621
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237622
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
237623
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
237624
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237625
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237626
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237627
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237628
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
237629
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
237630
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237631
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237632
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237633
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237634
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237635
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
237636
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237637
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237638
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237639
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237640
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237641
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
237642
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237643
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237644
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
237645
|
+
[1m[35m (0.1ms)[0m begin transaction
|
237646
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237647
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
|
237648
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237649
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237650
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237651
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237652
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237653
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
|
237654
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
237655
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237656
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
237657
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
237658
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237659
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237660
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237661
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237662
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
237663
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237664
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
237665
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD4"}, "user_email"=>"person-4@example.com", "notification"=>{}}
|
237666
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1[0m
|
237667
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD4') LIMIT 1
|
237668
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1[0m
|
237669
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
|
237670
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 1]]
|
237671
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
237672
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237673
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
|
237674
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237675
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
237676
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237677
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", nil]]
|
237678
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237679
|
+
Completed 200 OK in 7ms (ActiveRecord: 0.9ms)
|
237680
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
237681
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
237682
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
237683
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
237684
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
237685
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237686
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237687
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237688
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237689
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237690
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
237691
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237692
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237693
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237694
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237695
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237696
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
237697
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237698
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237699
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
237700
|
+
[1m[35m (0.1ms)[0m begin transaction
|
237701
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237702
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
|
237703
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237704
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
237705
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237706
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237707
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237708
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
|
237709
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
237710
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237711
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
237712
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
237713
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237714
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237715
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237716
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237717
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
237718
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237719
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237720
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
|
237721
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237722
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
237723
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD5"}, "user_email"=>"person-6@example.com", "notification"=>{}}
|
237724
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
|
237725
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD5') LIMIT 1[0m
|
237726
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
237727
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1[0m
|
237728
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
|
237729
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
237730
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
237731
|
+
Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.3ms)
|
237732
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
237733
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
237734
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
237735
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
237736
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
237737
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237738
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237739
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237740
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237741
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237742
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
237743
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237744
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237745
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237746
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237747
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237748
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
237749
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237750
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237751
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
237752
|
+
[1m[35m (0.0ms)[0m begin transaction
|
237753
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237754
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237755
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237756
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237757
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237758
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237759
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
237760
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
237761
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237762
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237763
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237764
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237765
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237766
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
237767
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237768
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237769
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237770
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237771
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237772
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
237773
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237774
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237775
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
237776
|
+
[1m[35m (0.0ms)[0m begin transaction
|
237777
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237778
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237779
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237780
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237781
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237782
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237783
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
237784
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
237785
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237786
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237787
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237788
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237789
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237790
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
237791
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237792
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237793
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237794
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237795
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237796
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
237797
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237798
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237799
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
237800
|
+
[1m[35m (0.0ms)[0m begin transaction
|
237801
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237802
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237803
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237804
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237805
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237806
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237807
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237808
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["notification_id", 1]]
|
237809
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237810
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237811
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
237812
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
|
237813
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ?[0m [["id", 1]]
|
237814
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237815
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
237816
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
237817
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237818
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237819
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237820
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237821
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237822
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
237823
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237824
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237825
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237826
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237827
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237828
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
237829
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237830
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237831
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
237832
|
+
[1m[35m (0.0ms)[0m begin transaction
|
237833
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237834
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237835
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237836
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237837
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237838
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237839
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ?[0m [["app_id", 1]]
|
237840
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
237841
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237842
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237843
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237844
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237845
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237846
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
237847
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237848
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237849
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237850
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237851
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237852
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
237853
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237854
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237855
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
237856
|
+
[1m[35m (0.0ms)[0m begin transaction
|
237857
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237858
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237859
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237860
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237861
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237862
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
237863
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237864
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
|
237865
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237866
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237867
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237868
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237869
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237870
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
|
237871
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
237872
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237873
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
237874
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
237875
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237876
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?) [["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["device_token_id", 1], ["status", 200]]
|
237877
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237878
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
|
237879
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
237880
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
237881
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237882
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237883
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237884
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237885
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237886
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
237887
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237888
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237889
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237890
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237891
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237892
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
237893
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237894
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237895
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
237896
|
+
[1m[35m (0.0ms)[0m begin transaction
|
237897
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237898
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237899
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237900
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
237901
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL[0m
|
237902
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
|
237903
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
237904
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
237905
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237906
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237907
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237908
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237909
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237910
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
237911
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237912
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237913
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237914
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237915
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237916
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
237917
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237918
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237919
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
237920
|
+
[1m[35m (0.0ms)[0m begin transaction
|
237921
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237922
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237923
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237924
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
237925
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237926
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237927
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237928
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237929
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237930
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
237931
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237932
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
|
237933
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237934
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237935
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237936
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237937
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237938
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
237939
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
237940
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237941
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
237942
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237943
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
237944
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
237945
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237946
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237947
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237948
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237949
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1[0m
|
237950
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 2]]
|
237951
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237952
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
237953
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237954
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
237955
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237956
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237957
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
237958
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
237959
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)[0m
|
237960
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
237961
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
237962
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237963
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
237964
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", nil]]
|
237965
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237966
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
237967
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses"[0m
|
237968
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
237969
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 1]]
|
237970
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
237971
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
237972
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
|
237973
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
237974
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
237975
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237976
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
237977
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
237978
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237979
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
237980
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
237981
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237982
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
237983
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
237984
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237985
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
237986
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
237987
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
237988
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
237989
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
237990
|
+
[1m[35m (0.1ms)[0m begin transaction
|
237991
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237992
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237993
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237994
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
237995
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
237996
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
237997
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237998
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
237999
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238000
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238001
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238002
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
|
238003
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238004
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
238005
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238006
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238007
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238008
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
|
238009
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
238010
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238011
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
238012
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238013
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238014
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238015
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238016
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238017
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238018
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238019
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
238020
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238021
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
238022
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238023
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238024
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238025
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1[0m
|
238026
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 2]]
|
238027
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238028
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
238029
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238030
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
238031
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238032
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238033
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
238034
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238035
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)[0m
|
238036
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
238037
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
238038
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
238039
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
238040
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", nil]]
|
238041
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238042
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
|
238043
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 2]]
|
238044
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238045
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 4]]
|
238046
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["params", nil]]
|
238047
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238048
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
238049
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses"[0m
|
238050
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
238051
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 1]]
|
238052
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
238053
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 2]]
|
238054
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
|
238055
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
238056
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
238057
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238058
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
238059
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
238060
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238061
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
238062
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
238063
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238064
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
238065
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
238066
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238067
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
238068
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
238069
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238070
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
238071
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
238072
|
+
[1m[35m (0.1ms)[0m begin transaction
|
238073
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238074
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238075
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238076
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238077
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-13@example.com"]]
|
238078
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238079
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238080
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238081
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238082
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238083
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1[0m
|
238084
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :sms], ["token", "ABCD11"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
238085
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238086
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
238087
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238088
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238089
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238090
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238091
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238092
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
238093
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
238094
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
238095
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238096
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
238097
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
238098
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238099
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
238100
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
238101
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238102
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
238103
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
238104
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238105
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
238106
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
238107
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238108
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
238109
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
238110
|
+
[1m[35m (0.1ms)[0m begin transaction
|
238111
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238112
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
238113
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238114
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238115
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238116
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238117
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238118
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
|
238119
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
238120
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238121
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
238122
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
238123
|
+
Parameters: {"token"=>"ABCD12", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD12", "provider"=>"mpns"}}
|
238124
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
|
238125
|
+
Unpermitted parameters: device_token
|
238126
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
238127
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238128
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
238129
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD12' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
238130
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["provider", "mpns"], ["user_id", nil], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238131
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238132
|
+
Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
|
238133
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
238134
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
238135
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
238136
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238137
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
238138
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
238139
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238140
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
238141
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
238142
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238143
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
238144
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
238145
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238146
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
238147
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
238148
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238149
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
238150
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
238151
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
238152
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238153
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-15@example.com"]]
|
238154
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238155
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
238156
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238157
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238158
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238159
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1[0m
|
238160
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
238161
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238162
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
238163
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238164
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
238165
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238166
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
238167
|
+
Parameters: {"id"=>"1", "user_email"=>"person-16@example.com", "device_token"=>{"id"=>"1"}}
|
238168
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
238169
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
238170
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
238171
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1[0m
|
238172
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
238173
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
238174
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13'
|
238175
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
238176
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238177
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
238178
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
238179
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238180
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
238181
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
238182
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238183
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
238184
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
238185
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238186
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
238187
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
238188
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238189
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
238190
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
238191
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
238192
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
238193
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-17@example.com"]]
|
238194
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238195
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
238196
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238197
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238198
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238199
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1[0m
|
238200
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
238201
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238202
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
238203
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
238204
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
238205
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
238206
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
238207
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
238208
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
238209
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
238210
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
238211
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14'[0m
|
238212
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
238213
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238214
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
238215
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
238216
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238217
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
238218
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
238219
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238220
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
238221
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
238222
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238223
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
238224
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
238225
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238226
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
238227
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
238228
|
+
[1m[35m (0.0ms)[0m begin transaction
|
238229
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238230
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
|
238231
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238232
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
238233
|
+
Parameters: {"id"=>"59", "user_email"=>"person-18@example.com", "device_token"=>{"id"=>"59"}}
|
238234
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
|
238235
|
+
Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
238236
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238237
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
|
238238
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238239
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238240
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238241
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238242
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238243
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
|
238244
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 2]]
|
238245
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238246
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
238247
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15'
|
238248
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
238249
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238250
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
238251
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
238252
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238253
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
238254
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
238255
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238256
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
238257
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
238258
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238259
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
238260
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
238261
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238262
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
238263
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
238264
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
238265
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238266
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-20@example.com"]]
|
238267
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238268
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
238269
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-20@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
|
238270
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
238271
|
+
Unpermitted parameters: user_email, device_token
|
238272
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
|
238273
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1[0m
|
238274
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238275
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
238276
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
238277
|
+
Completed 422 Unprocessable Entity in 9ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
238278
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
238279
|
+
[1m[35m (0.3ms)[0m DELETE FROM "users";
|
238280
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238281
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
238282
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
238283
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238284
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
238285
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
238286
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238287
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
238288
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
238289
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238290
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
238291
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
238292
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238293
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
238294
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
238295
|
+
[1m[35m (0.1ms)[0m begin transaction
|
238296
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238297
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238298
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238299
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
238300
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
238301
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
238302
|
+
Unpermitted parameters: device_token
|
238303
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
238304
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238305
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
238306
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
238307
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238308
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238309
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
238310
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
238311
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
238312
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
238313
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
238314
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
238315
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238316
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
238317
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
238318
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238319
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
238320
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
238321
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238322
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
238323
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
238324
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238325
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
238326
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
238327
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238328
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
238329
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
238330
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
238331
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
238332
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
238333
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238334
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238335
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238336
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238337
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238338
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1[0m
|
238339
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
238340
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238341
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
238342
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
238343
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-21@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
238344
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
238345
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
238346
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
238347
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
|
238348
|
+
Unpermitted parameters: id, user_email, device_token
|
238349
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1[0m
|
238350
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
|
238351
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238352
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
238353
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
238354
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238355
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238356
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.7ms)
|
238357
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
238358
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
238359
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
238360
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238361
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
238362
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
238363
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238364
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
238365
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
238366
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238367
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
238368
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
238369
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238370
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
238371
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
238372
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238373
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
238374
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
238375
|
+
[1m[35m (0.1ms)[0m begin transaction
|
238376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238377
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
|
238378
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238379
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238380
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238381
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238382
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238383
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
|
238384
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["user_id", 1]]
|
238385
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238386
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
238387
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238388
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238389
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238390
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
238391
|
+
Parameters: {"token"=>"ABCD17", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-22@example.com", "device_token"=>{"token"=>"ABCD17", "provider"=>"mock", "app_id"=>"2"}}
|
238392
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1[0m
|
238393
|
+
Unpermitted parameters: user_email, device_token
|
238394
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1
|
238395
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1[0m
|
238396
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
238397
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
238398
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD17' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
238399
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["app_id", 2], ["updated_at", Sat, 19 Apr 2014 13:34:27 UTC +00:00]]
|
238400
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238401
|
+
Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
238402
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
238403
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
238404
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
238405
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
238406
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
238407
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238408
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
238409
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
238410
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238411
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
238412
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
238413
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238414
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
238415
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
238416
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238417
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
238418
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
238419
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238420
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
238421
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
238422
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
238423
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238424
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-23@example.com"]]
|
238425
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238426
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238427
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:28 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:28 UTC +00:00]]
|
238428
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238429
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
238430
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-23@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
238431
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
238432
|
+
Unpermitted parameters: user_email, device_token
|
238433
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1[0m
|
238434
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1
|
238435
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238436
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
238437
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
238438
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:28 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 13:34:28 UTC +00:00], ["user_id", 1]]
|
238439
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238440
|
+
Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
238441
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
238442
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
238443
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
238444
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
238445
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
238446
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238447
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
238448
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
238449
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238450
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
238451
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
238452
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238453
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
238454
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
238455
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238456
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
238457
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
238458
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238459
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
238460
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
238461
|
+
[1m[35m (0.1ms)[0m begin transaction
|
238462
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
238463
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
|
238464
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238465
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
238466
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 13:34:28 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 13:34:28 UTC +00:00]]
|
238467
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
238468
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
238469
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1
|
238470
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 13:34:28 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Sat, 19 Apr 2014 13:34:28 UTC +00:00], ["user_id", 1]]
|
238471
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238472
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
238473
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
238474
|
+
Parameters: {"id"=>"1", "user_email"=>"person-24@example.com", "device_token"=>{"id"=>"1"}}
|
238475
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
238476
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
238477
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
238478
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-24@example.com' LIMIT 1[0m
|
238479
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238480
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ?[0m [["id", 1]]
|
238481
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238482
|
+
Completed 200 OK in 32ms (ActiveRecord: 0.5ms)
|
238483
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
238484
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
238485
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238486
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
238487
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
238488
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238489
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
238490
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
238491
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238492
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
238493
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
238494
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238495
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
238496
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
238497
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238498
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
238499
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|