notifiable-rails 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -238497,3 +238497,3527 @@ Completed 200 OK in 32ms (ActiveRecord: 0.5ms)
238497
238497
   (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238498
238498
   (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238499
238499
   (0.5ms) rollback transaction
238500
+  (0.3ms) begin transaction
238501
+  (0.0ms) SAVEPOINT active_record_1
238502
+ SQL (0.9ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
238503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
238504
+  (0.0ms) SAVEPOINT active_record_1
238505
+ SQL (26.9ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
238507
+ Processing by Notifiable::DeviceTokensController#create as JSON
238508
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-1@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
238509
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
238510
+ Unpermitted parameters: user_email, device_token
238511
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
238512
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
238513
+  (0.0ms) SAVEPOINT active_record_1
238514
+ 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]]
238515
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
238516
+ 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 14:11:53 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
238517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238518
+ Completed 200 OK in 28ms (Views: 0.1ms | ActiveRecord: 1.0ms)
238519
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
238520
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
238521
+ 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
238522
+ 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]]
238523
+  (0.0ms) DELETE FROM "users";
238524
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238525
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
238526
+  (0.0ms) DELETE FROM "notifiable_apps";
238527
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238528
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
238529
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
238530
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238531
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
238532
+  (0.1ms) DELETE FROM "notifiable_notifications";
238533
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238534
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
238535
+  (0.1ms) DELETE FROM "notifiable_statuses";
238536
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238537
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238538
+  (0.5ms) rollback transaction
238539
+  (0.0ms) begin transaction
238540
+  (0.0ms) SAVEPOINT active_record_1
238541
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
238542
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238543
+  (0.0ms) SAVEPOINT active_record_1
238544
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238546
+  (0.0ms) SAVEPOINT active_record_1
238547
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
238548
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
238549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238550
+ 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
238551
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
238552
+ Parameters: {"id"=>"1", "user_email"=>"person-2@example.com", "device_token"=>{"id"=>"1"}}
238553
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
238554
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
238555
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
238556
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
238557
+  (0.0ms) SAVEPOINT active_record_1
238558
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
238559
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238560
+ Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
238561
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
238562
+  (0.0ms) DELETE FROM "users";
238563
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238564
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
238565
+  (0.0ms) DELETE FROM "notifiable_apps";
238566
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238567
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
238568
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
238569
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238570
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
238571
+  (0.1ms) DELETE FROM "notifiable_notifications";
238572
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238573
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
238574
+  (0.0ms) DELETE FROM "notifiable_statuses";
238575
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238576
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238577
+  (0.5ms) rollback transaction
238578
+  (0.0ms) begin transaction
238579
+  (0.0ms) SAVEPOINT active_record_1
238580
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
238581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238582
+  (0.0ms) SAVEPOINT active_record_1
238583
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238585
+  (0.0ms) SAVEPOINT active_record_1
238586
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
238587
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
238588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238589
+ 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
238590
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
238591
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
238592
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
238593
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
238594
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
238595
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
238596
+ Filter chain halted as :ensure_authorized! rendered or redirected
238597
+ Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms)
238598
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2'
238599
+  (0.0ms) DELETE FROM "users";
238600
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238601
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
238602
+  (0.0ms) DELETE FROM "notifiable_apps";
238603
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238604
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
238605
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
238606
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238607
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
238608
+  (0.1ms) DELETE FROM "notifiable_notifications";
238609
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238610
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
238611
+  (0.0ms) DELETE FROM "notifiable_statuses";
238612
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238613
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238614
+  (0.5ms) rollback transaction
238615
+  (0.0ms) begin transaction
238616
+  (0.0ms) SAVEPOINT active_record_1
238617
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
238618
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238619
+  (0.0ms) SAVEPOINT active_record_1
238620
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238622
+  (0.0ms) SAVEPOINT active_record_1
238623
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
238624
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
238625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238626
+ 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
238627
+  (0.0ms) SAVEPOINT active_record_1
238628
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238630
+ Processing by Notifiable::DeviceTokensController#create as JSON
238631
+ Parameters: {"token"=>"ABCD3", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-4@example.com", "device_token"=>{"token"=>"ABCD3", "provider"=>"mock", "app_id"=>"2"}}
238632
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
238633
+ Unpermitted parameters: user_email, device_token
238634
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
238635
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
238636
+  (0.0ms) SAVEPOINT active_record_1
238637
+ 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]]
238638
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD3' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
238639
+ 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 14:11:53 UTC +00:00]]
238640
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238641
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.5ms)
238642
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
238643
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
238644
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
238645
+ 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]]
238646
+  (0.1ms) DELETE FROM "users";
238647
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238648
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
238649
+  (0.0ms) DELETE FROM "notifiable_apps";
238650
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238651
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
238652
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
238653
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238654
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
238655
+  (0.1ms) DELETE FROM "notifiable_notifications";
238656
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238657
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
238658
+  (0.0ms) DELETE FROM "notifiable_statuses";
238659
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238660
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238661
+  (0.5ms) rollback transaction
238662
+  (0.1ms) begin transaction
238663
+  (0.1ms) SAVEPOINT active_record_1
238664
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
238665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238666
+ Processing by Notifiable::DeviceTokensController#create as JSON
238667
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-5@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
238668
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
238669
+ Unpermitted parameters: user_email, device_token
238670
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
238671
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
238672
+  (0.0ms) SAVEPOINT active_record_1
238673
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
238674
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
238675
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms)
238676
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
238677
+  (0.4ms) DELETE FROM "users";
238678
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238679
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
238680
+  (0.1ms) DELETE FROM "notifiable_apps";
238681
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238682
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
238683
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
238684
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238685
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
238686
+  (0.0ms) DELETE FROM "notifiable_notifications";
238687
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238688
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
238689
+  (0.0ms) DELETE FROM "notifiable_statuses";
238690
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238691
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238692
+  (0.4ms) rollback transaction
238693
+  (0.1ms) begin transaction
238694
+  (0.1ms) SAVEPOINT active_record_1
238695
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238696
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238697
+ Processing by Notifiable::DeviceTokensController#create as JSON
238698
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
238699
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
238700
+ Unpermitted parameters: device_token
238701
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
238702
+  (0.0ms) SAVEPOINT active_record_1
238703
+ 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]]
238704
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
238705
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238707
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.9ms)
238708
+  (0.1ms) DELETE FROM "users";
238709
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238710
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
238711
+  (0.0ms) DELETE FROM "notifiable_apps";
238712
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238713
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
238714
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
238715
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238716
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
238717
+  (0.0ms) DELETE FROM "notifiable_notifications";
238718
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238719
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
238720
+  (0.0ms) DELETE FROM "notifiable_statuses";
238721
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238722
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238723
+  (0.4ms) rollback transaction
238724
+  (0.0ms) begin transaction
238725
+  (0.0ms) SAVEPOINT active_record_1
238726
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
238727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238728
+  (0.0ms) SAVEPOINT active_record_1
238729
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238730
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238731
+  (0.0ms) SAVEPOINT active_record_1
238732
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
238733
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
238734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238735
+ 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
238736
+ Processing by Notifiable::DeviceTokensController#create as JSON
238737
+ Parameters: {"token"=>"ABCD4", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD4", "provider"=>"mpns"}}
238738
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
238739
+ Unpermitted parameters: device_token
238740
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
238741
+  (0.0ms) SAVEPOINT active_record_1
238742
+ 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]]
238743
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD4' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
238744
+ SQL (0.1ms) 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 14:11:53 UTC +00:00]]
238745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238746
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.4ms)
238747
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
238748
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
238749
+  (0.1ms) DELETE FROM "users";
238750
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238751
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
238752
+  (0.0ms) DELETE FROM "notifiable_apps";
238753
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238754
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
238755
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
238756
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238757
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
238758
+  (0.1ms) DELETE FROM "notifiable_notifications";
238759
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238760
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
238761
+  (0.0ms) DELETE FROM "notifiable_statuses";
238762
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238763
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238764
+  (0.5ms) rollback transaction
238765
+  (0.0ms) begin transaction
238766
+  (0.0ms) SAVEPOINT active_record_1
238767
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
238768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238769
+  (0.0ms) SAVEPOINT active_record_1
238770
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238772
+  (0.0ms) SAVEPOINT active_record_1
238773
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
238774
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
238775
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238776
+ 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
238777
+  (0.0ms) SAVEPOINT active_record_1
238778
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
238779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238780
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
238781
+ Parameters: {"id"=>"1", "user_email"=>"person-8@example.com", "device_token"=>{"id"=>"1"}}
238782
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
238783
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
238784
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
238785
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
238786
+ Filter chain halted as :ensure_authorized! rendered or redirected
238787
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
238788
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
238789
+  (0.1ms) DELETE FROM "users";
238790
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238791
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
238792
+  (0.1ms) DELETE FROM "notifiable_apps";
238793
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238794
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
238795
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
238796
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238797
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
238798
+  (0.1ms) DELETE FROM "notifiable_notifications";
238799
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238800
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
238801
+  (0.0ms) DELETE FROM "notifiable_statuses";
238802
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238803
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238804
+  (0.4ms) rollback transaction
238805
+  (0.0ms) begin transaction
238806
+  (0.0ms) SAVEPOINT active_record_1
238807
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
238808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238809
+  (0.0ms) SAVEPOINT active_record_1
238810
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238811
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238812
+  (0.0ms) SAVEPOINT active_record_1
238813
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
238814
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
238815
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238816
+ 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
238817
+ Processing by Notifiable::DeviceTokensController#update as JSON
238818
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-9@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
238819
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
238820
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
238821
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
238822
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
238823
+ Unpermitted parameters: user_email, device_token
238824
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
238825
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
238826
+  (0.0ms) SAVEPOINT active_record_1
238827
+ 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]]
238828
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
238829
+ SQL (0.1ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238831
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
238832
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
238833
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
238834
+  (0.0ms) DELETE FROM "users";
238835
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238836
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
238837
+  (0.0ms) DELETE FROM "notifiable_apps";
238838
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238839
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
238840
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
238841
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238842
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
238843
+  (0.1ms) DELETE FROM "notifiable_notifications";
238844
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238845
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
238846
+  (0.0ms) DELETE FROM "notifiable_statuses";
238847
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238848
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238849
+  (0.5ms) rollback transaction
238850
+  (0.0ms) begin transaction
238851
+  (0.0ms) SAVEPOINT active_record_1
238852
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
238853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238854
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
238855
+ Parameters: {"id"=>"59", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"59"}}
238856
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
238857
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
238858
+  (0.0ms) SAVEPOINT active_record_1
238859
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
238860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238861
+  (0.0ms) SAVEPOINT active_record_1
238862
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238864
+  (0.0ms) SAVEPOINT active_record_1
238865
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
238866
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 2]]
238867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238868
+ 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
238869
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
238870
+  (0.0ms) DELETE FROM "users";
238871
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238872
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
238873
+  (0.0ms) DELETE FROM "notifiable_apps";
238874
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238875
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
238876
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
238877
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238878
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
238879
+  (0.0ms) DELETE FROM "notifiable_notifications";
238880
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238881
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
238882
+  (0.0ms) DELETE FROM "notifiable_statuses";
238883
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238884
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238885
+  (0.5ms) rollback transaction
238886
+  (0.0ms) begin transaction
238887
+  (0.0ms) SAVEPOINT active_record_1
238888
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238889
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238890
+  (0.0ms) SAVEPOINT active_record_1
238891
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238893
+  (0.2ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
238894
+  (0.1ms) DELETE FROM "users";
238895
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238896
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
238897
+  (0.0ms) DELETE FROM "notifiable_apps";
238898
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238899
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
238900
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
238901
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238902
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
238903
+  (0.0ms) DELETE FROM "notifiable_notifications";
238904
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238905
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
238906
+  (0.0ms) DELETE FROM "notifiable_statuses";
238907
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238908
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238909
+  (0.5ms) rollback transaction
238910
+  (0.0ms) begin transaction
238911
+  (0.0ms) SAVEPOINT active_record_1
238912
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
238913
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238914
+  (0.0ms) SAVEPOINT active_record_1
238915
+ 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 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238917
+  (0.0ms) SAVEPOINT active_record_1
238918
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
238919
+ 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 14:11:53 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD8"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
238920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238921
+  (0.0ms) SAVEPOINT active_record_1
238922
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238924
+  (0.0ms) SAVEPOINT active_record_1
238925
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
238926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238927
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
238928
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
238929
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
238930
+  (0.0ms) SAVEPOINT active_record_1
238931
+ 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]]
238932
+ 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 14:11:53 UTC +00:00], ["params", nil]]
238933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238934
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
238935
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
238936
+  (0.0ms) DELETE FROM "users";
238937
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238938
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
238939
+  (0.0ms) DELETE FROM "notifiable_apps";
238940
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238941
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
238942
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
238943
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238944
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
238945
+  (0.0ms) DELETE FROM "notifiable_notifications";
238946
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238947
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
238948
+  (0.0ms) DELETE FROM "notifiable_statuses";
238949
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238950
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238951
+  (0.5ms) rollback transaction
238952
+  (0.0ms) begin transaction
238953
+  (0.0ms) SAVEPOINT active_record_1
238954
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
238955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238956
+  (0.0ms) SAVEPOINT active_record_1
238957
+ 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 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238959
+  (0.0ms) SAVEPOINT active_record_1
238960
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
238961
+ 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 14:11:53 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD9"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
238962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238963
+  (0.1ms) SAVEPOINT active_record_1
238964
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
238965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238966
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
238967
+  (0.0ms) SAVEPOINT active_record_1
238968
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
238969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238970
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
238971
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
238972
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
238973
+  (0.0ms) SAVEPOINT active_record_1
238974
+ 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]]
238975
+ 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 14:11:53 UTC +00:00], ["params", nil]]
238976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238977
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
238978
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
238979
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
238980
+  (0.0ms) DELETE FROM "users";
238981
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238982
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
238983
+  (0.0ms) DELETE FROM "notifiable_apps";
238984
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238985
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
238986
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
238987
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238988
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
238989
+  (0.0ms) DELETE FROM "notifiable_notifications";
238990
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238991
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
238992
+  (0.0ms) DELETE FROM "notifiable_statuses";
238993
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
238994
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
238995
+  (0.5ms) rollback transaction
238996
+  (0.1ms) begin transaction
238997
+  (0.1ms) SAVEPOINT active_record_1
238998
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
238999
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239000
+  (0.1ms) SAVEPOINT active_record_1
239001
+ 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 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239003
+  (0.1ms) SAVEPOINT active_record_1
239004
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
239005
+ 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 14:11:53 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD10"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
239006
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239007
+  (0.1ms) SAVEPOINT active_record_1
239008
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239009
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239010
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
239011
+  (0.1ms) DELETE FROM "users";
239012
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239013
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239014
+  (0.0ms) DELETE FROM "notifiable_apps";
239015
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239016
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239017
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239018
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239019
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239020
+  (0.0ms) DELETE FROM "notifiable_notifications";
239021
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239022
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239023
+  (0.1ms) DELETE FROM "notifiable_statuses";
239024
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239025
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239026
+  (0.5ms) rollback transaction
239027
+  (0.1ms) begin transaction
239028
+  (0.0ms) SAVEPOINT active_record_1
239029
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
239030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239031
+  (0.0ms) SAVEPOINT active_record_1
239032
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239034
+  (0.0ms) SAVEPOINT active_record_1
239035
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
239036
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
239037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239038
+ 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
239039
+ 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]]
239040
+  (0.1ms) SAVEPOINT active_record_1
239041
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239043
+  (0.1ms) SAVEPOINT active_record_1
239044
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
239045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239046
+  (0.0ms) SAVEPOINT active_record_1
239047
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
239048
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239049
+ Processing by Notifiable::NotificationsController#opened as JSON
239050
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD11"}, "user_email"=>"person-16@example.com", "notification"=>{}}
239051
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
239052
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD11') LIMIT 1
239053
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
239054
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
239055
+ 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]]
239056
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
239057
+ Filter chain halted as :check_authorisation! rendered or redirected
239058
+ Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.4ms)
239059
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
239060
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
239061
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
239062
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
239063
+  (0.0ms) DELETE FROM "users";
239064
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239065
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239066
+  (0.0ms) DELETE FROM "notifiable_apps";
239067
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239068
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239069
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239070
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239071
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239072
+  (0.0ms) DELETE FROM "notifiable_notifications";
239073
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239074
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239075
+  (0.0ms) DELETE FROM "notifiable_statuses";
239076
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239077
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239078
+  (0.6ms) rollback transaction
239079
+  (0.1ms) begin transaction
239080
+  (0.1ms) SAVEPOINT active_record_1
239081
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
239082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239083
+  (0.1ms) SAVEPOINT active_record_1
239084
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239086
+  (0.0ms) SAVEPOINT active_record_1
239087
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
239088
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
239089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239090
+ 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
239091
+ 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]]
239092
+  (0.1ms) SAVEPOINT active_record_1
239093
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239095
+  (0.0ms) SAVEPOINT active_record_1
239096
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
239097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239098
+ Processing by Notifiable::NotificationsController#opened as JSON
239099
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD12"}, "user_email"=>"person-17@example.com", "notification"=>{}}
239100
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
239101
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD12') LIMIT 1
239102
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
239103
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
239104
+ 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]]
239105
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
239106
+  (0.0ms) SAVEPOINT active_record_1
239107
+ SQL (0.1ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
239108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239109
+ 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]]
239110
+  (0.0ms) SAVEPOINT active_record_1
239111
+ 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 14:11:53 UTC +00:00], ["params", nil]]
239112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239113
+ Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
239114
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
239115
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
239116
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
239117
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
239118
+  (0.1ms) DELETE FROM "users";
239119
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239120
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239121
+  (0.0ms) DELETE FROM "notifiable_apps";
239122
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239123
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239124
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239125
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239126
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239127
+  (0.0ms) DELETE FROM "notifiable_notifications";
239128
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239129
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239130
+  (0.0ms) DELETE FROM "notifiable_statuses";
239131
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239132
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239133
+  (0.5ms) rollback transaction
239134
+  (0.1ms) begin transaction
239135
+  (0.0ms) SAVEPOINT active_record_1
239136
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239137
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239138
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
239139
+  (0.0ms) SAVEPOINT active_record_1
239140
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239142
+  (0.0ms) SAVEPOINT active_record_1
239143
+ 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 14:11:53 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239145
+  (0.0ms) SAVEPOINT active_record_1
239146
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
239147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239148
+  (0.0ms) SAVEPOINT active_record_1
239149
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239151
+  (0.0ms) SAVEPOINT active_record_1
239152
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
239153
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
239154
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239155
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
239156
+  (0.0ms) SAVEPOINT active_record_1
239157
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239159
+  (0.0ms) SAVEPOINT active_record_1
239160
+ 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 14:11:53 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239162
+  (0.0ms) SAVEPOINT active_record_1
239163
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
239164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239165
+  (0.0ms) SAVEPOINT active_record_1
239166
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239168
+  (0.1ms) SAVEPOINT active_record_1
239169
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
239170
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 2]]
239171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239172
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
239173
+  (0.0ms) SAVEPOINT active_record_1
239174
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
239175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239176
+  (0.0ms) SAVEPOINT active_record_1
239177
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
239178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239179
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
239180
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
239181
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
239182
+  (0.0ms) SAVEPOINT active_record_1
239183
+ 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]]
239184
+ 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 14:11:53 UTC +00:00], ["params", nil]]
239185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239186
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
239187
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
239188
+  (0.0ms) SAVEPOINT active_record_1
239189
+ 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]]
239190
+ 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 14:11:53 UTC +00:00], ["params", nil]]
239191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239192
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
239193
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
239194
+ 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]]
239195
+ 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]]
239196
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
239197
+ 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]]
239198
+ 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]]
239199
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
239200
+  (0.0ms) DELETE FROM "users";
239201
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239202
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239203
+  (0.0ms) DELETE FROM "notifiable_apps";
239204
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239205
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239206
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239207
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239208
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239209
+  (0.0ms) DELETE FROM "notifiable_notifications";
239210
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239211
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239212
+  (0.0ms) DELETE FROM "notifiable_statuses";
239213
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239214
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239215
+  (0.5ms) rollback transaction
239216
+  (0.0ms) begin transaction
239217
+  (0.0ms) SAVEPOINT active_record_1
239218
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239220
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
239221
+  (0.0ms) SAVEPOINT active_record_1
239222
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239224
+  (0.0ms) SAVEPOINT active_record_1
239225
+ 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 14:11:53 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239227
+  (0.0ms) SAVEPOINT active_record_1
239228
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
239229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239230
+  (0.0ms) SAVEPOINT active_record_1
239231
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239233
+  (0.0ms) SAVEPOINT active_record_1
239234
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
239235
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
239236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239237
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
239238
+  (0.0ms) SAVEPOINT active_record_1
239239
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
239240
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239241
+  (0.0ms) SAVEPOINT active_record_1
239242
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239243
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239244
+  (0.0ms) SAVEPOINT active_record_1
239245
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
239246
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 2]]
239247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239248
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
239249
+  (0.0ms) SAVEPOINT active_record_1
239250
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
239251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239252
+  (0.0ms) SAVEPOINT active_record_1
239253
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
239254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239255
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
239256
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
239257
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
239258
+  (0.0ms) SAVEPOINT active_record_1
239259
+ 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]]
239260
+ 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 14:11:53 UTC +00:00], ["params", nil]]
239261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239262
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
239263
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
239264
+ 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]]
239265
+ 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]]
239266
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
239267
+ 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]]
239268
+ 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]]
239269
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
239270
+  (0.0ms) DELETE FROM "users";
239271
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239272
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239273
+  (0.0ms) DELETE FROM "notifiable_apps";
239274
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239275
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239276
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239277
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239278
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239279
+  (0.0ms) DELETE FROM "notifiable_notifications";
239280
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239281
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239282
+  (0.0ms) DELETE FROM "notifiable_statuses";
239283
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239284
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239285
+  (0.5ms) rollback transaction
239286
+  (0.1ms) begin transaction
239287
+  (0.0ms) SAVEPOINT active_record_1
239288
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239290
+  (0.0ms) SAVEPOINT active_record_1
239291
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
239292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239293
+  (0.0ms) SAVEPOINT active_record_1
239294
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239296
+  (0.0ms) SAVEPOINT active_record_1
239297
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
239298
+ 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 14:11:53 UTC +00:00], ["provider", :sms], ["token", "ABCD17"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
239299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239300
+  (0.1ms) SAVEPOINT active_record_1
239301
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239303
+  (0.0ms) SAVEPOINT active_record_1
239304
+ 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 14:11:53 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239306
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
239307
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
239308
+  (0.0ms) DELETE FROM "users";
239309
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239310
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
239311
+  (0.0ms) DELETE FROM "notifiable_apps";
239312
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239313
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239314
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239315
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239316
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239317
+  (0.0ms) DELETE FROM "notifiable_notifications";
239318
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239319
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239320
+  (0.0ms) DELETE FROM "notifiable_statuses";
239321
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239322
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239323
+  (0.5ms) rollback transaction
239324
+  (0.0ms) begin transaction
239325
+  (0.0ms) SAVEPOINT active_record_1
239326
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239327
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239328
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
239329
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
239330
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
239331
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
239332
+  (0.1ms) DELETE FROM "users";
239333
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239334
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239335
+  (0.0ms) DELETE FROM "notifiable_apps";
239336
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239337
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239338
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
239339
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239340
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239341
+  (0.0ms) DELETE FROM "notifiable_notifications";
239342
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239343
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239344
+  (0.1ms) DELETE FROM "notifiable_statuses";
239345
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239346
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239347
+  (0.4ms) rollback transaction
239348
+  (0.1ms) begin transaction
239349
+  (0.0ms) SAVEPOINT active_record_1
239350
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239351
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239352
+  (0.1ms) SAVEPOINT active_record_1
239353
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239355
+  (0.0ms) SAVEPOINT active_record_1
239356
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
239357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239358
+  (0.0ms) SAVEPOINT active_record_1
239359
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239361
+  (0.0ms) SAVEPOINT active_record_1
239362
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1
239363
+ 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 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
239364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239365
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
239366
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
239367
+  (0.0ms) SAVEPOINT active_record_1
239368
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["status", 200]]
239369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239370
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
239371
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
239372
+  (0.0ms) DELETE FROM "users";
239373
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239374
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239375
+  (0.0ms) DELETE FROM "notifiable_apps";
239376
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239377
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239378
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239379
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239380
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239381
+  (0.0ms) DELETE FROM "notifiable_notifications";
239382
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239383
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239384
+  (0.0ms) DELETE FROM "notifiable_statuses";
239385
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239386
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239387
+  (0.5ms) rollback transaction
239388
+  (0.0ms) begin transaction
239389
+  (0.0ms) SAVEPOINT active_record_1
239390
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239392
+  (0.0ms) SAVEPOINT active_record_1
239393
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239395
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
239396
+  (0.1ms) DELETE FROM "users";
239397
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239398
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239399
+  (0.0ms) DELETE FROM "notifiable_apps";
239400
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239401
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239402
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
239403
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239404
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239405
+  (0.0ms) DELETE FROM "notifiable_notifications";
239406
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239407
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239408
+  (0.0ms) DELETE FROM "notifiable_statuses";
239409
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239410
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239411
+  (0.4ms) rollback transaction
239412
+  (0.1ms) begin transaction
239413
+  (0.0ms) SAVEPOINT active_record_1
239414
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239415
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239416
+  (0.0ms) SAVEPOINT active_record_1
239417
+ 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 14:11:53 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239419
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
239420
+  (0.1ms) DELETE FROM "users";
239421
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239422
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239423
+  (0.0ms) DELETE FROM "notifiable_apps";
239424
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239425
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239426
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
239427
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239428
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239429
+  (0.0ms) DELETE FROM "notifiable_notifications";
239430
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239431
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239432
+  (0.0ms) DELETE FROM "notifiable_statuses";
239433
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239434
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239435
+  (0.5ms) rollback transaction
239436
+  (0.0ms) begin transaction
239437
+  (0.0ms) SAVEPOINT active_record_1
239438
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239440
+  (0.0ms) SAVEPOINT active_record_1
239441
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
239442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239443
+  (0.0ms) SAVEPOINT active_record_1
239444
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["notification_id", 1]]
239445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239446
+  (0.0ms) SAVEPOINT active_record_1
239447
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
239448
+ SQL (0.1ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
239449
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
239450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239451
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
239452
+  (0.1ms) DELETE FROM "users";
239453
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239454
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239455
+  (0.0ms) DELETE FROM "notifiable_apps";
239456
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239457
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239458
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
239459
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239460
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239461
+  (0.0ms) DELETE FROM "notifiable_notifications";
239462
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239463
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239464
+  (0.0ms) DELETE FROM "notifiable_statuses";
239465
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239466
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239467
+  (0.4ms) rollback transaction
239468
+  (0.3ms) begin transaction
239469
+  (0.0ms) SAVEPOINT active_record_1
239470
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
239471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239472
+  (0.0ms) SAVEPOINT active_record_1
239473
+ SQL (3.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00]]
239474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239475
+  (0.0ms) SAVEPOINT active_record_1
239476
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
239477
+ 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 14:12:05 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00], ["user_id", 1]]
239478
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239479
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
239480
+ 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]]
239481
+  (0.1ms) SAVEPOINT active_record_1
239482
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00]]
239483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239484
+  (0.0ms) SAVEPOINT active_record_1
239485
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
239486
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239487
+ Processing by Notifiable::NotificationsController#opened as JSON
239488
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD1"}, "user_email"=>"person-1@example.com", "notification"=>{}}
239489
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
239490
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD1') LIMIT 1
239491
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
239492
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
239493
+ 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]]
239494
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
239495
+  (0.0ms) SAVEPOINT active_record_1
239496
+ SQL (0.2ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
239497
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239498
+ Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
239499
+  (0.1ms) SAVEPOINT active_record_1
239500
+ SQL (0.3ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00], ["params", nil]]
239501
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239502
+ Completed 200 OK in 14ms (ActiveRecord: 1.7ms)
239503
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
239504
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
239505
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications"
239506
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
239507
+  (0.1ms) DELETE FROM "users";
239508
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239509
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
239510
+  (0.1ms) DELETE FROM "notifiable_apps";
239511
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239512
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239513
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239514
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239515
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239516
+  (0.1ms) DELETE FROM "notifiable_notifications";
239517
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239518
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239519
+  (0.0ms) DELETE FROM "notifiable_statuses";
239520
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239521
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239522
+  (6.5ms) rollback transaction
239523
+  (0.3ms) begin transaction
239524
+  (0.0ms) SAVEPOINT active_record_1
239525
+ SQL (2.6ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:12:10 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:12:10 UTC +00:00]]
239526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239527
+ Processing by Notifiable::DeviceTokensController#create as JSON
239528
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
239529
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239530
+ Unpermitted parameters: device_token
239531
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
239532
+  (0.0ms) SAVEPOINT active_record_1
239533
+ Notifiable::App Load (0.2ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
239534
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239535
+ SQL (1.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:12:10 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:12:10 UTC +00:00]]
239536
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239537
+ Completed 200 OK in 47ms (Views: 0.2ms | ActiveRecord: 2.2ms)
239538
+  (0.1ms) DELETE FROM "users";
239539
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239540
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
239541
+  (0.0ms) DELETE FROM "notifiable_apps";
239542
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239543
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239544
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239545
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239546
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239547
+  (0.1ms) DELETE FROM "notifiable_notifications";
239548
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239549
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239550
+  (0.1ms) DELETE FROM "notifiable_statuses";
239551
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239552
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239553
+  (0.5ms) rollback transaction
239554
+  (0.3ms) begin transaction
239555
+  (0.1ms) SAVEPOINT active_record_1
239556
+ SQL (2.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:12:19 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:12:19 UTC +00:00]]
239557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239558
+ Processing by Notifiable::DeviceTokensController#create as JSON
239559
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
239560
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239561
+ Unpermitted parameters: device_token
239562
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
239563
+  (0.0ms) SAVEPOINT active_record_1
239564
+ Notifiable::App Load (0.2ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
239565
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239566
+ SQL (1.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:12:19 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:12:19 UTC +00:00]]
239567
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239568
+ Completed 200 OK in 47ms (Views: 0.2ms | ActiveRecord: 2.2ms)
239569
+  (0.1ms) DELETE FROM "users";
239570
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239571
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
239572
+  (0.1ms) DELETE FROM "notifiable_apps";
239573
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239574
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239575
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239576
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239577
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239578
+  (0.1ms) DELETE FROM "notifiable_notifications";
239579
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239580
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239581
+  (0.1ms) DELETE FROM "notifiable_statuses";
239582
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239583
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239584
+  (6.5ms) rollback transaction
239585
+  (0.3ms) begin transaction
239586
+  (0.0ms) SAVEPOINT active_record_1
239587
+ SQL (2.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:12:35 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:12:35 UTC +00:00]]
239588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239589
+ Processing by Notifiable::DeviceTokensController#create as JSON
239590
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
239591
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239592
+ Unpermitted parameters: device_token
239593
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
239594
+  (0.0ms) SAVEPOINT active_record_1
239595
+ Notifiable::App Load (0.2ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
239596
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239597
+ SQL (1.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:12:35 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:12:35 UTC +00:00]]
239598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239599
+ Completed 200 OK in 51ms (Views: 0.1ms | ActiveRecord: 2.1ms)
239600
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
239601
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
239602
+ 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]]
239603
+  (0.0ms) SELECT COUNT(*) FROM "users"
239604
+  (0.1ms) DELETE FROM "users";
239605
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239606
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239607
+  (0.0ms) DELETE FROM "notifiable_apps";
239608
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239609
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239610
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239611
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239612
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239613
+  (0.1ms) DELETE FROM "notifiable_notifications";
239614
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239615
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239616
+  (0.1ms) DELETE FROM "notifiable_statuses";
239617
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239618
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239619
+  (6.7ms) rollback transaction
239620
+  (0.3ms) begin transaction
239621
+  (0.0ms) SAVEPOINT active_record_1
239622
+ SQL (2.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:13:14 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:13:14 UTC +00:00]]
239623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239624
+ Processing by Notifiable::DeviceTokensController#create as JSON
239625
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
239626
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239627
+ Unpermitted parameters: device_token
239628
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
239629
+  (0.0ms) SAVEPOINT active_record_1
239630
+ Notifiable::App Load (0.2ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
239631
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239632
+ SQL (1.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:13:14 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:13:14 UTC +00:00]]
239633
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239634
+ Completed 200 OK in 51ms (Views: 0.1ms | ActiveRecord: 2.1ms)
239635
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
239636
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
239637
+ 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]]
239638
+  (0.0ms) SELECT COUNT(*) FROM "users"
239639
+  (0.1ms) DELETE FROM "users";
239640
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239641
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239642
+  (0.0ms) DELETE FROM "notifiable_apps";
239643
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239644
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239645
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239646
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239647
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239648
+  (0.1ms) DELETE FROM "notifiable_notifications";
239649
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239650
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239651
+  (0.1ms) DELETE FROM "notifiable_statuses";
239652
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239653
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239654
+  (2.9ms) rollback transaction
239655
+  (0.3ms) begin transaction
239656
+  (0.0ms) SAVEPOINT active_record_1
239657
+ SQL (2.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:42 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:42 UTC +00:00]]
239658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239659
+ Processing by Notifiable::DeviceTokensController#create as JSON
239660
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
239661
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239662
+ Unpermitted parameters: device_token
239663
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
239664
+  (0.0ms) SAVEPOINT active_record_1
239665
+ 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]]
239666
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239667
+ SQL (1.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:14:42 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:14:42 UTC +00:00]]
239668
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239669
+ Completed 200 OK in 47ms (Views: 0.2ms | ActiveRecord: 2.0ms)
239670
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
239671
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
239672
+ 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]]
239673
+  (0.1ms) SELECT COUNT(*) FROM "users"
239674
+  (0.1ms) DELETE FROM "users";
239675
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239676
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
239677
+  (0.0ms) DELETE FROM "notifiable_apps";
239678
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239679
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239680
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239681
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239682
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239683
+  (0.1ms) DELETE FROM "notifiable_notifications";
239684
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239685
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239686
+  (0.1ms) DELETE FROM "notifiable_statuses";
239687
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239688
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239689
+  (0.5ms) rollback transaction
239690
+  (0.3ms) begin transaction
239691
+  (0.0ms) SAVEPOINT active_record_1
239692
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
239693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239694
+  (0.0ms) SAVEPOINT active_record_1
239695
+ SQL (3.0ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
239696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239697
+  (0.1ms) SAVEPOINT active_record_1
239698
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
239699
+ 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 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
239700
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239701
+ 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
239702
+ Processing by Notifiable::DeviceTokensController#update as JSON
239703
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-1@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
239704
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
239705
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
239706
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
239707
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
239708
+ Unpermitted parameters: id, user_email, device_token
239709
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
239710
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
239711
+  (0.0ms) SAVEPOINT active_record_1
239712
+ 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]]
239713
+ 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
239714
+ 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 14:14:46 UTC +00:00]]
239715
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239716
+ Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 0.8ms)
239717
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
239718
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
239719
+  (0.0ms) DELETE FROM "users";
239720
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239721
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239722
+  (0.0ms) DELETE FROM "notifiable_apps";
239723
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239724
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239725
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239726
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239727
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239728
+  (0.1ms) DELETE FROM "notifiable_notifications";
239729
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239730
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239731
+  (0.1ms) DELETE FROM "notifiable_statuses";
239732
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239733
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239734
+  (6.6ms) rollback transaction
239735
+  (0.1ms) begin transaction
239736
+  (0.1ms) SAVEPOINT active_record_1
239737
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
239738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239739
+ Processing by Notifiable::DeviceTokensController#create as JSON
239740
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-2@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
239741
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239742
+ Unpermitted parameters: user_email, device_token
239743
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
239744
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
239745
+  (0.0ms) SAVEPOINT active_record_1
239746
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239747
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
239748
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.2ms | ActiveRecord: 0.4ms)
239749
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
239750
+  (0.3ms) DELETE FROM "users";
239751
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239752
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
239753
+  (0.1ms) DELETE FROM "notifiable_apps";
239754
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239755
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239756
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
239757
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239758
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239759
+  (0.0ms) DELETE FROM "notifiable_notifications";
239760
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239761
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239762
+  (0.0ms) DELETE FROM "notifiable_statuses";
239763
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239764
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239765
+  (0.5ms) rollback transaction
239766
+  (0.0ms) begin transaction
239767
+  (0.0ms) SAVEPOINT active_record_1
239768
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
239769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239770
+  (0.0ms) SAVEPOINT active_record_1
239771
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
239772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239773
+ Processing by Notifiable::DeviceTokensController#create as JSON
239774
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-3@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
239775
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239776
+ Unpermitted parameters: user_email, device_token
239777
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
239778
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
239779
+  (0.0ms) SAVEPOINT active_record_1
239780
+ 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]]
239781
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239782
+ 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 14:14:46 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
239783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239784
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
239785
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
239786
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
239787
+ 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
239788
+ 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]]
239789
+  (0.1ms) DELETE FROM "users";
239790
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239791
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239792
+  (0.0ms) DELETE FROM "notifiable_apps";
239793
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239794
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239795
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239796
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239797
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239798
+  (0.0ms) DELETE FROM "notifiable_notifications";
239799
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239800
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239801
+  (0.0ms) DELETE FROM "notifiable_statuses";
239802
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239803
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239804
+  (0.5ms) rollback transaction
239805
+  (0.0ms) begin transaction
239806
+  (0.0ms) SAVEPOINT active_record_1
239807
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
239808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239809
+ Processing by Notifiable::DeviceTokensController#create as JSON
239810
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
239811
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239812
+ Unpermitted parameters: device_token
239813
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
239814
+  (0.0ms) SAVEPOINT active_record_1
239815
+ 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]]
239816
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
239817
+ SQL (0.6ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
239818
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239819
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.9ms)
239820
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
239821
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
239822
+ 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]]
239823
+  (0.1ms) SELECT COUNT(*) FROM "users"
239824
+  (0.1ms) DELETE FROM "users";
239825
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239826
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
239827
+  (0.0ms) DELETE FROM "notifiable_apps";
239828
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239829
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239830
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239831
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239832
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239833
+  (0.1ms) DELETE FROM "notifiable_notifications";
239834
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239835
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239836
+  (0.0ms) DELETE FROM "notifiable_statuses";
239837
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239838
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239839
+  (0.5ms) rollback transaction
239840
+  (0.0ms) begin transaction
239841
+  (0.0ms) SAVEPOINT active_record_1
239842
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
239843
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239844
+  (0.0ms) SAVEPOINT active_record_1
239845
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
239846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239847
+  (0.0ms) SAVEPOINT active_record_1
239848
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
239849
+ 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 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
239850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239851
+ 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
239852
+ Processing by Notifiable::DeviceTokensController#create as JSON
239853
+ Parameters: {"token"=>"ABCD2", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD2", "provider"=>"mpns"}}
239854
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
239855
+ Unpermitted parameters: device_token
239856
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
239857
+  (0.1ms) SAVEPOINT active_record_1
239858
+ 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]]
239859
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD2' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
239860
+ 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 14:14:46 UTC +00:00]]
239861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239862
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
239863
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
239864
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
239865
+  (0.1ms) DELETE FROM "users";
239866
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239867
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239868
+  (0.0ms) DELETE FROM "notifiable_apps";
239869
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239870
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239871
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239872
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239873
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239874
+  (0.0ms) DELETE FROM "notifiable_notifications";
239875
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239876
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239877
+  (0.1ms) DELETE FROM "notifiable_statuses";
239878
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239879
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239880
+  (0.5ms) rollback transaction
239881
+  (0.0ms) begin transaction
239882
+  (0.0ms) SAVEPOINT active_record_1
239883
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
239884
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239885
+  (0.0ms) SAVEPOINT active_record_1
239886
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
239887
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239888
+  (0.0ms) SAVEPOINT active_record_1
239889
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
239890
+ 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 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
239891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239892
+ 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
239893
+  (0.0ms) SAVEPOINT active_record_1
239894
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
239895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239896
+ Processing by Notifiable::DeviceTokensController#create as JSON
239897
+ Parameters: {"token"=>"ABCD3", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-5@example.com", "device_token"=>{"token"=>"ABCD3", "provider"=>"mock", "app_id"=>"2"}}
239898
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
239899
+ Unpermitted parameters: user_email, device_token
239900
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
239901
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
239902
+  (0.0ms) SAVEPOINT active_record_1
239903
+ 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]]
239904
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD3' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
239905
+ SQL (0.1ms) UPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["app_id", 2], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
239906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239907
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
239908
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
239909
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
239910
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
239911
+ 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]]
239912
+  (0.1ms) DELETE FROM "users";
239913
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239914
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239915
+  (0.0ms) DELETE FROM "notifiable_apps";
239916
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239917
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239918
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239919
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239920
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239921
+  (0.0ms) DELETE FROM "notifiable_notifications";
239922
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239923
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239924
+  (0.0ms) DELETE FROM "notifiable_statuses";
239925
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239926
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239927
+  (0.5ms) rollback transaction
239928
+  (0.1ms) begin transaction
239929
+  (0.0ms) SAVEPOINT active_record_1
239930
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
239931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239932
+  (0.0ms) SAVEPOINT active_record_1
239933
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
239934
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239935
+  (0.0ms) SAVEPOINT active_record_1
239936
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
239937
+ 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 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
239938
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239939
+ 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
239940
+  (0.0ms) SAVEPOINT active_record_1
239941
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
239942
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239943
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
239944
+ Parameters: {"id"=>"1", "user_email"=>"person-7@example.com", "device_token"=>{"id"=>"1"}}
239945
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
239946
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
239947
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
239948
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
239949
+ Filter chain halted as :ensure_authorized! rendered or redirected
239950
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
239951
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'
239952
+  (0.1ms) DELETE FROM "users";
239953
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239954
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239955
+  (0.0ms) DELETE FROM "notifiable_apps";
239956
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239957
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239958
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239959
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239960
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
239961
+  (0.1ms) DELETE FROM "notifiable_notifications";
239962
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239963
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
239964
+  (0.0ms) DELETE FROM "notifiable_statuses";
239965
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239966
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
239967
+  (0.5ms) rollback transaction
239968
+  (0.0ms) begin transaction
239969
+  (0.0ms) SAVEPOINT active_record_1
239970
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
239971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239972
+  (0.0ms) SAVEPOINT active_record_1
239973
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
239974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239975
+  (0.0ms) SAVEPOINT active_record_1
239976
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
239977
+ 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 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
239978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239979
+ 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
239980
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
239981
+ Parameters: {"id"=>"1", "user_email"=>"person-8@example.com", "device_token"=>{"id"=>"1"}}
239982
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
239983
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
239984
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
239985
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
239986
+  (0.0ms) SAVEPOINT active_record_1
239987
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
239988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239989
+ Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
239990
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
239991
+  (0.0ms) DELETE FROM "users";
239992
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239993
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
239994
+  (0.0ms) DELETE FROM "notifiable_apps";
239995
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239996
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
239997
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
239998
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239999
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240000
+  (0.1ms) DELETE FROM "notifiable_notifications";
240001
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240002
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240003
+  (0.0ms) DELETE FROM "notifiable_statuses";
240004
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240005
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240006
+  (0.5ms) rollback transaction
240007
+  (0.0ms) begin transaction
240008
+  (0.0ms) SAVEPOINT active_record_1
240009
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
240010
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240011
+  (0.0ms) SAVEPOINT active_record_1
240012
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
240013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240014
+  (0.0ms) SAVEPOINT active_record_1
240015
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
240016
+ 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 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
240017
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240018
+ 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
240019
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
240020
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
240021
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
240022
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
240023
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
240024
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
240025
+ Filter chain halted as :ensure_authorized! rendered or redirected
240026
+ Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms)
240027
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'
240028
+  (0.1ms) DELETE FROM "users";
240029
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240030
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240031
+  (0.0ms) DELETE FROM "notifiable_apps";
240032
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240033
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240034
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240035
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240036
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240037
+  (0.1ms) DELETE FROM "notifiable_notifications";
240038
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240039
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240040
+  (0.1ms) DELETE FROM "notifiable_statuses";
240041
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240042
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240043
+  (0.5ms) rollback transaction
240044
+  (0.1ms) begin transaction
240045
+  (0.1ms) SAVEPOINT active_record_1
240046
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
240047
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240048
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
240049
+ Parameters: {"id"=>"59", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"59"}}
240050
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
240051
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
240052
+  (0.1ms) SAVEPOINT active_record_1
240053
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
240054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240055
+  (0.0ms) SAVEPOINT active_record_1
240056
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
240057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240058
+  (0.0ms) SAVEPOINT active_record_1
240059
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
240060
+ 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 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 2]]
240061
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240062
+ 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
240063
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
240064
+  (0.1ms) DELETE FROM "users";
240065
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240066
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240067
+  (0.1ms) DELETE FROM "notifiable_apps";
240068
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240069
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240070
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240071
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240072
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240073
+  (0.1ms) DELETE FROM "notifiable_notifications";
240074
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240075
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240076
+  (0.1ms) DELETE FROM "notifiable_statuses";
240077
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240078
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240079
+  (0.4ms) rollback transaction
240080
+  (0.3ms) begin transaction
240081
+  (0.0ms) SAVEPOINT active_record_1
240082
+ SQL (2.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:53 UTC +00:00]]
240083
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240084
+  (0.0ms) SAVEPOINT active_record_1
240085
+ SQL (1.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:53 UTC +00:00]]
240086
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240087
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
240088
+  (0.1ms) DELETE FROM "users";
240089
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240090
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240091
+  (0.0ms) DELETE FROM "notifiable_apps";
240092
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240093
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240094
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
240095
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240096
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240097
+  (0.0ms) DELETE FROM "notifiable_notifications";
240098
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240099
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240100
+  (0.1ms) DELETE FROM "notifiable_statuses";
240101
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240102
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240103
+  (6.6ms) rollback transaction
240104
+  (0.1ms) begin transaction
240105
+  (0.1ms) SAVEPOINT active_record_1
240106
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
240107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240108
+  (0.0ms) SAVEPOINT active_record_1
240109
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240111
+ Processing by Notifiable::DeviceTokensController#create as JSON
240112
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-1@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
240113
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
240114
+ Unpermitted parameters: user_email, device_token
240115
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
240116
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
240117
+  (0.0ms) SAVEPOINT active_record_1
240118
+ 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]]
240119
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
240120
+ 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 14:16:54 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240122
+ Completed 200 OK in 18ms (Views: 0.1ms | ActiveRecord: 0.9ms)
240123
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
240124
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
240125
+ 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
240126
+ 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]]
240127
+  (0.1ms) DELETE FROM "users";
240128
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240129
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240130
+  (0.0ms) DELETE FROM "notifiable_apps";
240131
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240132
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240133
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240134
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240135
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240136
+  (0.1ms) DELETE FROM "notifiable_notifications";
240137
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240138
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240139
+  (0.0ms) DELETE FROM "notifiable_statuses";
240140
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240141
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240142
+  (0.5ms) rollback transaction
240143
+  (0.1ms) begin transaction
240144
+  (0.0ms) SAVEPOINT active_record_1
240145
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
240146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240147
+  (0.0ms) SAVEPOINT active_record_1
240148
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240150
+  (0.0ms) SAVEPOINT active_record_1
240151
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
240152
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240154
+ 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
240155
+  (0.0ms) SAVEPOINT active_record_1
240156
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240158
+ Processing by Notifiable::DeviceTokensController#create as JSON
240159
+ Parameters: {"token"=>"ABCD1", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-2@example.com", "device_token"=>{"token"=>"ABCD1", "provider"=>"mock", "app_id"=>"2"}}
240160
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
240161
+ Unpermitted parameters: user_email, device_token
240162
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
240163
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
240164
+  (0.0ms) SAVEPOINT active_record_1
240165
+ 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]]
240166
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD1' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
240167
+ 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 14:16:54 UTC +00:00]]
240168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240169
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
240170
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
240171
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
240172
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
240173
+ 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]]
240174
+  (0.0ms) DELETE FROM "users";
240175
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240176
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240177
+  (0.0ms) DELETE FROM "notifiable_apps";
240178
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240179
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240180
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240181
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240182
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240183
+  (0.1ms) DELETE FROM "notifiable_notifications";
240184
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240185
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240186
+  (0.1ms) DELETE FROM "notifiable_statuses";
240187
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240188
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240189
+  (0.5ms) rollback transaction
240190
+  (0.1ms) begin transaction
240191
+  (0.1ms) SAVEPOINT active_record_1
240192
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240194
+ Processing by Notifiable::DeviceTokensController#create as JSON
240195
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
240196
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
240197
+ Unpermitted parameters: device_token
240198
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
240199
+  (0.0ms) SAVEPOINT active_record_1
240200
+ 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]]
240201
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
240202
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240204
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
240205
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
240206
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
240207
+ 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]]
240208
+  (0.1ms) SELECT COUNT(*) FROM "users"
240209
+  (0.1ms) DELETE FROM "users";
240210
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240211
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
240212
+  (0.0ms) DELETE FROM "notifiable_apps";
240213
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240214
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240215
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240216
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240217
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240218
+  (0.1ms) DELETE FROM "notifiable_notifications";
240219
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240220
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240221
+  (0.1ms) DELETE FROM "notifiable_statuses";
240222
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240223
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240224
+  (0.6ms) rollback transaction
240225
+  (0.1ms) begin transaction
240226
+  (0.0ms) SAVEPOINT active_record_1
240227
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
240228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240229
+ Processing by Notifiable::DeviceTokensController#create as JSON
240230
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-3@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
240231
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
240232
+ Unpermitted parameters: user_email, device_token
240233
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
240234
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
240235
+  (0.0ms) SAVEPOINT active_record_1
240236
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
240237
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
240238
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
240239
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
240240
+  (0.3ms) DELETE FROM "users";
240241
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240242
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
240243
+  (0.1ms) DELETE FROM "notifiable_apps";
240244
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240245
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240246
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
240247
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240248
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240249
+  (0.0ms) DELETE FROM "notifiable_notifications";
240250
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240251
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240252
+  (0.0ms) DELETE FROM "notifiable_statuses";
240253
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240254
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240255
+  (0.5ms) rollback transaction
240256
+  (0.0ms) begin transaction
240257
+  (0.0ms) SAVEPOINT active_record_1
240258
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
240259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240260
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
240261
+ Parameters: {"id"=>"59", "user_email"=>"person-4@example.com", "device_token"=>{"id"=>"59"}}
240262
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
240263
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
240264
+  (0.0ms) SAVEPOINT active_record_1
240265
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
240266
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240267
+  (0.1ms) SAVEPOINT active_record_1
240268
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240270
+  (0.0ms) SAVEPOINT active_record_1
240271
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
240272
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 2]]
240273
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240274
+ 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
240275
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2'
240276
+  (0.1ms) DELETE FROM "users";
240277
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240278
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240279
+  (0.0ms) DELETE FROM "notifiable_apps";
240280
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240281
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240282
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240283
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240284
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240285
+  (0.1ms) DELETE FROM "notifiable_notifications";
240286
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240287
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240288
+  (0.0ms) DELETE FROM "notifiable_statuses";
240289
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240290
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240291
+  (0.5ms) rollback transaction
240292
+  (0.1ms) begin transaction
240293
+  (0.0ms) SAVEPOINT active_record_1
240294
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
240295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240296
+  (0.0ms) SAVEPOINT active_record_1
240297
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240299
+  (0.0ms) SAVEPOINT active_record_1
240300
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
240301
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240303
+ 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
240304
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
240305
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
240306
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
240307
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
240308
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
240309
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
240310
+ Filter chain halted as :ensure_authorized! rendered or redirected
240311
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
240312
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3'
240313
+  (0.1ms) DELETE FROM "users";
240314
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240315
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240316
+  (0.0ms) DELETE FROM "notifiable_apps";
240317
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240318
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240319
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240320
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240321
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240322
+  (0.1ms) DELETE FROM "notifiable_notifications";
240323
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240324
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240325
+  (0.0ms) DELETE FROM "notifiable_statuses";
240326
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240327
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240328
+  (0.4ms) rollback transaction
240329
+  (0.0ms) begin transaction
240330
+  (0.0ms) SAVEPOINT active_record_1
240331
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
240332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240333
+  (0.0ms) SAVEPOINT active_record_1
240334
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240336
+  (0.0ms) SAVEPOINT active_record_1
240337
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
240338
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240340
+ 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
240341
+  (0.0ms) SAVEPOINT active_record_1
240342
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
240343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240344
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
240345
+ Parameters: {"id"=>"1", "user_email"=>"person-8@example.com", "device_token"=>{"id"=>"1"}}
240346
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
240347
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
240348
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
240349
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
240350
+ Filter chain halted as :ensure_authorized! rendered or redirected
240351
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
240352
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'
240353
+  (0.0ms) DELETE FROM "users";
240354
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240355
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240356
+  (0.0ms) DELETE FROM "notifiable_apps";
240357
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240358
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240359
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240360
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240361
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240362
+  (0.1ms) DELETE FROM "notifiable_notifications";
240363
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240364
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240365
+  (0.0ms) DELETE FROM "notifiable_statuses";
240366
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240367
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240368
+  (0.5ms) rollback transaction
240369
+  (0.1ms) begin transaction
240370
+  (0.0ms) SAVEPOINT active_record_1
240371
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
240372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240373
+  (0.0ms) SAVEPOINT active_record_1
240374
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240376
+  (0.0ms) SAVEPOINT active_record_1
240377
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
240378
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240379
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240380
+ 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
240381
+ Processing by Notifiable::DeviceTokensController#create as JSON
240382
+ Parameters: {"token"=>"ABCD5", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD5", "provider"=>"mpns"}}
240383
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
240384
+ Unpermitted parameters: device_token
240385
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
240386
+  (0.0ms) SAVEPOINT active_record_1
240387
+ 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]]
240388
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD5' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
240389
+ 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 14:16:54 UTC +00:00]]
240390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240391
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.4ms)
240392
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
240393
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
240394
+  (0.0ms) DELETE FROM "users";
240395
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240396
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240397
+  (0.0ms) DELETE FROM "notifiable_apps";
240398
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240399
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240400
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240401
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240402
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240403
+  (0.1ms) DELETE FROM "notifiable_notifications";
240404
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240405
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240406
+  (0.0ms) DELETE FROM "notifiable_statuses";
240407
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240408
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240409
+  (0.5ms) rollback transaction
240410
+  (0.0ms) begin transaction
240411
+  (0.0ms) SAVEPOINT active_record_1
240412
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
240413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240414
+  (0.0ms) SAVEPOINT active_record_1
240415
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240417
+  (0.0ms) SAVEPOINT active_record_1
240418
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
240419
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240420
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240421
+ 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
240422
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
240423
+ Parameters: {"id"=>"1", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"1"}}
240424
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
240425
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
240426
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
240427
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
240428
+  (0.0ms) SAVEPOINT active_record_1
240429
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
240430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240431
+ Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
240432
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
240433
+  (0.0ms) DELETE FROM "users";
240434
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240435
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240436
+  (0.0ms) DELETE FROM "notifiable_apps";
240437
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240438
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240439
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240440
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240441
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240442
+  (0.1ms) DELETE FROM "notifiable_notifications";
240443
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240444
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240445
+  (0.1ms) DELETE FROM "notifiable_statuses";
240446
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240447
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240448
+  (0.4ms) rollback transaction
240449
+  (0.0ms) begin transaction
240450
+  (0.0ms) SAVEPOINT active_record_1
240451
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
240452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240453
+  (0.0ms) SAVEPOINT active_record_1
240454
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240455
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240456
+  (0.0ms) SAVEPOINT active_record_1
240457
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
240458
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240460
+ 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
240461
+ Processing by Notifiable::DeviceTokensController#update as JSON
240462
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-11@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
240463
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
240464
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
240465
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
240466
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
240467
+ Unpermitted parameters: user_email, device_token
240468
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
240469
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
240470
+  (0.0ms) SAVEPOINT active_record_1
240471
+ 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]]
240472
+ 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
240473
+ SQL (0.1ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240475
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
240476
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
240477
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
240478
+  (0.1ms) DELETE FROM "users";
240479
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240480
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240481
+  (0.0ms) DELETE FROM "notifiable_apps";
240482
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240483
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240484
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240485
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240486
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240487
+  (0.1ms) DELETE FROM "notifiable_notifications";
240488
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240489
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240490
+  (0.1ms) DELETE FROM "notifiable_statuses";
240491
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240492
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240493
+  (0.5ms) rollback transaction
240494
+  (0.1ms) begin transaction
240495
+  (0.0ms) SAVEPOINT active_record_1
240496
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
240497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240498
+  (0.0ms) SAVEPOINT active_record_1
240499
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240501
+  (0.0ms) SAVEPOINT active_record_1
240502
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
240503
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240505
+ 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
240506
+ 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]]
240507
+  (0.0ms) SAVEPOINT active_record_1
240508
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240510
+  (0.1ms) SAVEPOINT active_record_1
240511
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
240512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240513
+  (0.0ms) SAVEPOINT active_record_1
240514
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
240515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240516
+ Processing by Notifiable::NotificationsController#opened as JSON
240517
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD8"}, "user_email"=>"person-13@example.com", "notification"=>{}}
240518
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
240519
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD8') LIMIT 1
240520
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
240521
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
240522
+ 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]]
240523
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
240524
+ Filter chain halted as :check_authorisation! rendered or redirected
240525
+ Completed 406 Not Acceptable in 4ms (ActiveRecord: 0.4ms)
240526
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
240527
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
240528
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications"
240529
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
240530
+  (0.0ms) DELETE FROM "users";
240531
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240532
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240533
+  (0.0ms) DELETE FROM "notifiable_apps";
240534
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240535
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240536
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240537
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240538
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240539
+  (0.0ms) DELETE FROM "notifiable_notifications";
240540
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240541
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240542
+  (0.0ms) DELETE FROM "notifiable_statuses";
240543
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240544
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240545
+  (0.5ms) rollback transaction
240546
+  (0.0ms) begin transaction
240547
+  (0.0ms) SAVEPOINT active_record_1
240548
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
240549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240550
+  (0.0ms) SAVEPOINT active_record_1
240551
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240552
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240553
+  (0.0ms) SAVEPOINT active_record_1
240554
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
240555
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240556
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240557
+ 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
240558
+ 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]]
240559
+  (0.0ms) SAVEPOINT active_record_1
240560
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240562
+  (0.0ms) SAVEPOINT active_record_1
240563
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
240564
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240565
+ Processing by Notifiable::NotificationsController#opened as JSON
240566
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD9"}, "user_email"=>"person-14@example.com", "notification"=>{}}
240567
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
240568
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD9') LIMIT 1
240569
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
240570
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
240571
+ 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]]
240572
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
240573
+  (0.0ms) SAVEPOINT active_record_1
240574
+ SQL (0.1ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
240575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240576
+ 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]]
240577
+  (0.0ms) SAVEPOINT active_record_1
240578
+ 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 14:16:54 UTC +00:00], ["params", nil]]
240579
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240580
+ Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
240581
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
240582
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
240583
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
240584
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
240585
+  (0.0ms) DELETE FROM "users";
240586
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240587
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240588
+  (0.0ms) DELETE FROM "notifiable_apps";
240589
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240590
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240591
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240592
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240593
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240594
+  (0.0ms) DELETE FROM "notifiable_notifications";
240595
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240596
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240597
+  (0.0ms) DELETE FROM "notifiable_statuses";
240598
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240599
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240600
+  (0.5ms) rollback transaction
240601
+  (0.1ms) begin transaction
240602
+  (0.0ms) SAVEPOINT active_record_1
240603
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240604
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240605
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
240606
+  (0.0ms) SAVEPOINT active_record_1
240607
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240608
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240609
+  (0.0ms) SAVEPOINT active_record_1
240610
+ 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 14:16:54 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240612
+  (0.0ms) SAVEPOINT active_record_1
240613
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
240614
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240615
+  (0.0ms) SAVEPOINT active_record_1
240616
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240617
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240618
+  (0.0ms) SAVEPOINT active_record_1
240619
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
240620
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240622
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
240623
+  (0.0ms) SAVEPOINT active_record_1
240624
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
240625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240626
+  (0.0ms) SAVEPOINT active_record_1
240627
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240629
+  (0.0ms) SAVEPOINT active_record_1
240630
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
240631
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 2]]
240632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240633
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
240634
+  (0.0ms) SAVEPOINT active_record_1
240635
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
240636
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240637
+  (0.0ms) SAVEPOINT active_record_1
240638
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
240639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240640
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
240641
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
240642
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
240643
+  (0.0ms) SAVEPOINT active_record_1
240644
+ 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]]
240645
+ 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 14:16:54 UTC +00:00], ["params", nil]]
240646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240647
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
240648
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
240649
+ 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]]
240650
+ 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]]
240651
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
240652
+ 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]]
240653
+ 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]]
240654
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
240655
+  (0.0ms) DELETE FROM "users";
240656
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240657
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240658
+  (0.0ms) DELETE FROM "notifiable_apps";
240659
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240660
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240661
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240662
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240663
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240664
+  (0.0ms) DELETE FROM "notifiable_notifications";
240665
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240666
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240667
+  (0.0ms) DELETE FROM "notifiable_statuses";
240668
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240669
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240670
+  (0.5ms) rollback transaction
240671
+  (0.1ms) begin transaction
240672
+  (0.1ms) SAVEPOINT active_record_1
240673
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240674
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240675
+  (0.0ms) SAVEPOINT active_record_1
240676
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
240677
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240678
+  (0.1ms) SAVEPOINT active_record_1
240679
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240681
+  (0.0ms) SAVEPOINT active_record_1
240682
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
240683
+ 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 14:16:54 UTC +00:00], ["provider", :sms], ["token", "ABCD12"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240685
+  (0.1ms) SAVEPOINT active_record_1
240686
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240688
+  (0.0ms) SAVEPOINT active_record_1
240689
+ 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 14:16:54 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240691
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
240692
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
240693
+  (0.0ms) DELETE FROM "users";
240694
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240695
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
240696
+  (0.0ms) DELETE FROM "notifiable_apps";
240697
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240698
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240699
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240700
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240701
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240702
+  (0.0ms) DELETE FROM "notifiable_notifications";
240703
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240704
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240705
+  (0.0ms) DELETE FROM "notifiable_statuses";
240706
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240707
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240708
+  (0.4ms) rollback transaction
240709
+  (0.0ms) begin transaction
240710
+  (0.0ms) SAVEPOINT active_record_1
240711
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240713
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
240714
+  (0.0ms) SAVEPOINT active_record_1
240715
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240717
+  (0.0ms) SAVEPOINT active_record_1
240718
+ 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 14:16:54 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240720
+  (0.0ms) SAVEPOINT active_record_1
240721
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
240722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240723
+  (0.0ms) SAVEPOINT active_record_1
240724
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240725
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240726
+  (0.1ms) SAVEPOINT active_record_1
240727
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
240728
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240729
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240730
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
240731
+  (0.0ms) SAVEPOINT active_record_1
240732
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240734
+  (0.0ms) SAVEPOINT active_record_1
240735
+ 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 14:16:54 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240737
+  (0.0ms) SAVEPOINT active_record_1
240738
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
240739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240740
+  (0.1ms) SAVEPOINT active_record_1
240741
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240743
+  (0.0ms) SAVEPOINT active_record_1
240744
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
240745
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 2]]
240746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240747
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
240748
+  (0.0ms) SAVEPOINT active_record_1
240749
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
240750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240751
+  (0.0ms) SAVEPOINT active_record_1
240752
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
240753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240754
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
240755
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
240756
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
240757
+  (0.0ms) SAVEPOINT active_record_1
240758
+ 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]]
240759
+ 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 14:16:54 UTC +00:00], ["params", nil]]
240760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240761
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
240762
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
240763
+  (0.0ms) SAVEPOINT active_record_1
240764
+ 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]]
240765
+ 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 14:16:54 UTC +00:00], ["params", nil]]
240766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240767
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
240768
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
240769
+ 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]]
240770
+ 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]]
240771
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
240772
+ 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]]
240773
+ 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]]
240774
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
240775
+  (0.0ms) DELETE FROM "users";
240776
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240777
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240778
+  (0.0ms) DELETE FROM "notifiable_apps";
240779
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240780
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240781
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240782
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240783
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240784
+  (0.0ms) DELETE FROM "notifiable_notifications";
240785
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240786
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240787
+  (0.0ms) DELETE FROM "notifiable_statuses";
240788
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240789
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240790
+  (0.5ms) rollback transaction
240791
+  (0.1ms) begin transaction
240792
+  (0.1ms) SAVEPOINT active_record_1
240793
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
240794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240795
+  (0.0ms) SAVEPOINT active_record_1
240796
+ 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 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240798
+  (0.1ms) SAVEPOINT active_record_1
240799
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
240800
+ 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 14:16:54 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD15"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240802
+  (0.0ms) SAVEPOINT active_record_1
240803
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240805
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
240806
+  (0.0ms) SAVEPOINT active_record_1
240807
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
240808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240809
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
240810
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
240811
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
240812
+  (0.0ms) SAVEPOINT active_record_1
240813
+ 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]]
240814
+ 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 14:16:54 UTC +00:00], ["params", nil]]
240815
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240816
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
240817
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
240818
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
240819
+  (0.0ms) DELETE FROM "users";
240820
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240821
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
240822
+  (0.0ms) DELETE FROM "notifiable_apps";
240823
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240824
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240825
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240826
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240827
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240828
+  (0.1ms) DELETE FROM "notifiable_notifications";
240829
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240830
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240831
+  (0.0ms) DELETE FROM "notifiable_statuses";
240832
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240833
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240834
+  (0.5ms) rollback transaction
240835
+  (0.1ms) begin transaction
240836
+  (0.0ms) SAVEPOINT active_record_1
240837
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
240838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240839
+  (0.0ms) SAVEPOINT active_record_1
240840
+ 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 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240841
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240842
+  (0.0ms) SAVEPOINT active_record_1
240843
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
240844
+ 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 14:16:54 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD16"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240846
+  (0.0ms) SAVEPOINT active_record_1
240847
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240848
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240849
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
240850
+  (0.0ms) DELETE FROM "users";
240851
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240852
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240853
+  (0.0ms) DELETE FROM "notifiable_apps";
240854
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240855
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240856
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240857
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240858
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240859
+  (0.0ms) DELETE FROM "notifiable_notifications";
240860
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240861
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240862
+  (0.0ms) DELETE FROM "notifiable_statuses";
240863
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240864
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240865
+  (0.4ms) rollback transaction
240866
+  (0.0ms) begin transaction
240867
+  (0.0ms) SAVEPOINT active_record_1
240868
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
240869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240870
+  (0.0ms) SAVEPOINT active_record_1
240871
+ 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 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240873
+  (0.0ms) SAVEPOINT active_record_1
240874
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
240875
+ 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 14:16:54 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD17"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240877
+  (0.0ms) SAVEPOINT active_record_1
240878
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240880
+  (0.0ms) SAVEPOINT active_record_1
240881
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
240882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240883
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
240884
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
240885
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
240886
+  (0.0ms) SAVEPOINT active_record_1
240887
+ 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]]
240888
+ 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 14:16:54 UTC +00:00], ["params", nil]]
240889
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240890
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
240891
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
240892
+  (0.0ms) DELETE FROM "users";
240893
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240894
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240895
+  (0.0ms) DELETE FROM "notifiable_apps";
240896
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240897
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240898
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240899
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240900
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240901
+  (0.0ms) DELETE FROM "notifiable_notifications";
240902
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240903
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240904
+  (0.0ms) DELETE FROM "notifiable_statuses";
240905
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240906
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240907
+  (0.5ms) rollback transaction
240908
+  (0.1ms) begin transaction
240909
+  (0.0ms) SAVEPOINT active_record_1
240910
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240912
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
240913
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
240914
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
240915
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
240916
+  (0.1ms) DELETE FROM "users";
240917
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240918
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240919
+  (0.0ms) DELETE FROM "notifiable_apps";
240920
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240921
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240922
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
240923
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240924
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240925
+  (0.1ms) DELETE FROM "notifiable_notifications";
240926
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240927
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240928
+  (0.1ms) DELETE FROM "notifiable_statuses";
240929
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240930
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240931
+  (0.4ms) rollback transaction
240932
+  (0.0ms) begin transaction
240933
+  (0.0ms) SAVEPOINT active_record_1
240934
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240936
+  (0.0ms) SAVEPOINT active_record_1
240937
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240938
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240939
+  (0.0ms) SAVEPOINT active_record_1
240940
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
240941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240942
+  (0.0ms) SAVEPOINT active_record_1
240943
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240945
+  (0.0ms) SAVEPOINT active_record_1
240946
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1
240947
+ 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 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
240948
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240949
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
240950
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
240951
+  (0.0ms) SAVEPOINT active_record_1
240952
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["status", 200]]
240953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240954
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
240955
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
240956
+  (0.0ms) DELETE FROM "users";
240957
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240958
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240959
+  (0.0ms) DELETE FROM "notifiable_apps";
240960
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240961
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240962
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
240963
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240964
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240965
+  (0.1ms) DELETE FROM "notifiable_notifications";
240966
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240967
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240968
+  (0.0ms) DELETE FROM "notifiable_statuses";
240969
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240970
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240971
+  (0.5ms) rollback transaction
240972
+  (0.1ms) begin transaction
240973
+  (0.0ms) SAVEPOINT active_record_1
240974
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240976
+  (0.0ms) SAVEPOINT active_record_1
240977
+ 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 14:16:54 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
240979
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
240980
+  (0.1ms) DELETE FROM "users";
240981
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240982
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
240983
+  (0.0ms) DELETE FROM "notifiable_apps";
240984
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240985
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
240986
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
240987
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240988
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
240989
+  (0.0ms) DELETE FROM "notifiable_notifications";
240990
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240991
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
240992
+  (0.0ms) DELETE FROM "notifiable_statuses";
240993
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
240994
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
240995
+  (0.4ms) rollback transaction
240996
+  (0.0ms) begin transaction
240997
+  (0.0ms) SAVEPOINT active_record_1
240998
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
240999
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241000
+  (0.0ms) SAVEPOINT active_record_1
241001
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
241002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241003
+  (0.0ms) SAVEPOINT active_record_1
241004
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["notification_id", 1]]
241005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241006
+  (0.0ms) SAVEPOINT active_record_1
241007
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
241008
+ SQL (0.1ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
241009
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
241010
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241011
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
241012
+  (0.1ms) DELETE FROM "users";
241013
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241014
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241015
+  (0.0ms) DELETE FROM "notifiable_apps";
241016
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241017
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241018
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
241019
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241020
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241021
+  (0.0ms) DELETE FROM "notifiable_notifications";
241022
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241023
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241024
+  (0.0ms) DELETE FROM "notifiable_statuses";
241025
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241026
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241027
+  (0.5ms) rollback transaction
241028
+  (0.1ms) begin transaction
241029
+  (0.0ms) SAVEPOINT active_record_1
241030
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
241031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241032
+  (0.0ms) SAVEPOINT active_record_1
241033
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
241034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241035
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
241036
+  (0.1ms) DELETE FROM "users";
241037
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241038
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241039
+  (0.0ms) DELETE FROM "notifiable_apps";
241040
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241041
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241042
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
241043
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241044
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241045
+  (0.0ms) DELETE FROM "notifiable_notifications";
241046
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241047
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241048
+  (0.0ms) DELETE FROM "notifiable_statuses";
241049
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241050
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241051
+  (0.4ms) rollback transaction
241052
+  (0.3ms) begin transaction
241053
+  (0.0ms) SAVEPOINT active_record_1
241054
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
241055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241056
+  (0.1ms) SAVEPOINT active_record_1
241057
+ SQL (5.0ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241058
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241059
+  (0.1ms) SAVEPOINT active_record_1
241060
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
241061
+ SQL (0.4ms) 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241062
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241063
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
241064
+  (0.1ms) SAVEPOINT active_record_1
241065
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241067
+ Processing by Notifiable::DeviceTokensController#create as JSON
241068
+ Parameters: {"token"=>"ABCD1", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-1@example.com", "device_token"=>{"token"=>"ABCD1", "provider"=>"mock", "app_id"=>"2"}}
241069
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
241070
+ Unpermitted parameters: user_email, device_token
241071
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
241072
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
241073
+  (0.0ms) SAVEPOINT active_record_1
241074
+ 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]]
241075
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD1' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
241076
+ SQL (0.3ms) UPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["app_id", 2], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241077
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241078
+ Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 0.9ms)
241079
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
241080
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
241081
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
241082
+ 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]]
241083
+  (0.0ms) DELETE FROM "users";
241084
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241085
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241086
+  (0.0ms) DELETE FROM "notifiable_apps";
241087
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241088
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241089
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241090
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241091
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241092
+  (0.1ms) DELETE FROM "notifiable_notifications";
241093
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241094
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241095
+  (0.1ms) DELETE FROM "notifiable_statuses";
241096
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241097
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241098
+  (0.4ms) rollback transaction
241099
+  (0.1ms) begin transaction
241100
+  (0.1ms) SAVEPOINT active_record_1
241101
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
241102
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241103
+  (0.1ms) SAVEPOINT active_record_1
241104
+ SQL (0.6ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241106
+  (0.1ms) SAVEPOINT active_record_1
241107
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
241108
+ 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241110
+ 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
241111
+  (0.0ms) SAVEPOINT active_record_1
241112
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
241113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241114
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
241115
+ Parameters: {"id"=>"1", "user_email"=>"person-3@example.com", "device_token"=>{"id"=>"1"}}
241116
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
241117
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
241118
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
241119
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
241120
+ Filter chain halted as :ensure_authorized! rendered or redirected
241121
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
241122
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2'
241123
+  (0.0ms) DELETE FROM "users";
241124
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241125
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241126
+  (0.0ms) DELETE FROM "notifiable_apps";
241127
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241128
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241129
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241130
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241131
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241132
+  (0.1ms) DELETE FROM "notifiable_notifications";
241133
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241134
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241135
+  (0.1ms) DELETE FROM "notifiable_statuses";
241136
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241137
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241138
+  (0.4ms) rollback transaction
241139
+  (0.0ms) begin transaction
241140
+  (0.0ms) SAVEPOINT active_record_1
241141
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
241142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241143
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
241144
+ Parameters: {"id"=>"59", "user_email"=>"person-4@example.com", "device_token"=>{"id"=>"59"}}
241145
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
241146
+ Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
241147
+  (0.1ms) SAVEPOINT active_record_1
241148
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
241149
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241150
+  (0.1ms) SAVEPOINT active_record_1
241151
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241153
+  (0.1ms) SAVEPOINT active_record_1
241154
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
241155
+ 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 2]]
241156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241157
+ 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
241158
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3'
241159
+  (0.1ms) DELETE FROM "users";
241160
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241161
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241162
+  (0.0ms) DELETE FROM "notifiable_apps";
241163
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241164
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241165
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241166
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241167
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241168
+  (0.1ms) DELETE FROM "notifiable_notifications";
241169
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241170
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241171
+  (0.1ms) DELETE FROM "notifiable_statuses";
241172
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241173
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241174
+  (0.5ms) rollback transaction
241175
+  (0.1ms) begin transaction
241176
+  (0.1ms) SAVEPOINT active_record_1
241177
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
241178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241179
+  (0.1ms) SAVEPOINT active_record_1
241180
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241182
+  (0.0ms) SAVEPOINT active_record_1
241183
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
241184
+ 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241186
+ 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
241187
+ Processing by Notifiable::DeviceTokensController#update as JSON
241188
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-6@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
241189
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
241190
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
241191
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
241192
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
241193
+ Unpermitted parameters: user_email, device_token
241194
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
241195
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
241196
+  (0.0ms) SAVEPOINT active_record_1
241197
+ 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]]
241198
+ 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
241199
+ SQL (0.4ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241201
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.9ms)
241202
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
241203
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
241204
+  (0.1ms) DELETE FROM "users";
241205
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241206
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
241207
+  (0.1ms) DELETE FROM "notifiable_apps";
241208
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241209
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241210
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
241211
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241212
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241213
+  (0.1ms) DELETE FROM "notifiable_notifications";
241214
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241215
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241216
+  (0.1ms) DELETE FROM "notifiable_statuses";
241217
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241218
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241219
+  (0.5ms) rollback transaction
241220
+  (0.1ms) begin transaction
241221
+  (0.1ms) SAVEPOINT active_record_1
241222
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241223
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241224
+ Processing by Notifiable::DeviceTokensController#create as JSON
241225
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
241226
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
241227
+ Unpermitted parameters: device_token
241228
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
241229
+  (0.1ms) SAVEPOINT active_record_1
241230
+ 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]]
241231
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
241232
+ SQL (0.6ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241233
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241234
+ Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 1.3ms)
241235
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
241236
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
241237
+ 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]]
241238
+  (0.1ms) SELECT COUNT(*) FROM "users"
241239
+  (0.1ms) DELETE FROM "users";
241240
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241241
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
241242
+  (0.0ms) DELETE FROM "notifiable_apps";
241243
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241244
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241245
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
241246
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241247
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241248
+  (0.1ms) DELETE FROM "notifiable_notifications";
241249
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241250
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241251
+  (0.1ms) DELETE FROM "notifiable_statuses";
241252
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241253
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241254
+  (0.5ms) rollback transaction
241255
+  (0.1ms) begin transaction
241256
+  (0.0ms) SAVEPOINT active_record_1
241257
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
241258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241259
+  (0.0ms) SAVEPOINT active_record_1
241260
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241261
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241262
+  (0.1ms) SAVEPOINT active_record_1
241263
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
241264
+ 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241266
+ 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
241267
+ Processing by Notifiable::DeviceTokensController#create as JSON
241268
+ Parameters: {"token"=>"ABCD5", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD5", "provider"=>"mpns"}}
241269
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
241270
+ Unpermitted parameters: device_token
241271
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
241272
+  (0.1ms) SAVEPOINT active_record_1
241273
+ 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]]
241274
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD5' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
241275
+ SQL (0.3ms) 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 14:19:11 UTC +00:00]]
241276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241277
+ Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.9ms)
241278
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
241279
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
241280
+  (0.1ms) DELETE FROM "users";
241281
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241282
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
241283
+  (0.1ms) DELETE FROM "notifiable_apps";
241284
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241285
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241286
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
241287
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241288
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241289
+  (0.1ms) DELETE FROM "notifiable_notifications";
241290
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241291
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241292
+  (0.1ms) DELETE FROM "notifiable_statuses";
241293
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241294
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241295
+  (0.5ms) rollback transaction
241296
+  (0.1ms) begin transaction
241297
+  (0.1ms) SAVEPOINT active_record_1
241298
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
241299
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241300
+  (0.1ms) SAVEPOINT active_record_1
241301
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241303
+  (0.0ms) SAVEPOINT active_record_1
241304
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
241305
+ 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241307
+ 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
241308
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
241309
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
241310
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
241311
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
241312
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
241313
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
241314
+ Filter chain halted as :ensure_authorized! rendered or redirected
241315
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
241316
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'
241317
+  (0.1ms) DELETE FROM "users";
241318
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241319
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
241320
+  (0.0ms) DELETE FROM "notifiable_apps";
241321
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241322
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241323
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241324
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241325
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241326
+  (0.1ms) DELETE FROM "notifiable_notifications";
241327
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241328
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241329
+  (0.1ms) DELETE FROM "notifiable_statuses";
241330
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241331
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241332
+  (0.4ms) rollback transaction
241333
+  (0.1ms) begin transaction
241334
+  (0.0ms) SAVEPOINT active_record_1
241335
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
241336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241337
+  (0.0ms) SAVEPOINT active_record_1
241338
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241340
+  (0.0ms) SAVEPOINT active_record_1
241341
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
241342
+ 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241344
+ 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
241345
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
241346
+ Parameters: {"id"=>"1", "user_email"=>"person-9@example.com", "device_token"=>{"id"=>"1"}}
241347
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
241348
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
241349
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
241350
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
241351
+  (0.1ms) SAVEPOINT active_record_1
241352
+ SQL (0.2ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
241353
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241354
+ Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
241355
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
241356
+  (0.1ms) DELETE FROM "users";
241357
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241358
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
241359
+  (0.0ms) DELETE FROM "notifiable_apps";
241360
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241361
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241362
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241363
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241364
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241365
+  (0.1ms) DELETE FROM "notifiable_notifications";
241366
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241367
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241368
+  (0.1ms) DELETE FROM "notifiable_statuses";
241369
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241370
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241371
+  (0.4ms) rollback transaction
241372
+  (0.0ms) begin transaction
241373
+  (0.0ms) SAVEPOINT active_record_1
241374
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
241375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241376
+  (0.0ms) SAVEPOINT active_record_1
241377
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241379
+ Processing by Notifiable::DeviceTokensController#create as JSON
241380
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-10@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
241381
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
241382
+ Unpermitted parameters: user_email, device_token
241383
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
241384
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
241385
+  (0.1ms) SAVEPOINT active_record_1
241386
+ 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]]
241387
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
241388
+ SQL (0.4ms) 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 14:19:11 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241389
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241390
+ Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 1.2ms)
241391
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
241392
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
241393
+ 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
241394
+ 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]]
241395
+  (0.1ms) DELETE FROM "users";
241396
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241397
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
241398
+  (0.1ms) DELETE FROM "notifiable_apps";
241399
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241400
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241401
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
241402
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241403
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241404
+  (0.1ms) DELETE FROM "notifiable_notifications";
241405
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241406
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241407
+  (0.1ms) DELETE FROM "notifiable_statuses";
241408
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241409
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241410
+  (0.5ms) rollback transaction
241411
+  (0.1ms) begin transaction
241412
+  (0.1ms) SAVEPOINT active_record_1
241413
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
241414
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241415
+ Processing by Notifiable::DeviceTokensController#create as JSON
241416
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-11@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
241417
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
241418
+ Unpermitted parameters: user_email, device_token
241419
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
241420
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
241421
+  (0.1ms) SAVEPOINT active_record_1
241422
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
241423
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
241424
+ Completed 422 Unprocessable Entity in 9ms (Views: 0.2ms | ActiveRecord: 0.5ms)
241425
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
241426
+  (0.3ms) DELETE FROM "users";
241427
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241428
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
241429
+  (0.1ms) DELETE FROM "notifiable_apps";
241430
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241431
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241432
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
241433
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241434
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241435
+  (0.1ms) DELETE FROM "notifiable_notifications";
241436
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241437
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241438
+  (0.0ms) DELETE FROM "notifiable_statuses";
241439
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241440
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241441
+  (0.4ms) rollback transaction
241442
+  (0.1ms) begin transaction
241443
+  (0.0ms) SAVEPOINT active_record_1
241444
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241446
+  (0.0ms) SAVEPOINT active_record_1
241447
+ SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241448
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241449
+  (0.2ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
241450
+  (0.1ms) DELETE FROM "users";
241451
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241452
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
241453
+  (0.1ms) DELETE FROM "notifiable_apps";
241454
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241455
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241456
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
241457
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241458
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241459
+  (0.1ms) DELETE FROM "notifiable_notifications";
241460
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241461
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241462
+  (0.1ms) DELETE FROM "notifiable_statuses";
241463
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241464
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241465
+  (0.5ms) rollback transaction
241466
+  (0.1ms) begin transaction
241467
+  (0.0ms) SAVEPOINT active_record_1
241468
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241470
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
241471
+  (0.0ms) SAVEPOINT active_record_1
241472
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241474
+  (0.0ms) SAVEPOINT active_record_1
241475
+ 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 14:19:11 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241477
+  (0.0ms) SAVEPOINT active_record_1
241478
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
241479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241480
+  (0.0ms) SAVEPOINT active_record_1
241481
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241483
+  (0.0ms) SAVEPOINT active_record_1
241484
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
241485
+ 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241486
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241487
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
241488
+  (0.0ms) SAVEPOINT active_record_1
241489
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241490
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241491
+  (0.0ms) SAVEPOINT active_record_1
241492
+ 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 14:19:11 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241493
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241494
+  (0.0ms) SAVEPOINT active_record_1
241495
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
241496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241497
+  (0.0ms) SAVEPOINT active_record_1
241498
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241500
+  (0.0ms) SAVEPOINT active_record_1
241501
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
241502
+ 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 2]]
241503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241504
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
241505
+  (0.0ms) SAVEPOINT active_record_1
241506
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
241507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241508
+  (0.0ms) SAVEPOINT active_record_1
241509
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
241510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241511
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
241512
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
241513
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
241514
+  (0.0ms) SAVEPOINT active_record_1
241515
+ 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]]
241516
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil]]
241517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241518
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
241519
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
241520
+  (0.0ms) SAVEPOINT active_record_1
241521
+ 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]]
241522
+ 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 14:19:11 UTC +00:00], ["params", nil]]
241523
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241524
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
241525
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
241526
+ 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]]
241527
+ 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]]
241528
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
241529
+ 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]]
241530
+ 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]]
241531
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
241532
+  (0.0ms) DELETE FROM "users";
241533
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241534
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241535
+  (0.0ms) DELETE FROM "notifiable_apps";
241536
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241537
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241538
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241539
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241540
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241541
+  (0.0ms) DELETE FROM "notifiable_notifications";
241542
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241543
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241544
+  (0.0ms) DELETE FROM "notifiable_statuses";
241545
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241546
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241547
+  (0.4ms) rollback transaction
241548
+  (0.0ms) begin transaction
241549
+  (0.0ms) SAVEPOINT active_record_1
241550
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241552
+  (0.0ms) SAVEPOINT active_record_1
241553
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
241554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241555
+  (0.0ms) SAVEPOINT active_record_1
241556
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241558
+  (0.0ms) SAVEPOINT active_record_1
241559
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
241560
+ 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 14:19:11 UTC +00:00], ["provider", :sms], ["token", "ABCD10"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241562
+  (0.0ms) SAVEPOINT active_record_1
241563
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241564
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241565
+  (0.0ms) SAVEPOINT active_record_1
241566
+ 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 14:19:11 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241568
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
241569
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
241570
+  (0.0ms) DELETE FROM "users";
241571
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241572
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241573
+  (0.0ms) DELETE FROM "notifiable_apps";
241574
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241575
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241576
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241577
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241578
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241579
+  (0.0ms) DELETE FROM "notifiable_notifications";
241580
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241581
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241582
+  (0.0ms) DELETE FROM "notifiable_statuses";
241583
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241584
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241585
+  (0.4ms) rollback transaction
241586
+  (0.0ms) begin transaction
241587
+  (0.0ms) SAVEPOINT active_record_1
241588
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241589
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241590
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
241591
+  (0.0ms) SAVEPOINT active_record_1
241592
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241594
+  (0.0ms) SAVEPOINT active_record_1
241595
+ 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 14:19:11 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241597
+  (0.0ms) SAVEPOINT active_record_1
241598
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
241599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241600
+  (0.0ms) SAVEPOINT active_record_1
241601
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241602
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241603
+  (0.0ms) SAVEPOINT active_record_1
241604
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
241605
+ 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241607
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
241608
+  (0.0ms) SAVEPOINT active_record_1
241609
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
241610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241611
+  (0.0ms) SAVEPOINT active_record_1
241612
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241614
+  (0.0ms) SAVEPOINT active_record_1
241615
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
241616
+ 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 2]]
241617
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241618
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
241619
+  (0.0ms) SAVEPOINT active_record_1
241620
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
241621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241622
+  (0.0ms) SAVEPOINT active_record_1
241623
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
241624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241625
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
241626
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
241627
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
241628
+  (0.0ms) SAVEPOINT active_record_1
241629
+ 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]]
241630
+ 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 14:19:11 UTC +00:00], ["params", nil]]
241631
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241632
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
241633
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
241634
+ 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]]
241635
+ 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]]
241636
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
241637
+ 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]]
241638
+ 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]]
241639
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
241640
+  (0.0ms) DELETE FROM "users";
241641
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241642
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241643
+  (0.0ms) DELETE FROM "notifiable_apps";
241644
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241645
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241646
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241647
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241648
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241649
+  (0.0ms) DELETE FROM "notifiable_notifications";
241650
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241651
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241652
+  (0.0ms) DELETE FROM "notifiable_statuses";
241653
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241654
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241655
+  (0.5ms) rollback transaction
241656
+  (0.1ms) begin transaction
241657
+  (0.1ms) SAVEPOINT active_record_1
241658
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
241659
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241660
+  (0.1ms) SAVEPOINT active_record_1
241661
+ 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 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241663
+  (0.1ms) SAVEPOINT active_record_1
241664
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
241665
+ 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 14:19:11 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD13"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241667
+  (0.0ms) SAVEPOINT active_record_1
241668
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241670
+  (0.0ms) SAVEPOINT active_record_1
241671
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
241672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241673
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
241674
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
241675
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
241676
+  (0.0ms) SAVEPOINT active_record_1
241677
+ 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]]
241678
+ 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 14:19:11 UTC +00:00], ["params", nil]]
241679
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241680
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
241681
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
241682
+  (0.0ms) DELETE FROM "users";
241683
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241684
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241685
+  (0.0ms) DELETE FROM "notifiable_apps";
241686
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241687
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241688
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241689
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241690
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241691
+  (0.0ms) DELETE FROM "notifiable_notifications";
241692
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241693
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241694
+  (0.0ms) DELETE FROM "notifiable_statuses";
241695
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241696
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241697
+  (0.4ms) rollback transaction
241698
+  (0.1ms) begin transaction
241699
+  (0.0ms) SAVEPOINT active_record_1
241700
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
241701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241702
+  (0.0ms) SAVEPOINT active_record_1
241703
+ 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 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241705
+  (0.0ms) SAVEPOINT active_record_1
241706
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
241707
+ 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 14:19:11 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD14"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241708
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241709
+  (0.0ms) SAVEPOINT active_record_1
241710
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241711
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241712
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
241713
+  (0.0ms) DELETE FROM "users";
241714
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241715
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
241716
+  (0.0ms) DELETE FROM "notifiable_apps";
241717
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241718
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241719
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241720
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241721
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241722
+  (0.0ms) DELETE FROM "notifiable_notifications";
241723
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241724
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241725
+  (0.0ms) DELETE FROM "notifiable_statuses";
241726
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241727
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241728
+  (0.4ms) rollback transaction
241729
+  (0.1ms) begin transaction
241730
+  (0.0ms) SAVEPOINT active_record_1
241731
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
241732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241733
+  (0.0ms) SAVEPOINT active_record_1
241734
+ 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 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241736
+  (0.0ms) SAVEPOINT active_record_1
241737
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
241738
+ 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 14:19:11 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD15"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241740
+  (0.0ms) SAVEPOINT active_record_1
241741
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241743
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
241744
+  (0.0ms) SAVEPOINT active_record_1
241745
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
241746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241747
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
241748
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
241749
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
241750
+  (0.0ms) SAVEPOINT active_record_1
241751
+ 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]]
241752
+ 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 14:19:11 UTC +00:00], ["params", nil]]
241753
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241754
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
241755
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
241756
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
241757
+  (0.0ms) DELETE FROM "users";
241758
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241759
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241760
+  (0.0ms) DELETE FROM "notifiable_apps";
241761
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241762
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241763
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241764
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241765
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241766
+  (0.0ms) DELETE FROM "notifiable_notifications";
241767
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241768
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241769
+  (0.0ms) DELETE FROM "notifiable_statuses";
241770
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241771
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241772
+  (0.4ms) rollback transaction
241773
+  (0.1ms) begin transaction
241774
+  (0.1ms) SAVEPOINT active_record_1
241775
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
241776
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241777
+  (0.0ms) SAVEPOINT active_record_1
241778
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241780
+  (0.0ms) SAVEPOINT active_record_1
241781
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
241782
+ 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241784
+ 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
241785
+ 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]]
241786
+  (0.0ms) SAVEPOINT active_record_1
241787
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241789
+  (0.0ms) SAVEPOINT active_record_1
241790
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
241791
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241792
+ Processing by Notifiable::NotificationsController#opened as JSON
241793
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD16"}, "user_email"=>"person-20@example.com", "notification"=>{}}
241794
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
241795
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD16') LIMIT 1
241796
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
241797
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
241798
+ 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]]
241799
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
241800
+  (0.0ms) SAVEPOINT active_record_1
241801
+ SQL (0.1ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
241802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241803
+ 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]]
241804
+  (0.0ms) SAVEPOINT active_record_1
241805
+ 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 14:19:11 UTC +00:00], ["params", nil]]
241806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241807
+ Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
241808
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
241809
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
241810
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
241811
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
241812
+  (0.0ms) DELETE FROM "users";
241813
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241814
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
241815
+  (0.0ms) DELETE FROM "notifiable_apps";
241816
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241817
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241818
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241819
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241820
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241821
+  (0.0ms) DELETE FROM "notifiable_notifications";
241822
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241823
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241824
+  (0.0ms) DELETE FROM "notifiable_statuses";
241825
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241826
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241827
+  (0.5ms) rollback transaction
241828
+  (0.0ms) begin transaction
241829
+  (0.0ms) SAVEPOINT active_record_1
241830
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
241831
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241832
+  (0.0ms) SAVEPOINT active_record_1
241833
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241835
+  (0.0ms) SAVEPOINT active_record_1
241836
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
241837
+ 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241839
+ 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
241840
+ 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]]
241841
+  (0.0ms) SAVEPOINT active_record_1
241842
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241843
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241844
+  (0.0ms) SAVEPOINT active_record_1
241845
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
241846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241847
+  (0.0ms) SAVEPOINT active_record_1
241848
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
241849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241850
+ Processing by Notifiable::NotificationsController#opened as JSON
241851
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD17"}, "user_email"=>"person-22@example.com", "notification"=>{}}
241852
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1
241853
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD17') LIMIT 1
241854
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
241855
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1
241856
+ 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]]
241857
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
241858
+ Filter chain halted as :check_authorisation! rendered or redirected
241859
+ Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.4ms)
241860
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
241861
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
241862
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications"
241863
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
241864
+  (0.1ms) DELETE FROM "users";
241865
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241866
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241867
+  (0.0ms) DELETE FROM "notifiable_apps";
241868
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241869
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241870
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241871
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241872
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241873
+  (0.0ms) DELETE FROM "notifiable_notifications";
241874
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241875
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241876
+  (0.0ms) DELETE FROM "notifiable_statuses";
241877
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241878
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241879
+  (0.5ms) rollback transaction
241880
+  (0.0ms) begin transaction
241881
+  (0.0ms) SAVEPOINT active_record_1
241882
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241884
+  (0.0ms) SAVEPOINT active_record_1
241885
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241886
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241887
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
241888
+  (0.1ms) DELETE FROM "users";
241889
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241890
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241891
+  (0.0ms) DELETE FROM "notifiable_apps";
241892
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241893
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241894
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
241895
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241896
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241897
+  (0.0ms) DELETE FROM "notifiable_notifications";
241898
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241899
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241900
+  (0.0ms) DELETE FROM "notifiable_statuses";
241901
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241902
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241903
+  (0.4ms) rollback transaction
241904
+  (0.0ms) begin transaction
241905
+  (0.1ms) SAVEPOINT active_record_1
241906
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241907
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241908
+  (0.1ms) SAVEPOINT active_record_1
241909
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241910
+  (0.1ms) RELEASE SAVEPOINT active_record_1
241911
+  (0.0ms) SAVEPOINT active_record_1
241912
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["notification_id", 1]]
241913
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241914
+  (0.0ms) SAVEPOINT active_record_1
241915
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
241916
+ SQL (0.1ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
241917
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
241918
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241919
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
241920
+  (0.1ms) DELETE FROM "users";
241921
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241922
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241923
+  (0.0ms) DELETE FROM "notifiable_apps";
241924
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241925
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241926
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
241927
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241928
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241929
+  (0.0ms) DELETE FROM "notifiable_notifications";
241930
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241931
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241932
+  (0.0ms) DELETE FROM "notifiable_statuses";
241933
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241934
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241935
+  (0.5ms) rollback transaction
241936
+  (0.1ms) begin transaction
241937
+  (0.0ms) SAVEPOINT active_record_1
241938
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241940
+  (0.0ms) SAVEPOINT active_record_1
241941
+ 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 14:19:11 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241942
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241943
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
241944
+  (0.1ms) DELETE FROM "users";
241945
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241946
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241947
+  (0.0ms) DELETE FROM "notifiable_apps";
241948
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241949
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241950
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
241951
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241952
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241953
+  (0.0ms) DELETE FROM "notifiable_notifications";
241954
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241955
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241956
+  (0.0ms) DELETE FROM "notifiable_statuses";
241957
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241958
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241959
+  (0.4ms) rollback transaction
241960
+  (0.0ms) begin transaction
241961
+  (0.0ms) SAVEPOINT active_record_1
241962
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241964
+  (0.0ms) SAVEPOINT active_record_1
241965
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241966
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241967
+  (0.0ms) SAVEPOINT active_record_1
241968
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
241969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241970
+  (0.0ms) SAVEPOINT active_record_1
241971
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
241972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241973
+  (0.0ms) SAVEPOINT active_record_1
241974
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1
241975
+ 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 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
241976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241977
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
241978
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
241979
+  (0.0ms) SAVEPOINT active_record_1
241980
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["status", 200]]
241981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241982
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
241983
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
241984
+  (0.0ms) DELETE FROM "users";
241985
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241986
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
241987
+  (0.0ms) DELETE FROM "notifiable_apps";
241988
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241989
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
241990
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
241991
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241992
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
241993
+  (0.1ms) DELETE FROM "notifiable_notifications";
241994
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241995
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
241996
+  (0.0ms) DELETE FROM "notifiable_statuses";
241997
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
241998
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
241999
+  (0.5ms) rollback transaction
242000
+  (0.1ms) begin transaction
242001
+  (0.0ms) SAVEPOINT active_record_1
242002
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
242003
+  (0.0ms) RELEASE SAVEPOINT active_record_1
242004
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
242005
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
242006
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
242007
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
242008
+  (0.1ms) DELETE FROM "users";
242009
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
242010
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
242011
+  (0.0ms) DELETE FROM "notifiable_apps";
242012
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
242013
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
242014
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
242015
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
242016
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
242017
+  (0.0ms) DELETE FROM "notifiable_notifications";
242018
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
242019
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
242020
+  (0.0ms) DELETE FROM "notifiable_statuses";
242021
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
242022
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
242023
+  (0.3ms) rollback transaction