notifiable-rails 0.15.0 → 0.15.1

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