notifiable-rails 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4e867b595d41f4df19a11c1ce327856b0eef71b
4
- data.tar.gz: ed10c6f11cba6212e81c6140ec92a9c684d50df4
3
+ metadata.gz: 4635f91aa86b39383ba4be40af2549bc68c0f95a
4
+ data.tar.gz: 8fd626c2accb05f3aa2e530e89fa3932937727cf
5
5
  SHA512:
6
- metadata.gz: 6d2b67b45a82bf716ba3d24e86aa338303b520a7daa3d58c54beae3be684a2f9da05a08c8dd8b4818c7650563657985f2327041251be0e19692b5cdf0d4e1f5a
7
- data.tar.gz: 546d254970f87e01b12d22c5504a5b0da2f807205700a2bbe05c54ce0354881921a59ca7020112164771ffeada90c071941ad8eb233c9fd3648acf1bd84b1af1
6
+ metadata.gz: aa6a1fa6ce50fccdfc3b0548b828bf9271732c3e16f8d350090948d6a8e83b161812e68b4d876edd6edac0f36061039fac01aaa34d4f0f2b2c8734fffe068946
7
+ data.tar.gz: 870b748e391cff0575b7cb8665e6520a69117b474d3b5296cc5f9cb14484d9be58ef96a25658f5bd9f1bcdc48bad22c35f5805f591eb6846dfdc8588de703c91
@@ -6,7 +6,7 @@ module Notifiable
6
6
 
7
7
  def send_notification(notification, device_token)
8
8
  # todo - add before hook
9
- enqueue(notification, device_token)
9
+ enqueue(notification, device_token, custom_params(notification))
10
10
  # todo - add after hook
11
11
  end
12
12
 
@@ -28,8 +28,10 @@ module Notifiable
28
28
  end
29
29
  end
30
30
 
31
- def generate_uuid
32
- SimpleUUID::UUID.new.to_guid
31
+ def custom_params(notification)
32
+ params = notification.params || {}
33
+ params[:notification_id] = notification.id
34
+ params
33
35
  end
34
36
 
35
37
  def test_env?
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
data/spec/batch_spec.rb CHANGED
@@ -56,7 +56,7 @@ end
56
56
  class ConfigurableMockNotifier < Notifiable::NotifierBase
57
57
  attr_accessor :use_sandbox
58
58
 
59
- def enqueue(notification, device_token)
59
+ def enqueue(notification, device_token, params)
60
60
  processed(notification, device_token, 0)
61
61
  end
62
62
  end
data/spec/spec_helper.rb CHANGED
@@ -41,7 +41,7 @@ RSpec.configure do |config|
41
41
  end
42
42
 
43
43
  class MockNotifier < Notifiable::NotifierBase
44
- def enqueue(notification, device_token)
44
+ def enqueue(notification, device_token, params)
45
45
  processed(notification, device_token, 200)
46
46
  end
47
47
  end
@@ -206427,3 +206427,3500 @@ Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.3ms)
206427
206427
   (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206428
206428
   (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206429
206429
   (0.5ms) rollback transaction
206430
+  (0.3ms) begin transaction
206431
+  (0.0ms) SAVEPOINT active_record_1
206432
+ SQL (2.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206434
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
206435
+  (0.1ms) SAVEPOINT active_record_1
206436
+ SQL (0.9ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206438
+  (0.1ms) SAVEPOINT active_record_1
206439
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206440
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206441
+  (0.0ms) SAVEPOINT active_record_1
206442
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
206443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206444
+  (0.0ms) SAVEPOINT active_record_1
206445
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206447
+  (0.0ms) SAVEPOINT active_record_1
206448
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
206449
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
206450
+  (0.1ms) RELEASE SAVEPOINT active_record_1
206451
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
206452
+  (0.0ms) SAVEPOINT active_record_1
206453
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206455
+  (0.0ms) SAVEPOINT active_record_1
206456
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206457
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206458
+  (0.0ms) SAVEPOINT active_record_1
206459
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
206460
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206461
+  (0.0ms) SAVEPOINT active_record_1
206462
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206464
+  (0.0ms) SAVEPOINT active_record_1
206465
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
206466
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 2]]
206467
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206468
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
206469
+  (0.0ms) SAVEPOINT active_record_1
206470
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
206471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206472
+  (0.0ms) SAVEPOINT active_record_1
206473
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 2], ["status", 200]]
206474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206475
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
206476
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
206477
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
206478
+  (0.0ms) SAVEPOINT active_record_1
206479
+ 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]]
206480
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", nil]]
206481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206482
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 2]]
206483
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 2]]
206484
+  (0.0ms) SAVEPOINT active_record_1
206485
+ 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]]
206486
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", nil]]
206487
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206488
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
206489
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
206490
+ 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]]
206491
+ 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]]
206492
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
206493
+ 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]]
206494
+ 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]]
206495
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
206496
+  (0.0ms) DELETE FROM "users";
206497
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206498
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
206499
+  (0.0ms) DELETE FROM "notifiable_apps";
206500
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206501
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
206502
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
206503
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206504
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
206505
+  (0.0ms) DELETE FROM "notifiable_notifications";
206506
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206507
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
206508
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
206509
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206510
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206511
+  (0.5ms) rollback transaction
206512
+  (0.1ms) begin transaction
206513
+  (0.0ms) SAVEPOINT active_record_1
206514
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206516
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
206517
+  (0.1ms) SAVEPOINT active_record_1
206518
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206519
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206520
+  (0.0ms) SAVEPOINT active_record_1
206521
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206523
+  (0.0ms) SAVEPOINT active_record_1
206524
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
206525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206526
+  (0.0ms) SAVEPOINT active_record_1
206527
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206529
+  (0.0ms) SAVEPOINT active_record_1
206530
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
206531
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
206532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206533
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
206534
+  (0.0ms) SAVEPOINT active_record_1
206535
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
206536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206537
+  (0.0ms) SAVEPOINT active_record_1
206538
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206540
+  (0.0ms) SAVEPOINT active_record_1
206541
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
206542
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 2]]
206543
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206544
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
206545
+  (0.0ms) SAVEPOINT active_record_1
206546
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
206547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206548
+  (0.0ms) SAVEPOINT active_record_1
206549
+ SQL (0.0ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 1], ["status", 200]]
206550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206551
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
206552
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
206553
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
206554
+  (0.0ms) SAVEPOINT active_record_1
206555
+ 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]]
206556
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", nil]]
206557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206558
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
206559
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
206560
+ 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]]
206561
+ 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]]
206562
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
206563
+ 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]]
206564
+ 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]]
206565
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
206566
+  (0.0ms) DELETE FROM "users";
206567
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206568
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
206569
+  (0.0ms) DELETE FROM "notifiable_apps";
206570
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206571
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
206572
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
206573
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206574
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
206575
+  (0.0ms) DELETE FROM "notifiable_notifications";
206576
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206577
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
206578
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
206579
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206580
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206581
+  (0.4ms) rollback transaction
206582
+  (0.1ms) begin transaction
206583
+  (0.0ms) SAVEPOINT active_record_1
206584
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206585
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206586
+  (0.0ms) SAVEPOINT active_record_1
206587
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
206588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206589
+  (0.0ms) SAVEPOINT active_record_1
206590
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206591
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206592
+  (0.0ms) SAVEPOINT active_record_1
206593
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
206594
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :sms], ["token", "ABCD5"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
206595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206596
+  (0.0ms) SAVEPOINT active_record_1
206597
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206599
+  (0.0ms) SAVEPOINT active_record_1
206600
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206601
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206602
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
206603
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
206604
+  (0.0ms) DELETE FROM "users";
206605
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206606
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
206607
+  (0.0ms) DELETE FROM "notifiable_apps";
206608
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206609
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
206610
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
206611
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206612
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
206613
+  (0.0ms) DELETE FROM "notifiable_notifications";
206614
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206615
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
206616
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
206617
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206618
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206619
+  (0.4ms) rollback transaction
206620
+  (0.1ms) begin transaction
206621
+  (0.1ms) SAVEPOINT active_record_1
206622
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
206624
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
206625
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
206626
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
206627
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
206628
+  (0.1ms) DELETE FROM "users";
206629
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206630
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
206631
+  (0.0ms) DELETE FROM "notifiable_apps";
206632
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206633
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
206634
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
206635
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206636
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
206637
+  (0.1ms) DELETE FROM "notifiable_notifications";
206638
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206639
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
206640
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
206641
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206642
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206643
+  (0.4ms) rollback transaction
206644
+  (0.0ms) begin transaction
206645
+  (0.0ms) SAVEPOINT active_record_1
206646
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206648
+  (0.0ms) SAVEPOINT active_record_1
206649
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206651
+  (0.0ms) SAVEPOINT active_record_1
206652
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
206653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206654
+  (0.0ms) SAVEPOINT active_record_1
206655
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206657
+  (0.0ms) SAVEPOINT active_record_1
206658
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
206659
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
206660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206661
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
206662
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
206663
+  (0.0ms) SAVEPOINT active_record_1
206664
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "status") VALUES (?, ?) [["device_token_id", 1], ["status", 200]]
206665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206666
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
206667
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
206668
+  (0.0ms) DELETE FROM "users";
206669
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206670
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
206671
+  (0.0ms) DELETE FROM "notifiable_apps";
206672
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206673
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
206674
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
206675
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206676
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
206677
+  (0.1ms) DELETE FROM "notifiable_notifications";
206678
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206679
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
206680
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
206681
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206682
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206683
+  (0.4ms) rollback transaction
206684
+  (0.0ms) begin transaction
206685
+  (0.0ms) SAVEPOINT active_record_1
206686
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
206687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206688
+  (0.0ms) SAVEPOINT active_record_1
206689
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206691
+  (0.0ms) SAVEPOINT active_record_1
206692
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
206693
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
206694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206695
+ 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
206696
+ 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]]
206697
+  (0.0ms) SAVEPOINT active_record_1
206698
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206700
+  (0.0ms) SAVEPOINT active_record_1
206701
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
206702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206703
+  (0.0ms) SAVEPOINT active_record_1
206704
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
206705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206706
+ Processing by Notifiable::NotificationsController#opened as JSON
206707
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD7"}, "user_email"=>"person-9@example.com", "notification"=>{}}
206708
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
206709
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD7') LIMIT 1
206710
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
206711
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
206712
+ 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]]
206713
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
206714
+ Filter chain halted as :check_authorisation! rendered or redirected
206715
+ Completed 406 Not Acceptable in 4ms (ActiveRecord: 0.4ms)
206716
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
206717
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
206718
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
206719
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
206720
+  (0.1ms) DELETE FROM "users";
206721
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206722
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
206723
+  (0.0ms) DELETE FROM "notifiable_apps";
206724
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206725
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
206726
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
206727
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206728
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
206729
+  (0.0ms) DELETE FROM "notifiable_notifications";
206730
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206731
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
206732
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
206733
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206734
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206735
+  (0.5ms) rollback transaction
206736
+  (0.0ms) begin transaction
206737
+  (0.0ms) SAVEPOINT active_record_1
206738
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
206739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206740
+  (0.0ms) SAVEPOINT active_record_1
206741
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206742
+  (0.1ms) RELEASE SAVEPOINT active_record_1
206743
+  (0.0ms) SAVEPOINT active_record_1
206744
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
206745
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
206746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206747
+ 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
206748
+ 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]]
206749
+  (0.0ms) SAVEPOINT active_record_1
206750
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206751
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206752
+  (0.0ms) SAVEPOINT active_record_1
206753
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
206754
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206755
+ Processing by Notifiable::NotificationsController#opened as JSON
206756
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD8"}, "user_email"=>"person-10@example.com", "notification"=>{}}
206757
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
206758
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD8') LIMIT 1
206759
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
206760
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
206761
+ 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]]
206762
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
206763
+  (0.0ms) SAVEPOINT active_record_1
206764
+ SQL (0.1ms) UPDATE "notifiable_notification_statuses" SET "status" = ? WHERE "notifiable_notification_statuses"."id" = 1 [["status", -1]]
206765
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206766
+ 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]]
206767
+  (0.0ms) SAVEPOINT active_record_1
206768
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", nil]]
206769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206770
+ Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
206771
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
206772
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
206773
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
206774
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
206775
+  (0.0ms) DELETE FROM "users";
206776
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206777
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
206778
+  (0.0ms) DELETE FROM "notifiable_apps";
206779
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206780
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
206781
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
206782
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206783
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
206784
+  (0.0ms) DELETE FROM "notifiable_notifications";
206785
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206786
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
206787
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
206788
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206789
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206790
+  (0.5ms) rollback transaction
206791
+  (0.0ms) begin transaction
206792
+  (0.0ms) SAVEPOINT active_record_1
206793
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206795
+  (0.0ms) SAVEPOINT active_record_1
206796
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206798
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
206799
+  (0.1ms) DELETE FROM "users";
206800
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206801
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
206802
+  (0.0ms) DELETE FROM "notifiable_apps";
206803
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206804
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
206805
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
206806
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206807
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
206808
+  (0.0ms) DELETE FROM "notifiable_notifications";
206809
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206810
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
206811
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
206812
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206813
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206814
+  (0.4ms) rollback transaction
206815
+  (0.1ms) begin transaction
206816
+  (0.0ms) SAVEPOINT active_record_1
206817
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206818
+  (0.1ms) RELEASE SAVEPOINT active_record_1
206819
+  (0.0ms) SAVEPOINT active_record_1
206820
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206821
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206822
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
206823
+  (0.1ms) DELETE FROM "users";
206824
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206825
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
206826
+  (0.0ms) DELETE FROM "notifiable_apps";
206827
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206828
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
206829
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
206830
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206831
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
206832
+  (0.0ms) DELETE FROM "notifiable_notifications";
206833
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206834
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
206835
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
206836
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206837
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206838
+  (0.4ms) rollback transaction
206839
+  (0.1ms) begin transaction
206840
+  (0.0ms) SAVEPOINT active_record_1
206841
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206843
+  (0.0ms) SAVEPOINT active_record_1
206844
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206846
+  (0.0ms) SAVEPOINT active_record_1
206847
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?) [["notification_id", 1]]
206848
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206849
+  (0.0ms) SAVEPOINT active_record_1
206850
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
206851
+ SQL (0.1ms) DELETE FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."id" = ? [["id", 1]]
206852
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
206853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206854
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
206855
+  (0.1ms) DELETE FROM "users";
206856
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206857
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
206858
+  (0.0ms) DELETE FROM "notifiable_apps";
206859
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206860
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
206861
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
206862
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206863
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
206864
+  (0.0ms) DELETE FROM "notifiable_notifications";
206865
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206866
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
206867
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
206868
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206869
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206870
+  (0.4ms) rollback transaction
206871
+  (0.1ms) begin transaction
206872
+  (0.0ms) SAVEPOINT active_record_1
206873
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
206874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206875
+  (0.0ms) SAVEPOINT active_record_1
206876
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206878
+  (0.0ms) SAVEPOINT active_record_1
206879
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
206880
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
206881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206882
+ 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
206883
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
206884
+ Parameters: {"token"=>"ABCD9", "device_token"=>{"token"=>"ABCD9"}}
206885
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
206886
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
206887
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
206888
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'
206889
+  (0.1ms) DELETE FROM "users";
206890
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206891
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
206892
+  (0.0ms) DELETE FROM "notifiable_apps";
206893
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206894
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
206895
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
206896
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206897
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
206898
+  (0.1ms) DELETE FROM "notifiable_notifications";
206899
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206900
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
206901
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
206902
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206903
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206904
+  (0.5ms) rollback transaction
206905
+  (0.0ms) begin transaction
206906
+  (0.0ms) SAVEPOINT active_record_1
206907
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
206908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206909
+ Processing by Notifiable::DeviceTokensController#create as JSON
206910
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-12@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
206911
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
206912
+ Unpermitted parameters: user_email, device_token
206913
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
206914
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
206915
+  (0.0ms) SAVEPOINT active_record_1
206916
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
206917
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
206918
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
206919
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
206920
+  (0.2ms) DELETE FROM "users";
206921
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206922
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
206923
+  (0.1ms) DELETE FROM "notifiable_apps";
206924
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206925
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
206926
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
206927
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206928
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
206929
+  (0.0ms) DELETE FROM "notifiable_notifications";
206930
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206931
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
206932
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
206933
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206934
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206935
+  (0.4ms) rollback transaction
206936
+  (0.1ms) begin transaction
206937
+  (0.1ms) SAVEPOINT active_record_1
206938
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
206939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206940
+  (0.0ms) SAVEPOINT active_record_1
206941
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206942
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206943
+ Processing by Notifiable::DeviceTokensController#create as JSON
206944
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-13@example.com", "provider"=>"mpns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456", "app_id"=>"1"}}
206945
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
206946
+ Unpermitted parameters: user_email, device_token
206947
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
206948
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
206949
+  (0.0ms) SAVEPOINT active_record_1
206950
+ 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]]
206951
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
206952
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
206953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206954
+ Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
206955
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
206956
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
206957
+ 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
206958
+ 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]]
206959
+  (0.1ms) DELETE FROM "users";
206960
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206961
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
206962
+  (0.0ms) DELETE FROM "notifiable_apps";
206963
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206964
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
206965
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
206966
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206967
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
206968
+  (0.1ms) DELETE FROM "notifiable_notifications";
206969
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206970
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
206971
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
206972
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206973
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
206974
+  (0.5ms) rollback transaction
206975
+  (0.1ms) begin transaction
206976
+  (0.0ms) SAVEPOINT active_record_1
206977
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206979
+ Processing by Notifiable::DeviceTokensController#create as JSON
206980
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
206981
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
206982
+ Unpermitted parameters: device_token
206983
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
206984
+  (0.0ms) SAVEPOINT active_record_1
206985
+ 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]]
206986
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
206987
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
206988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206989
+ Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
206990
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
206991
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
206992
+ 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]]
206993
+  (0.1ms) SELECT COUNT(*) FROM "users"
206994
+  (0.1ms) DELETE FROM "users";
206995
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206996
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
206997
+  (0.0ms) DELETE FROM "notifiable_apps";
206998
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
206999
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207000
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207001
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207002
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207003
+  (0.1ms) DELETE FROM "notifiable_notifications";
207004
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207005
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207006
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207007
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207008
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207009
+  (0.5ms) rollback transaction
207010
+  (0.1ms) begin transaction
207011
+  (0.1ms) SAVEPOINT active_record_1
207012
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
207013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207014
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
207015
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-14@example.com", "device_token"=>{"token"=>"ZXY987"}}
207016
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
207017
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
207018
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
207019
+  (0.0ms) SAVEPOINT active_record_1
207020
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
207021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207022
+  (0.0ms) SAVEPOINT active_record_1
207023
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
207024
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207025
+  (0.0ms) SAVEPOINT active_record_1
207026
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
207027
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 2]]
207028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207029
+ 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
207030
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10'
207031
+  (0.1ms) DELETE FROM "users";
207032
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207033
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207034
+  (0.0ms) DELETE FROM "notifiable_apps";
207035
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207036
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207037
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207038
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207039
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207040
+  (0.1ms) DELETE FROM "notifiable_notifications";
207041
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207042
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207043
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
207044
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207045
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207046
+  (0.4ms) rollback transaction
207047
+  (0.1ms) begin transaction
207048
+  (0.1ms) SAVEPOINT active_record_1
207049
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
207050
+  (0.1ms) RELEASE SAVEPOINT active_record_1
207051
+  (0.0ms) SAVEPOINT active_record_1
207052
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
207053
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD11"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
207054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207055
+  (0.0ms) SAVEPOINT active_record_1
207056
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
207057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207058
+ Processing by Notifiable::DeviceTokensController#create as JSON
207059
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-16@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
207060
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
207061
+ Unpermitted parameters: user_email, device_token
207062
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
207063
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
207064
+  (0.0ms) SAVEPOINT active_record_1
207065
+ 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]]
207066
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
207067
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
207068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207069
+ Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
207070
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
207071
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
207072
+ 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
207073
+ 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]]
207074
+  (0.0ms) SAVEPOINT active_record_1
207075
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
207076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
207077
+  (0.1ms) DELETE FROM "users";
207078
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207079
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
207080
+  (0.0ms) DELETE FROM "notifiable_apps";
207081
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207082
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207083
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207084
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207085
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207086
+  (0.1ms) DELETE FROM "notifiable_notifications";
207087
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207088
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207089
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207090
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207091
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207092
+  (0.5ms) rollback transaction
207093
+  (0.1ms) begin transaction
207094
+  (0.0ms) SAVEPOINT active_record_1
207095
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
207096
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207097
+  (0.0ms) SAVEPOINT active_record_1
207098
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
207099
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207100
+ Processing by Notifiable::DeviceTokensController#create as JSON
207101
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-17@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
207102
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
207103
+ Unpermitted parameters: user_email, device_token
207104
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
207105
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
207106
+  (0.0ms) SAVEPOINT active_record_1
207107
+ 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]]
207108
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
207109
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
207110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207111
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
207112
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
207113
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
207114
+ 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
207115
+ 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]]
207116
+  (0.1ms) DELETE FROM "users";
207117
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207118
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
207119
+  (0.0ms) DELETE FROM "notifiable_apps";
207120
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207121
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207122
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207123
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207124
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207125
+  (0.1ms) DELETE FROM "notifiable_notifications";
207126
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207127
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207128
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207129
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207130
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207131
+  (0.5ms) rollback transaction
207132
+  (0.1ms) begin transaction
207133
+  (0.1ms) SAVEPOINT active_record_1
207134
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
207135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207136
+  (0.0ms) SAVEPOINT active_record_1
207137
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
207138
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207139
+  (0.0ms) SAVEPOINT active_record_1
207140
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
207141
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["user_id", 1]]
207142
+  (0.1ms) RELEASE SAVEPOINT active_record_1
207143
+ 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
207144
+  (0.0ms) SAVEPOINT active_record_1
207145
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
207146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207147
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
207148
+ Parameters: {"token"=>"ABCD12", "user_email"=>"person-19@example.com", "device_token"=>{"token"=>"ABCD12"}}
207149
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
207150
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
207151
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
207152
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
207153
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
207154
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12'
207155
+  (0.0ms) DELETE FROM "users";
207156
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207157
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207158
+  (0.0ms) DELETE FROM "notifiable_apps";
207159
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207160
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207161
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207162
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207163
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207164
+  (0.1ms) DELETE FROM "notifiable_notifications";
207165
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207166
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207167
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
207168
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207169
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207170
+  (0.4ms) rollback transaction
207171
+  (0.1ms) begin transaction
207172
+  (0.0ms) SAVEPOINT active_record_1
207173
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
207174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207175
+  (0.1ms) SAVEPOINT active_record_1
207176
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
207177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207178
+  (0.0ms) SAVEPOINT active_record_1
207179
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
207180
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["user_id", 1]]
207181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207182
+ 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
207183
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
207184
+ Parameters: {"token"=>"ABCD13", "user_email"=>"person-20@example.com", "device_token"=>{"token"=>"ABCD13"}}
207185
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
207186
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
207187
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
207188
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
207189
+  (0.1ms) SAVEPOINT active_record_1
207190
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
207191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207192
+ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
207193
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13'
207194
+  (0.1ms) DELETE FROM "users";
207195
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207196
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207197
+  (0.0ms) DELETE FROM "notifiable_apps";
207198
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207199
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207200
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207201
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207202
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207203
+  (0.1ms) DELETE FROM "notifiable_notifications";
207204
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207205
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207206
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
207207
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207208
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207209
+  (0.4ms) rollback transaction
207210
+  (0.1ms) begin transaction
207211
+  (0.0ms) SAVEPOINT active_record_1
207212
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
207213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207214
+  (0.0ms) SAVEPOINT active_record_1
207215
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
207216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207217
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
207218
+  (0.1ms) DELETE FROM "users";
207219
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207220
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
207221
+  (0.0ms) DELETE FROM "notifiable_apps";
207222
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207223
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207224
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
207225
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207226
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207227
+  (0.0ms) DELETE FROM "notifiable_notifications";
207228
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207229
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207230
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207231
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207232
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207233
+  (0.4ms) rollback transaction
207234
+  (0.1ms) begin transaction
207235
+  (0.0ms) SAVEPOINT active_record_1
207236
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
207237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207238
+  (0.0ms) SAVEPOINT active_record_1
207239
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
207240
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207241
+  (0.0ms) SAVEPOINT active_record_1
207242
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
207243
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD14"], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["user_id", 1]]
207244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207245
+  (0.0ms) SAVEPOINT active_record_1
207246
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
207247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207248
+  (0.0ms) SAVEPOINT active_record_1
207249
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
207250
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207251
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
207252
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
207253
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
207254
+  (0.0ms) SAVEPOINT active_record_1
207255
+ 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]]
207256
+ 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", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["params", nil]]
207257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207258
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
207259
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
207260
+  (0.0ms) DELETE FROM "users";
207261
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207262
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
207263
+  (0.0ms) DELETE FROM "notifiable_apps";
207264
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207265
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207266
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207267
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207268
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207269
+  (0.0ms) DELETE FROM "notifiable_notifications";
207270
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207271
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207272
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207273
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207274
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207275
+  (0.4ms) rollback transaction
207276
+  (0.1ms) begin transaction
207277
+  (0.1ms) SAVEPOINT active_record_1
207278
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
207279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207280
+  (0.0ms) SAVEPOINT active_record_1
207281
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
207282
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207283
+  (0.1ms) SAVEPOINT active_record_1
207284
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
207285
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD15"], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["user_id", 1]]
207286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207287
+  (0.1ms) SAVEPOINT active_record_1
207288
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
207289
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207290
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
207291
+  (0.0ms) SAVEPOINT active_record_1
207292
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
207293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207294
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
207295
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
207296
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
207297
+  (0.0ms) SAVEPOINT active_record_1
207298
+ 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]]
207299
+ 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", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["params", nil]]
207300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207301
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
207302
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
207303
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
207304
+  (0.0ms) DELETE FROM "users";
207305
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207306
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207307
+  (0.0ms) DELETE FROM "notifiable_apps";
207308
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207309
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207310
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207311
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207312
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207313
+  (0.0ms) DELETE FROM "notifiable_notifications";
207314
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207315
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207316
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
207317
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207318
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207319
+  (0.4ms) rollback transaction
207320
+  (0.1ms) begin transaction
207321
+  (0.0ms) SAVEPOINT active_record_1
207322
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
207323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207324
+  (0.1ms) SAVEPOINT active_record_1
207325
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
207326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207327
+  (0.0ms) SAVEPOINT active_record_1
207328
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
207329
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD16"], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["user_id", 1]]
207330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207331
+  (0.1ms) SAVEPOINT active_record_1
207332
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
207333
+  (0.1ms) RELEASE SAVEPOINT active_record_1
207334
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
207335
+  (0.0ms) DELETE FROM "users";
207336
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207337
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207338
+  (0.0ms) DELETE FROM "notifiable_apps";
207339
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207340
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207341
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207342
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207343
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207344
+  (0.0ms) DELETE FROM "notifiable_notifications";
207345
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207346
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207347
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
207348
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207349
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207350
+  (0.3ms) rollback transaction
207351
+  (0.3ms) begin transaction
207352
+  (0.1ms) SAVEPOINT active_record_1
207353
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
207354
+  (0.1ms) RELEASE SAVEPOINT active_record_1
207355
+  (0.0ms) SAVEPOINT active_record_1
207356
+ SQL (3.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207357
+  (0.1ms) RELEASE SAVEPOINT active_record_1
207358
+  (0.1ms) SAVEPOINT active_record_1
207359
+ Notifiable::DeviceToken Exists (0.2ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
207360
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
207361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207362
+ 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
207363
+ 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]]
207364
+  (0.0ms) SAVEPOINT active_record_1
207365
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207367
+  (0.0ms) SAVEPOINT active_record_1
207368
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
207369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207370
+  (0.0ms) SAVEPOINT active_record_1
207371
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
207372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207373
+ Processing by Notifiable::NotificationsController#opened as JSON
207374
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD1"}, "user_email"=>"person-2@example.com", "notification"=>{}}
207375
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
207376
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD1') LIMIT 1
207377
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
207378
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
207379
+ 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]]
207380
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
207381
+ Filter chain halted as :check_authorisation! rendered or redirected
207382
+ Completed 406 Not Acceptable in 4ms (ActiveRecord: 0.4ms)
207383
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
207384
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
207385
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications"
207386
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
207387
+  (0.0ms) DELETE FROM "users";
207388
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207389
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207390
+  (0.0ms) DELETE FROM "notifiable_apps";
207391
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207392
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207393
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207394
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207395
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207396
+  (0.0ms) DELETE FROM "notifiable_notifications";
207397
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207398
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207399
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207400
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207401
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207402
+  (6.3ms) rollback transaction
207403
+  (0.1ms) begin transaction
207404
+  (0.1ms) SAVEPOINT active_record_1
207405
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
207406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207407
+  (0.1ms) SAVEPOINT active_record_1
207408
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207410
+  (0.0ms) SAVEPOINT active_record_1
207411
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
207412
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
207413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207414
+ 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
207415
+ 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]]
207416
+  (0.0ms) SAVEPOINT active_record_1
207417
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207419
+  (0.0ms) SAVEPOINT active_record_1
207420
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
207421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207422
+ Processing by Notifiable::NotificationsController#opened as JSON
207423
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD2"}, "user_email"=>"person-3@example.com", "notification"=>{}}
207424
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
207425
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD2') LIMIT 1
207426
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
207427
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
207428
+ 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]]
207429
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
207430
+  (0.0ms) SAVEPOINT active_record_1
207431
+ SQL (0.1ms) UPDATE "notifiable_notification_statuses" SET "status" = ? WHERE "notifiable_notification_statuses"."id" = 1 [["status", -1]]
207432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207433
+ 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]]
207434
+  (0.0ms) SAVEPOINT active_record_1
207435
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil]]
207436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207437
+ Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
207438
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
207439
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
207440
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
207441
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
207442
+  (0.1ms) DELETE FROM "users";
207443
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207444
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
207445
+  (0.0ms) DELETE FROM "notifiable_apps";
207446
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207447
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207448
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207449
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207450
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207451
+  (0.0ms) DELETE FROM "notifiable_notifications";
207452
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207453
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207454
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207455
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207456
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207457
+  (4.2ms) rollback transaction
207458
+  (0.1ms) begin transaction
207459
+  (0.0ms) SAVEPOINT active_record_1
207460
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207462
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
207463
+  (0.1ms) SAVEPOINT active_record_1
207464
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
207466
+  (0.0ms) SAVEPOINT active_record_1
207467
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207469
+  (0.0ms) SAVEPOINT active_record_1
207470
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
207471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207472
+  (0.0ms) SAVEPOINT active_record_1
207473
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207475
+  (0.0ms) SAVEPOINT active_record_1
207476
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
207477
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
207478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207479
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
207480
+  (0.0ms) DELETE FROM "users";
207481
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207482
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207483
+  (0.0ms) DELETE FROM "notifiable_apps";
207484
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207485
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207486
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207487
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207488
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207489
+  (0.0ms) DELETE FROM "notifiable_notifications";
207490
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207491
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207492
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207493
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207494
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207495
+  (14.7ms) rollback transaction
207496
+  (0.1ms) begin transaction
207497
+  (0.0ms) SAVEPOINT active_record_1
207498
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207500
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
207501
+  (0.0ms) SAVEPOINT active_record_1
207502
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207504
+  (0.0ms) SAVEPOINT active_record_1
207505
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207507
+  (0.0ms) SAVEPOINT active_record_1
207508
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
207509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207510
+  (0.0ms) SAVEPOINT active_record_1
207511
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207513
+  (0.0ms) SAVEPOINT active_record_1
207514
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
207515
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
207516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207517
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
207518
+  (0.0ms) DELETE FROM "users";
207519
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207520
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207521
+  (0.0ms) DELETE FROM "notifiable_apps";
207522
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207523
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207524
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207525
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207526
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207527
+  (0.0ms) DELETE FROM "notifiable_notifications";
207528
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207529
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207530
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207531
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207532
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207533
+  (0.5ms) rollback transaction
207534
+  (0.1ms) begin transaction
207535
+  (0.0ms) SAVEPOINT active_record_1
207536
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207538
+  (0.0ms) SAVEPOINT active_record_1
207539
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
207540
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207541
+  (0.0ms) SAVEPOINT active_record_1
207542
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207543
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207544
+  (0.0ms) SAVEPOINT active_record_1
207545
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
207546
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :sms], ["token", "ABCD5"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
207547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207548
+  (0.0ms) SAVEPOINT active_record_1
207549
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207551
+  (0.0ms) SAVEPOINT active_record_1
207552
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207554
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
207555
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
207556
+  (0.0ms) DELETE FROM "users";
207557
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207558
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207559
+  (0.0ms) DELETE FROM "notifiable_apps";
207560
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207561
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207562
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207563
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207564
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207565
+  (0.0ms) DELETE FROM "notifiable_notifications";
207566
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207567
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207568
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
207569
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207570
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207571
+  (0.4ms) rollback transaction
207572
+  (0.0ms) begin transaction
207573
+  (0.0ms) SAVEPOINT active_record_1
207574
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
207575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207576
+  (0.0ms) SAVEPOINT active_record_1
207577
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207579
+  (0.0ms) SAVEPOINT active_record_1
207580
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
207581
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD6"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
207582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207583
+  (0.0ms) SAVEPOINT active_record_1
207584
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207585
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207586
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
207587
+  (0.0ms) DELETE FROM "users";
207588
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207589
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207590
+  (0.0ms) DELETE FROM "notifiable_apps";
207591
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207592
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207593
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207594
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207595
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207596
+  (0.0ms) DELETE FROM "notifiable_notifications";
207597
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207598
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207599
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207600
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207601
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207602
+  (0.7ms) rollback transaction
207603
+  (0.1ms) begin transaction
207604
+  (0.0ms) SAVEPOINT active_record_1
207605
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
207606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207607
+  (0.0ms) SAVEPOINT active_record_1
207608
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207609
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207610
+  (0.0ms) SAVEPOINT active_record_1
207611
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
207612
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD7"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
207613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207614
+  (0.0ms) SAVEPOINT active_record_1
207615
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207617
+  (0.0ms) DELETE FROM "users";
207618
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207619
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
207620
+  (0.1ms) DELETE FROM "notifiable_apps";
207621
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207622
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207623
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207624
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207625
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207626
+  (0.0ms) DELETE FROM "notifiable_notifications";
207627
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207628
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207629
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
207630
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207631
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207632
+  (0.4ms) rollback transaction
207633
+  (0.0ms) begin transaction
207634
+  (0.0ms) SAVEPOINT active_record_1
207635
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
207636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207637
+  (0.0ms) SAVEPOINT active_record_1
207638
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207640
+  (0.0ms) SAVEPOINT active_record_1
207641
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
207642
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD8"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
207643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207644
+  (0.0ms) SAVEPOINT active_record_1
207645
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207647
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
207648
+  (0.0ms) DELETE FROM "users";
207649
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207650
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207651
+  (0.0ms) DELETE FROM "notifiable_apps";
207652
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207653
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207654
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207655
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207656
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207657
+  (0.0ms) DELETE FROM "notifiable_notifications";
207658
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207659
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207660
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207661
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207662
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207663
+  (0.4ms) rollback transaction
207664
+  (0.0ms) begin transaction
207665
+  (0.0ms) SAVEPOINT active_record_1
207666
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
207667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207668
+  (0.0ms) SAVEPOINT active_record_1
207669
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207671
+ Processing by Notifiable::DeviceTokensController#create as JSON
207672
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-10@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
207673
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
207674
+ Unpermitted parameters: user_email, device_token
207675
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
207676
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
207677
+  (0.0ms) SAVEPOINT active_record_1
207678
+ 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]]
207679
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
207680
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
207681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207682
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
207683
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
207684
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
207685
+ 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
207686
+ 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]]
207687
+  (0.1ms) DELETE FROM "users";
207688
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207689
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207690
+  (0.0ms) DELETE FROM "notifiable_apps";
207691
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207692
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207693
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207694
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207695
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207696
+  (0.1ms) DELETE FROM "notifiable_notifications";
207697
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207698
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207699
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207700
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207701
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207702
+  (0.4ms) rollback transaction
207703
+  (0.0ms) begin transaction
207704
+  (0.0ms) SAVEPOINT active_record_1
207705
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207707
+ Processing by Notifiable::DeviceTokensController#create as JSON
207708
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
207709
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
207710
+ Unpermitted parameters: device_token
207711
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
207712
+  (0.0ms) SAVEPOINT active_record_1
207713
+ 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]]
207714
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
207715
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207717
+ Completed 200 OK in 4ms (ActiveRecord: 0.8ms)
207718
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
207719
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
207720
+ 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]]
207721
+  (0.0ms) SELECT COUNT(*) FROM "users"
207722
+  (0.1ms) DELETE FROM "users";
207723
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207724
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207725
+  (0.0ms) DELETE FROM "notifiable_apps";
207726
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207727
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207728
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207729
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207730
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207731
+  (0.1ms) DELETE FROM "notifiable_notifications";
207732
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207733
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207734
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
207735
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207736
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207737
+  (0.5ms) rollback transaction
207738
+  (0.0ms) begin transaction
207739
+  (0.0ms) SAVEPOINT active_record_1
207740
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
207741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207742
+ Processing by Notifiable::DeviceTokensController#create as JSON
207743
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-11@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
207744
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
207745
+ Unpermitted parameters: user_email, device_token
207746
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
207747
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
207748
+  (0.0ms) SAVEPOINT active_record_1
207749
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
207750
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
207751
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
207752
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
207753
+  (0.2ms) DELETE FROM "users";
207754
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207755
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
207756
+  (0.1ms) DELETE FROM "notifiable_apps";
207757
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207758
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207759
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
207760
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207761
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207762
+  (0.0ms) DELETE FROM "notifiable_notifications";
207763
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207764
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207765
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207766
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207767
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207768
+  (0.4ms) rollback transaction
207769
+  (0.0ms) begin transaction
207770
+  (0.0ms) SAVEPOINT active_record_1
207771
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
207772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207773
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
207774
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-12@example.com", "device_token"=>{"token"=>"ZXY987"}}
207775
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
207776
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
207777
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
207778
+  (0.0ms) SAVEPOINT active_record_1
207779
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
207780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207781
+  (0.0ms) SAVEPOINT active_record_1
207782
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207784
+  (0.0ms) SAVEPOINT active_record_1
207785
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
207786
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 2]]
207787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207788
+ 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
207789
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'
207790
+  (0.0ms) DELETE FROM "users";
207791
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207792
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207793
+  (0.0ms) DELETE FROM "notifiable_apps";
207794
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207795
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207796
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207797
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207798
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207799
+  (0.1ms) DELETE FROM "notifiable_notifications";
207800
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207801
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207802
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
207803
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207804
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207805
+  (0.4ms) rollback transaction
207806
+  (0.1ms) begin transaction
207807
+  (0.0ms) SAVEPOINT active_record_1
207808
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
207809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207810
+  (0.0ms) SAVEPOINT active_record_1
207811
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207813
+  (0.0ms) SAVEPOINT active_record_1
207814
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
207815
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
207816
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207817
+ 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
207818
+  (0.0ms) SAVEPOINT active_record_1
207819
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
207820
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207821
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
207822
+ Parameters: {"token"=>"ABCD10", "user_email"=>"person-15@example.com", "device_token"=>{"token"=>"ABCD10"}}
207823
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
207824
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
207825
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
207826
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
207827
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
207828
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10'
207829
+  (0.1ms) DELETE FROM "users";
207830
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207831
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207832
+  (0.0ms) DELETE FROM "notifiable_apps";
207833
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207834
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207835
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207836
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207837
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207838
+  (0.1ms) DELETE FROM "notifiable_notifications";
207839
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207840
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207841
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207842
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207843
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207844
+  (0.4ms) rollback transaction
207845
+  (0.0ms) begin transaction
207846
+  (0.0ms) SAVEPOINT active_record_1
207847
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
207848
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207849
+  (0.1ms) SAVEPOINT active_record_1
207850
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207852
+  (0.0ms) SAVEPOINT active_record_1
207853
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
207854
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
207855
+  (0.1ms) RELEASE SAVEPOINT active_record_1
207856
+ 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
207857
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
207858
+ Parameters: {"token"=>"ABCD11", "device_token"=>{"token"=>"ABCD11"}}
207859
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
207860
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
207861
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
207862
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11'
207863
+  (0.1ms) DELETE FROM "users";
207864
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207865
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207866
+  (0.0ms) DELETE FROM "notifiable_apps";
207867
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207868
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207869
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207870
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207871
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207872
+  (0.1ms) DELETE FROM "notifiable_notifications";
207873
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207874
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207875
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
207876
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207877
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207878
+  (0.5ms) rollback transaction
207879
+  (0.1ms) begin transaction
207880
+  (0.0ms) SAVEPOINT active_record_1
207881
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207883
+  (0.0ms) SAVEPOINT active_record_1
207884
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
207885
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD12"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207886
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207887
+  (0.0ms) SAVEPOINT active_record_1
207888
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
207889
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207890
+ Processing by Notifiable::DeviceTokensController#create as JSON
207891
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-17@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
207892
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
207893
+ Unpermitted parameters: user_email, device_token
207894
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
207895
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
207896
+  (0.0ms) SAVEPOINT active_record_1
207897
+ 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]]
207898
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
207899
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207900
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207901
+ Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
207902
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
207903
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
207904
+ 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
207905
+ 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]]
207906
+  (0.0ms) SAVEPOINT active_record_1
207907
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207909
+  (0.0ms) DELETE FROM "users";
207910
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207911
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207912
+  (0.0ms) DELETE FROM "notifiable_apps";
207913
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207914
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207915
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207916
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207917
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207918
+  (0.1ms) DELETE FROM "notifiable_notifications";
207919
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207920
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207921
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
207922
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207923
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207924
+  (0.4ms) rollback transaction
207925
+  (0.0ms) begin transaction
207926
+  (0.0ms) SAVEPOINT active_record_1
207927
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
207928
+  (0.1ms) RELEASE SAVEPOINT active_record_1
207929
+  (0.0ms) SAVEPOINT active_record_1
207930
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207932
+ Processing by Notifiable::DeviceTokensController#create as JSON
207933
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-18@example.com", "provider"=>"mpns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456", "app_id"=>"1"}}
207934
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
207935
+ Unpermitted parameters: user_email, device_token
207936
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
207937
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
207938
+  (0.0ms) SAVEPOINT active_record_1
207939
+ 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]]
207940
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
207941
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
207942
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207943
+ Completed 200 OK in 5ms (ActiveRecord: 0.7ms)
207944
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
207945
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
207946
+ 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
207947
+ 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]]
207948
+  (0.1ms) DELETE FROM "users";
207949
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207950
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207951
+  (0.0ms) DELETE FROM "notifiable_apps";
207952
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207953
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207954
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207955
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207956
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207957
+  (0.1ms) DELETE FROM "notifiable_notifications";
207958
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207959
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207960
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
207961
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207962
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
207963
+  (0.4ms) rollback transaction
207964
+  (0.1ms) begin transaction
207965
+  (0.0ms) SAVEPOINT active_record_1
207966
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
207967
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207968
+  (0.0ms) SAVEPOINT active_record_1
207969
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
207970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207971
+  (0.0ms) SAVEPOINT active_record_1
207972
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
207973
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
207974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207975
+ 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
207976
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
207977
+ Parameters: {"token"=>"ABCD13", "user_email"=>"person-19@example.com", "device_token"=>{"token"=>"ABCD13"}}
207978
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
207979
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
207980
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
207981
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
207982
+  (0.0ms) SAVEPOINT active_record_1
207983
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
207984
+  (0.0ms) RELEASE SAVEPOINT active_record_1
207985
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
207986
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13'
207987
+  (0.1ms) DELETE FROM "users";
207988
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207989
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
207990
+  (0.0ms) DELETE FROM "notifiable_apps";
207991
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207992
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
207993
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
207994
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207995
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
207996
+  (0.1ms) DELETE FROM "notifiable_notifications";
207997
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
207998
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
207999
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
208000
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208001
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208002
+  (0.4ms) rollback transaction
208003
+  (0.1ms) begin transaction
208004
+  (0.0ms) SAVEPOINT active_record_1
208005
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
208006
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208007
+  (0.0ms) SAVEPOINT active_record_1
208008
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
208009
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208010
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
208011
+  (0.1ms) DELETE FROM "users";
208012
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208013
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208014
+  (0.0ms) DELETE FROM "notifiable_apps";
208015
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208016
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208017
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
208018
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208019
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208020
+  (0.0ms) DELETE FROM "notifiable_notifications";
208021
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208022
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208023
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208024
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208025
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208026
+  (0.3ms) rollback transaction
208027
+  (0.1ms) begin transaction
208028
+  (0.1ms) SAVEPOINT active_record_1
208029
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
208030
+  (0.1ms) RELEASE SAVEPOINT active_record_1
208031
+  (0.0ms) SAVEPOINT active_record_1
208032
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
208033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208034
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
208035
+  (0.1ms) DELETE FROM "users";
208036
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208037
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
208038
+  (0.1ms) DELETE FROM "notifiable_apps";
208039
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208040
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208041
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
208042
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208043
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208044
+  (0.0ms) DELETE FROM "notifiable_notifications";
208045
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208046
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208047
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208048
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208049
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208050
+  (0.5ms) rollback transaction
208051
+  (0.1ms) begin transaction
208052
+  (0.0ms) SAVEPOINT active_record_1
208053
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
208054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208055
+  (0.0ms) SAVEPOINT active_record_1
208056
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
208057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208058
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
208059
+  (0.1ms) DELETE FROM "users";
208060
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208061
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208062
+  (0.0ms) DELETE FROM "notifiable_apps";
208063
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208064
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208065
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
208066
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208067
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208068
+  (0.0ms) DELETE FROM "notifiable_notifications";
208069
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208070
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208071
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208072
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208073
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208074
+  (0.4ms) rollback transaction
208075
+  (0.1ms) begin transaction
208076
+  (0.0ms) SAVEPOINT active_record_1
208077
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
208078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208079
+  (0.1ms) SAVEPOINT active_record_1
208080
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
208081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208082
+  (0.0ms) SAVEPOINT active_record_1
208083
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?) [["notification_id", 1]]
208084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208085
+  (0.0ms) SAVEPOINT active_record_1
208086
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
208087
+ SQL (0.1ms) DELETE FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."id" = ? [["id", 1]]
208088
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
208089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208090
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
208091
+  (0.1ms) DELETE FROM "users";
208092
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208093
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208094
+  (0.0ms) DELETE FROM "notifiable_apps";
208095
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208096
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208097
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
208098
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208099
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208100
+  (0.0ms) DELETE FROM "notifiable_notifications";
208101
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208102
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208103
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208104
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208105
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208106
+  (0.4ms) rollback transaction
208107
+  (0.1ms) begin transaction
208108
+  (0.0ms) SAVEPOINT active_record_1
208109
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
208110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208111
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
208112
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
208113
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
208114
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
208115
+  (0.1ms) DELETE FROM "users";
208116
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208117
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208118
+  (0.0ms) DELETE FROM "notifiable_apps";
208119
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208120
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208121
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
208122
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208123
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208124
+  (0.1ms) DELETE FROM "notifiable_notifications";
208125
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208126
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208127
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208128
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208129
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208130
+  (0.4ms) rollback transaction
208131
+  (0.1ms) begin transaction
208132
+  (0.0ms) SAVEPOINT active_record_1
208133
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
208134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208135
+  (0.0ms) SAVEPOINT active_record_1
208136
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
208137
+  (0.1ms) RELEASE SAVEPOINT active_record_1
208138
+  (0.0ms) SAVEPOINT active_record_1
208139
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
208140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208141
+  (0.0ms) SAVEPOINT active_record_1
208142
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
208143
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208144
+  (0.0ms) SAVEPOINT active_record_1
208145
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
208146
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
208147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208148
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
208149
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
208150
+  (0.0ms) DELETE FROM "users";
208151
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208152
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
208153
+  (0.0ms) DELETE FROM "notifiable_apps";
208154
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208155
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208156
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208157
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208158
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208159
+  (0.0ms) DELETE FROM "notifiable_notifications";
208160
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208161
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208162
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208163
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208164
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208165
+  (0.4ms) rollback transaction
208166
+  (0.3ms) begin transaction
208167
+  (0.0ms) SAVEPOINT active_record_1
208168
+ SQL (2.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00]]
208169
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208170
+  (0.0ms) SAVEPOINT active_record_1
208171
+ SQL (1.0ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00]]
208172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
208173
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
208174
+  (0.1ms) DELETE FROM "users";
208175
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208176
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208177
+  (0.0ms) DELETE FROM "notifiable_apps";
208178
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208179
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208180
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
208181
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208182
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208183
+  (0.0ms) DELETE FROM "notifiable_notifications";
208184
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208185
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208186
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
208187
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208188
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208189
+  (6.7ms) rollback transaction
208190
+  (0.1ms) begin transaction
208191
+  (0.0ms) SAVEPOINT active_record_1
208192
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00]]
208193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208194
+  (0.0ms) SAVEPOINT active_record_1
208195
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
208196
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD1"], ["updated_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00]]
208197
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208198
+  (0.0ms) SAVEPOINT active_record_1
208199
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
208200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208201
+ Processing by Notifiable::DeviceTokensController#create as JSON
208202
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-1@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
208203
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
208204
+ Unpermitted parameters: user_email, device_token
208205
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
208206
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
208207
+  (0.0ms) SAVEPOINT active_record_1
208208
+ 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]]
208209
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
208210
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208212
+ Completed 200 OK in 8ms (ActiveRecord: 0.7ms)
208213
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
208214
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
208215
+ 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
208216
+ 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]]
208217
+  (0.0ms) SAVEPOINT active_record_1
208218
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208220
+  (0.0ms) DELETE FROM "users";
208221
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208222
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208223
+  (0.0ms) DELETE FROM "notifiable_apps";
208224
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208225
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208226
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208227
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208228
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208229
+  (0.1ms) DELETE FROM "notifiable_notifications";
208230
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208231
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208232
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
208233
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208234
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208235
+  (0.5ms) rollback transaction
208236
+  (0.1ms) begin transaction
208237
+  (0.0ms) SAVEPOINT active_record_1
208238
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
208239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208240
+ Processing by Notifiable::DeviceTokensController#create as JSON
208241
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-2@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
208242
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
208243
+ Unpermitted parameters: user_email, device_token
208244
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
208245
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
208246
+  (0.0ms) SAVEPOINT active_record_1
208247
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
208248
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
208249
+ Completed 422 Unprocessable Entity in 31ms (Views: 0.2ms | ActiveRecord: 0.4ms)
208250
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
208251
+  (0.3ms) DELETE FROM "users";
208252
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208253
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
208254
+  (0.1ms) DELETE FROM "notifiable_apps";
208255
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208256
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208257
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
208258
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208259
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208260
+  (0.0ms) DELETE FROM "notifiable_notifications";
208261
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208262
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208263
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208264
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208265
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208266
+  (0.4ms) rollback transaction
208267
+  (0.1ms) begin transaction
208268
+  (0.1ms) SAVEPOINT active_record_1
208269
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208271
+ Processing by Notifiable::DeviceTokensController#create as JSON
208272
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
208273
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
208274
+ Unpermitted parameters: device_token
208275
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
208276
+  (0.0ms) SAVEPOINT active_record_1
208277
+ 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]]
208278
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
208279
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208281
+ Completed 200 OK in 5ms (ActiveRecord: 0.8ms)
208282
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
208283
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
208284
+ 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]]
208285
+  (0.0ms) SELECT COUNT(*) FROM "users"
208286
+  (0.1ms) DELETE FROM "users";
208287
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208288
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208289
+  (0.0ms) DELETE FROM "notifiable_apps";
208290
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208291
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208292
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208293
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208294
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208295
+  (0.1ms) DELETE FROM "notifiable_notifications";
208296
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208297
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208298
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
208299
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208300
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208301
+  (0.4ms) rollback transaction
208302
+  (0.1ms) begin transaction
208303
+  (0.1ms) SAVEPOINT active_record_1
208304
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
208305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208306
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
208307
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-3@example.com", "device_token"=>{"token"=>"ZXY987"}}
208308
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
208309
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
208310
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
208311
+  (0.0ms) SAVEPOINT active_record_1
208312
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
208313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208314
+  (0.0ms) SAVEPOINT active_record_1
208315
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208317
+  (0.0ms) SAVEPOINT active_record_1
208318
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
208319
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 2]]
208320
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208321
+ 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
208322
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2'
208323
+  (0.1ms) DELETE FROM "users";
208324
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208325
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208326
+  (0.0ms) DELETE FROM "notifiable_apps";
208327
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208328
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208329
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208330
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208331
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208332
+  (0.1ms) DELETE FROM "notifiable_notifications";
208333
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208334
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208335
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
208336
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208337
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208338
+  (0.4ms) rollback transaction
208339
+  (0.0ms) begin transaction
208340
+  (0.0ms) SAVEPOINT active_record_1
208341
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
208342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208343
+  (0.0ms) SAVEPOINT active_record_1
208344
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208346
+  (0.0ms) SAVEPOINT active_record_1
208347
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
208348
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208350
+ 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
208351
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
208352
+ Parameters: {"token"=>"ABCD3", "user_email"=>"person-5@example.com", "device_token"=>{"token"=>"ABCD3"}}
208353
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
208354
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
208355
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
208356
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
208357
+  (0.0ms) SAVEPOINT active_record_1
208358
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
208359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208360
+ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
208361
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3'
208362
+  (0.0ms) DELETE FROM "users";
208363
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208364
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208365
+  (0.0ms) DELETE FROM "notifiable_apps";
208366
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208367
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208368
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208369
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208370
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208371
+  (0.1ms) DELETE FROM "notifiable_notifications";
208372
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208373
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208374
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208375
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208376
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208377
+  (0.5ms) rollback transaction
208378
+  (0.0ms) begin transaction
208379
+  (0.1ms) SAVEPOINT active_record_1
208380
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
208381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208382
+  (0.0ms) SAVEPOINT active_record_1
208383
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208385
+  (0.0ms) SAVEPOINT active_record_1
208386
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
208387
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208389
+ 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
208390
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
208391
+ Parameters: {"token"=>"ABCD4", "device_token"=>{"token"=>"ABCD4"}}
208392
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
208393
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
208394
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
208395
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'
208396
+  (0.1ms) DELETE FROM "users";
208397
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208398
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208399
+  (0.0ms) DELETE FROM "notifiable_apps";
208400
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208401
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208402
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208403
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208404
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208405
+  (0.1ms) DELETE FROM "notifiable_notifications";
208406
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208407
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208408
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208409
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208410
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208411
+  (0.4ms) rollback transaction
208412
+  (0.0ms) begin transaction
208413
+  (0.0ms) SAVEPOINT active_record_1
208414
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
208415
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208416
+  (0.0ms) SAVEPOINT active_record_1
208417
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208419
+ Processing by Notifiable::DeviceTokensController#create as JSON
208420
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-7@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
208421
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
208422
+ Unpermitted parameters: user_email, device_token
208423
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
208424
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
208425
+  (0.0ms) SAVEPOINT active_record_1
208426
+ 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]]
208427
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
208428
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208430
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
208431
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
208432
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
208433
+ 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
208434
+ 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]]
208435
+  (0.0ms) DELETE FROM "users";
208436
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208437
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208438
+  (0.0ms) DELETE FROM "notifiable_apps";
208439
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208440
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208441
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208442
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208443
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208444
+  (0.1ms) DELETE FROM "notifiable_notifications";
208445
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208446
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208447
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
208448
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208449
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208450
+  (0.4ms) rollback transaction
208451
+  (0.1ms) begin transaction
208452
+  (0.0ms) SAVEPOINT active_record_1
208453
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
208454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208455
+  (0.0ms) SAVEPOINT active_record_1
208456
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208457
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208458
+ Processing by Notifiable::DeviceTokensController#create as JSON
208459
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-8@example.com", "provider"=>"mpns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456", "app_id"=>"1"}}
208460
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
208461
+ Unpermitted parameters: user_email, device_token
208462
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
208463
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
208464
+  (0.0ms) SAVEPOINT active_record_1
208465
+ 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]]
208466
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
208467
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208469
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
208470
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
208471
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
208472
+ 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
208473
+ 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]]
208474
+  (0.1ms) DELETE FROM "users";
208475
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208476
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
208477
+  (0.1ms) DELETE FROM "notifiable_apps";
208478
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208479
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208480
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
208481
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208482
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208483
+  (0.1ms) DELETE FROM "notifiable_notifications";
208484
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208485
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208486
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
208487
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208488
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208489
+  (0.5ms) rollback transaction
208490
+  (0.0ms) begin transaction
208491
+  (0.0ms) SAVEPOINT active_record_1
208492
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
208493
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208494
+  (0.0ms) SAVEPOINT active_record_1
208495
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208497
+  (0.0ms) SAVEPOINT active_record_1
208498
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
208499
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208501
+ 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
208502
+  (0.0ms) SAVEPOINT active_record_1
208503
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
208504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208505
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
208506
+ Parameters: {"token"=>"ABCD5", "user_email"=>"person-10@example.com", "device_token"=>{"token"=>"ABCD5"}}
208507
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
208508
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
208509
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
208510
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
208511
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
208512
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
208513
+  (0.1ms) DELETE FROM "users";
208514
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208515
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208516
+  (0.0ms) DELETE FROM "notifiable_apps";
208517
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208518
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208519
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208520
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208521
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208522
+  (0.1ms) DELETE FROM "notifiable_notifications";
208523
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208524
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208525
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
208526
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208527
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208528
+  (0.4ms) rollback transaction
208529
+  (0.0ms) begin transaction
208530
+  (0.0ms) SAVEPOINT active_record_1
208531
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208533
+  (0.0ms) SAVEPOINT active_record_1
208534
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208535
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208536
+  (0.0ms) SAVEPOINT active_record_1
208537
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
208538
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208539
+  (0.0ms) SAVEPOINT active_record_1
208540
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208542
+  (0.0ms) SAVEPOINT active_record_1
208543
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
208544
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208546
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
208547
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
208548
+  (0.0ms) DELETE FROM "users";
208549
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208550
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208551
+  (0.0ms) DELETE FROM "notifiable_apps";
208552
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208553
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208554
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208555
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208556
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208557
+  (0.1ms) DELETE FROM "notifiable_notifications";
208558
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208559
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208560
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
208561
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208562
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208563
+  (0.4ms) rollback transaction
208564
+  (0.0ms) begin transaction
208565
+  (0.0ms) SAVEPOINT active_record_1
208566
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208568
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
208569
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
208570
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
208571
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
208572
+  (0.1ms) DELETE FROM "users";
208573
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208574
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208575
+  (0.0ms) DELETE FROM "notifiable_apps";
208576
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208577
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208578
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
208579
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208580
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208581
+  (0.1ms) DELETE FROM "notifiable_notifications";
208582
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208583
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208584
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208585
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208586
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208587
+  (0.4ms) rollback transaction
208588
+  (0.0ms) begin transaction
208589
+  (0.1ms) SAVEPOINT active_record_1
208590
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
208591
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208592
+  (0.0ms) SAVEPOINT active_record_1
208593
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208594
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208595
+  (0.0ms) SAVEPOINT active_record_1
208596
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
208597
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD7"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208599
+  (0.0ms) SAVEPOINT active_record_1
208600
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208601
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208602
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
208603
+  (0.1ms) SAVEPOINT active_record_1
208604
+ SQL (0.2ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
208605
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208606
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
208607
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
208608
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
208609
+  (0.0ms) SAVEPOINT active_record_1
208610
+ 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]]
208611
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil]]
208612
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208613
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
208614
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
208615
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
208616
+  (0.0ms) DELETE FROM "users";
208617
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208618
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208619
+  (0.0ms) DELETE FROM "notifiable_apps";
208620
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208621
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208622
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208623
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208624
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208625
+  (0.0ms) DELETE FROM "notifiable_notifications";
208626
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208627
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208628
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208629
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208630
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208631
+  (0.5ms) rollback transaction
208632
+  (0.1ms) begin transaction
208633
+  (0.0ms) SAVEPOINT active_record_1
208634
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
208635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208636
+  (0.0ms) SAVEPOINT active_record_1
208637
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208639
+  (0.0ms) SAVEPOINT active_record_1
208640
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
208641
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD8"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208643
+  (0.0ms) SAVEPOINT active_record_1
208644
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208645
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208646
+  (0.0ms) SAVEPOINT active_record_1
208647
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
208648
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208649
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
208650
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
208651
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
208652
+  (0.0ms) SAVEPOINT active_record_1
208653
+ 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]]
208654
+ 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", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil]]
208655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208656
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
208657
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
208658
+  (0.1ms) DELETE FROM "users";
208659
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208660
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208661
+  (0.0ms) DELETE FROM "notifiable_apps";
208662
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208663
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208664
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208665
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208666
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208667
+  (0.0ms) DELETE FROM "notifiable_notifications";
208668
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208669
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208670
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208671
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208672
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208673
+  (0.5ms) rollback transaction
208674
+  (0.1ms) begin transaction
208675
+  (0.0ms) SAVEPOINT active_record_1
208676
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
208677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208678
+  (0.0ms) SAVEPOINT active_record_1
208679
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208680
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208681
+  (0.0ms) SAVEPOINT active_record_1
208682
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
208683
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD9"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208685
+  (0.0ms) SAVEPOINT active_record_1
208686
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208688
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
208689
+  (0.0ms) DELETE FROM "users";
208690
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208691
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208692
+  (0.0ms) DELETE FROM "notifiable_apps";
208693
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208694
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208695
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208696
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208697
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208698
+  (0.0ms) DELETE FROM "notifiable_notifications";
208699
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208700
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208701
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208702
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208703
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208704
+  (0.4ms) rollback transaction
208705
+  (0.1ms) begin transaction
208706
+  (0.0ms) SAVEPOINT active_record_1
208707
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208708
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208709
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
208710
+  (0.0ms) SAVEPOINT active_record_1
208711
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208713
+  (0.0ms) SAVEPOINT active_record_1
208714
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208715
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208716
+  (0.0ms) SAVEPOINT active_record_1
208717
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
208718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208719
+  (0.0ms) SAVEPOINT active_record_1
208720
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208721
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208722
+  (0.0ms) SAVEPOINT active_record_1
208723
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
208724
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208726
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
208727
+  (0.0ms) DELETE FROM "users";
208728
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208729
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
208730
+  (0.0ms) DELETE FROM "notifiable_apps";
208731
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208732
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208733
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208734
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208735
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208736
+  (0.0ms) DELETE FROM "notifiable_notifications";
208737
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208738
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208739
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208740
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208741
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208742
+  (0.3ms) rollback transaction
208743
+  (0.0ms) begin transaction
208744
+  (0.0ms) SAVEPOINT active_record_1
208745
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208747
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
208748
+  (0.0ms) SAVEPOINT active_record_1
208749
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208751
+  (0.1ms) SAVEPOINT active_record_1
208752
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208754
+  (0.0ms) SAVEPOINT active_record_1
208755
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
208756
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208757
+  (0.0ms) SAVEPOINT active_record_1
208758
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208760
+  (0.0ms) SAVEPOINT active_record_1
208761
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
208762
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208763
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208764
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
208765
+  (0.1ms) DELETE FROM "users";
208766
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208767
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208768
+  (0.0ms) DELETE FROM "notifiable_apps";
208769
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208770
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208771
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208772
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208773
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208774
+  (0.0ms) DELETE FROM "notifiable_notifications";
208775
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208776
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208777
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
208778
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208779
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208780
+  (0.5ms) rollback transaction
208781
+  (0.1ms) begin transaction
208782
+  (0.0ms) SAVEPOINT active_record_1
208783
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208785
+  (0.0ms) SAVEPOINT active_record_1
208786
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
208787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208788
+  (0.0ms) SAVEPOINT active_record_1
208789
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208791
+  (0.0ms) SAVEPOINT active_record_1
208792
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
208793
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :sms], ["token", "ABCD12"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208795
+  (0.0ms) SAVEPOINT active_record_1
208796
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208798
+  (0.0ms) SAVEPOINT active_record_1
208799
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208801
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
208802
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
208803
+  (0.0ms) DELETE FROM "users";
208804
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208805
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208806
+  (0.0ms) DELETE FROM "notifiable_apps";
208807
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208808
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208809
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208810
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208811
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208812
+  (0.0ms) DELETE FROM "notifiable_notifications";
208813
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208814
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208815
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
208816
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208817
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208818
+  (0.4ms) rollback transaction
208819
+  (0.1ms) begin transaction
208820
+  (0.0ms) SAVEPOINT active_record_1
208821
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208823
+  (0.0ms) SAVEPOINT active_record_1
208824
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208826
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
208827
+  (0.1ms) DELETE FROM "users";
208828
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208829
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208830
+  (0.0ms) DELETE FROM "notifiable_apps";
208831
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208832
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208833
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
208834
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208835
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208836
+  (0.0ms) DELETE FROM "notifiable_notifications";
208837
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208838
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208839
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208840
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208841
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208842
+  (0.4ms) rollback transaction
208843
+  (0.1ms) begin transaction
208844
+  (0.0ms) SAVEPOINT active_record_1
208845
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208847
+  (0.0ms) SAVEPOINT active_record_1
208848
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208850
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
208851
+  (0.1ms) DELETE FROM "users";
208852
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208853
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208854
+  (0.0ms) DELETE FROM "notifiable_apps";
208855
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208856
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208857
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
208858
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208859
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208860
+  (0.0ms) DELETE FROM "notifiable_notifications";
208861
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208862
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208863
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208864
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208865
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208866
+  (0.4ms) rollback transaction
208867
+  (0.1ms) begin transaction
208868
+  (0.0ms) SAVEPOINT active_record_1
208869
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208871
+  (0.0ms) SAVEPOINT active_record_1
208872
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208873
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208874
+  (0.0ms) SAVEPOINT active_record_1
208875
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?) [["notification_id", 1]]
208876
+  (0.1ms) RELEASE SAVEPOINT active_record_1
208877
+  (0.0ms) SAVEPOINT active_record_1
208878
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
208879
+ SQL (0.1ms) DELETE FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."id" = ? [["id", 1]]
208880
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
208881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208882
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
208883
+  (0.1ms) DELETE FROM "users";
208884
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208885
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
208886
+  (0.1ms) DELETE FROM "notifiable_apps";
208887
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208888
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208889
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
208890
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208891
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208892
+  (0.0ms) DELETE FROM "notifiable_notifications";
208893
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208894
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208895
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208896
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208897
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208898
+  (0.3ms) rollback transaction
208899
+  (0.1ms) begin transaction
208900
+  (0.0ms) SAVEPOINT active_record_1
208901
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
208902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208903
+  (0.0ms) SAVEPOINT active_record_1
208904
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208906
+  (0.0ms) SAVEPOINT active_record_1
208907
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
208908
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208910
+ 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
208911
+ 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]]
208912
+  (0.0ms) SAVEPOINT active_record_1
208913
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208914
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208915
+  (0.0ms) SAVEPOINT active_record_1
208916
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
208917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208918
+ Processing by Notifiable::NotificationsController#opened as JSON
208919
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD13"}, "user_email"=>"person-19@example.com", "notification"=>{}}
208920
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
208921
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD13') LIMIT 1
208922
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
208923
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
208924
+ 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]]
208925
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
208926
+  (0.0ms) SAVEPOINT active_record_1
208927
+ SQL (0.1ms) UPDATE "notifiable_notification_statuses" SET "status" = ? WHERE "notifiable_notification_statuses"."id" = 1 [["status", -1]]
208928
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208929
+ 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]]
208930
+  (0.0ms) SAVEPOINT active_record_1
208931
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil]]
208932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208933
+ Completed 200 OK in 6ms (ActiveRecord: 0.9ms)
208934
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
208935
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
208936
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
208937
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
208938
+  (0.1ms) DELETE FROM "users";
208939
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208940
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
208941
+  (0.0ms) DELETE FROM "notifiable_apps";
208942
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208943
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208944
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208945
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208946
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208947
+  (0.0ms) DELETE FROM "notifiable_notifications";
208948
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208949
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
208950
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
208951
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208952
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
208953
+  (0.4ms) rollback transaction
208954
+  (0.1ms) begin transaction
208955
+  (0.0ms) SAVEPOINT active_record_1
208956
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
208957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208958
+  (0.0ms) SAVEPOINT active_record_1
208959
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208961
+  (0.0ms) SAVEPOINT active_record_1
208962
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
208963
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
208964
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208965
+ 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
208966
+ 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]]
208967
+  (0.0ms) SAVEPOINT active_record_1
208968
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
208969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208970
+  (0.0ms) SAVEPOINT active_record_1
208971
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
208972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208973
+  (0.0ms) SAVEPOINT active_record_1
208974
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
208975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208976
+ Processing by Notifiable::NotificationsController#opened as JSON
208977
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD14"}, "user_email"=>"person-21@example.com", "notification"=>{}}
208978
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
208979
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD14') LIMIT 1
208980
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
208981
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
208982
+ 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]]
208983
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
208984
+ Filter chain halted as :check_authorisation! rendered or redirected
208985
+ Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.3ms)
208986
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
208987
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
208988
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
208989
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
208990
+  (0.1ms) DELETE FROM "users";
208991
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208992
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
208993
+  (0.0ms) DELETE FROM "notifiable_apps";
208994
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208995
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
208996
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
208997
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208998
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
208999
+  (0.0ms) DELETE FROM "notifiable_notifications";
209000
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209001
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209002
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209003
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209004
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209005
+  (0.4ms) rollback transaction
209006
+  (0.3ms) begin transaction
209007
+  (0.0ms) SAVEPOINT active_record_1
209008
+ SQL (2.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209009
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209010
+  (0.0ms) SAVEPOINT active_record_1
209011
+ SQL (1.0ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209013
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
209014
+  (0.1ms) DELETE FROM "users";
209015
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209016
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209017
+  (0.0ms) DELETE FROM "notifiable_apps";
209018
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209019
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209020
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
209021
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209022
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209023
+  (0.0ms) DELETE FROM "notifiable_notifications";
209024
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209025
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209026
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
209027
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209028
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209029
+  (6.7ms) rollback transaction
209030
+  (0.1ms) begin transaction
209031
+  (0.1ms) SAVEPOINT active_record_1
209032
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209034
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
209035
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
209036
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
209037
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
209038
+  (0.1ms) DELETE FROM "users";
209039
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209040
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209041
+  (0.0ms) DELETE FROM "notifiable_apps";
209042
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209043
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209044
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
209045
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209046
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209047
+  (0.0ms) DELETE FROM "notifiable_notifications";
209048
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209049
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209050
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209051
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209052
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209053
+  (0.4ms) rollback transaction
209054
+  (0.0ms) begin transaction
209055
+  (0.0ms) SAVEPOINT active_record_1
209056
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209058
+  (0.0ms) SAVEPOINT active_record_1
209059
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209061
+  (0.0ms) SAVEPOINT active_record_1
209062
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
209063
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209064
+  (0.0ms) SAVEPOINT active_record_1
209065
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209066
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209067
+  (0.0ms) SAVEPOINT active_record_1
209068
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
209069
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209070
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209071
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
209072
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
209073
+  (0.0ms) SAVEPOINT active_record_1
209074
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "status") VALUES (?, ?) [["device_token_id", 1], ["status", 200]]
209075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209076
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
209077
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
209078
+  (0.0ms) DELETE FROM "users";
209079
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209080
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
209081
+  (0.0ms) DELETE FROM "notifiable_apps";
209082
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209083
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209084
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
209085
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209086
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209087
+  (0.0ms) DELETE FROM "notifiable_notifications";
209088
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209089
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209090
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209091
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209092
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209093
+  (0.5ms) rollback transaction
209094
+  (0.1ms) begin transaction
209095
+  (0.1ms) SAVEPOINT active_record_1
209096
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209098
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
209099
+  (0.1ms) SAVEPOINT active_record_1
209100
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209102
+  (0.0ms) SAVEPOINT active_record_1
209103
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209104
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209105
+  (0.1ms) SAVEPOINT active_record_1
209106
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
209107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
209108
+  (0.0ms) SAVEPOINT active_record_1
209109
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209111
+  (0.0ms) SAVEPOINT active_record_1
209112
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
209113
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209115
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
209116
+  (0.0ms) SAVEPOINT active_record_1
209117
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
209118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209119
+  (0.0ms) SAVEPOINT active_record_1
209120
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209122
+  (0.0ms) SAVEPOINT active_record_1
209123
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
209124
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 2]]
209125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209126
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
209127
+  (0.0ms) SAVEPOINT active_record_1
209128
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
209129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209130
+  (0.0ms) SAVEPOINT active_record_1
209131
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 1], ["status", 200]]
209132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209133
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
209134
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
209135
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
209136
+  (0.0ms) SAVEPOINT active_record_1
209137
+ 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]]
209138
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil]]
209139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209140
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
209141
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
209142
+ 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]]
209143
+ 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]]
209144
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
209145
+ 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]]
209146
+ 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]]
209147
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
209148
+  (0.0ms) DELETE FROM "users";
209149
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209150
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
209151
+  (0.0ms) DELETE FROM "notifiable_apps";
209152
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209153
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209154
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209155
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209156
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209157
+  (0.0ms) DELETE FROM "notifiable_notifications";
209158
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209159
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209160
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209161
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209162
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209163
+  (0.4ms) rollback transaction
209164
+  (0.1ms) begin transaction
209165
+  (0.0ms) SAVEPOINT active_record_1
209166
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209168
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
209169
+  (0.0ms) SAVEPOINT active_record_1
209170
+ SQL (25.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
209172
+  (0.0ms) SAVEPOINT active_record_1
209173
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209175
+  (0.0ms) SAVEPOINT active_record_1
209176
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
209177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209178
+  (0.0ms) SAVEPOINT active_record_1
209179
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209181
+  (0.0ms) SAVEPOINT active_record_1
209182
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
209183
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209185
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
209186
+  (0.0ms) SAVEPOINT active_record_1
209187
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209188
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209189
+  (0.0ms) SAVEPOINT active_record_1
209190
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209192
+  (0.0ms) SAVEPOINT active_record_1
209193
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
209194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209195
+  (0.0ms) SAVEPOINT active_record_1
209196
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209197
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209198
+  (0.0ms) SAVEPOINT active_record_1
209199
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
209200
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 2]]
209201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209202
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
209203
+  (0.0ms) SAVEPOINT active_record_1
209204
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
209205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209206
+  (0.0ms) SAVEPOINT active_record_1
209207
+ SQL (0.0ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 2], ["status", 200]]
209208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209209
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
209210
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
209211
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
209212
+  (0.0ms) SAVEPOINT active_record_1
209213
+ 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]]
209214
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil]]
209215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209216
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 2]]
209217
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 2]]
209218
+  (0.0ms) SAVEPOINT active_record_1
209219
+ 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]]
209220
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil]]
209221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209222
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
209223
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
209224
+ 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]]
209225
+ 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]]
209226
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
209227
+ 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]]
209228
+ 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]]
209229
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
209230
+  (0.0ms) DELETE FROM "users";
209231
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209232
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209233
+  (0.0ms) DELETE FROM "notifiable_apps";
209234
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209235
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209236
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209237
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209238
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209239
+  (0.0ms) DELETE FROM "notifiable_notifications";
209240
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209241
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209242
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209243
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209244
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209245
+  (0.4ms) rollback transaction
209246
+  (0.1ms) begin transaction
209247
+  (0.0ms) SAVEPOINT active_record_1
209248
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209249
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209250
+  (0.0ms) SAVEPOINT active_record_1
209251
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
209252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209253
+  (0.0ms) SAVEPOINT active_record_1
209254
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209256
+  (0.0ms) SAVEPOINT active_record_1
209257
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
209258
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :sms], ["token", "ABCD6"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209260
+  (0.0ms) SAVEPOINT active_record_1
209261
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209263
+  (0.0ms) SAVEPOINT active_record_1
209264
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209266
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
209267
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
209268
+  (0.0ms) DELETE FROM "users";
209269
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209270
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209271
+  (0.0ms) DELETE FROM "notifiable_apps";
209272
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209273
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209274
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209275
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209276
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209277
+  (0.0ms) DELETE FROM "notifiable_notifications";
209278
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209279
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209280
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
209281
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209282
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209283
+  (0.3ms) rollback transaction
209284
+  (0.0ms) begin transaction
209285
+  (0.0ms) SAVEPOINT active_record_1
209286
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
209287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209288
+  (0.0ms) SAVEPOINT active_record_1
209289
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209291
+  (0.0ms) SAVEPOINT active_record_1
209292
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
209293
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209295
+ 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
209296
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
209297
+ Parameters: {"token"=>"ABCD7", "device_token"=>{"token"=>"ABCD7"}}
209298
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
209299
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
209300
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
209301
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
209302
+  (0.1ms) DELETE FROM "users";
209303
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209304
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209305
+  (0.1ms) DELETE FROM "notifiable_apps";
209306
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209307
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209308
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209309
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209310
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209311
+  (0.1ms) DELETE FROM "notifiable_notifications";
209312
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209313
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209314
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
209315
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209316
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209317
+  (0.3ms) rollback transaction
209318
+  (0.0ms) begin transaction
209319
+  (0.0ms) SAVEPOINT active_record_1
209320
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209322
+ Processing by Notifiable::DeviceTokensController#create as JSON
209323
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
209324
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
209325
+ Unpermitted parameters: device_token
209326
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
209327
+  (0.0ms) SAVEPOINT active_record_1
209328
+ 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]]
209329
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
209330
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209332
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
209333
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
209334
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
209335
+ 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]]
209336
+  (0.0ms) SELECT COUNT(*) FROM "users"
209337
+  (0.1ms) DELETE FROM "users";
209338
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209339
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209340
+  (0.1ms) DELETE FROM "notifiable_apps";
209341
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209342
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209343
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209344
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209345
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209346
+  (0.1ms) DELETE FROM "notifiable_notifications";
209347
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209348
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209349
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
209350
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209351
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209352
+  (0.4ms) rollback transaction
209353
+  (0.1ms) begin transaction
209354
+  (0.0ms) SAVEPOINT active_record_1
209355
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
209356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209357
+  (0.0ms) SAVEPOINT active_record_1
209358
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209360
+  (0.0ms) SAVEPOINT active_record_1
209361
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
209362
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209364
+ 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
209365
+  (0.0ms) SAVEPOINT active_record_1
209366
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
209367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209368
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
209369
+ Parameters: {"token"=>"ABCD8", "user_email"=>"person-10@example.com", "device_token"=>{"token"=>"ABCD8"}}
209370
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
209371
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
209372
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
209373
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
209374
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
209375
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'
209376
+  (0.1ms) DELETE FROM "users";
209377
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209378
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209379
+  (0.0ms) DELETE FROM "notifiable_apps";
209380
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209381
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209382
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209383
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209384
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209385
+  (0.1ms) DELETE FROM "notifiable_notifications";
209386
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209387
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209388
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209389
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209390
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209391
+  (0.4ms) rollback transaction
209392
+  (0.0ms) begin transaction
209393
+  (0.0ms) SAVEPOINT active_record_1
209394
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
209395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209396
+ Processing by Notifiable::DeviceTokensController#create as JSON
209397
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-11@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
209398
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
209399
+ Unpermitted parameters: user_email, device_token
209400
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
209401
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
209402
+  (0.0ms) SAVEPOINT active_record_1
209403
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
209404
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
209405
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
209406
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
209407
+  (0.2ms) DELETE FROM "users";
209408
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209409
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
209410
+  (0.1ms) DELETE FROM "notifiable_apps";
209411
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209412
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209413
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
209414
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209415
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209416
+  (0.0ms) DELETE FROM "notifiable_notifications";
209417
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209418
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209419
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209420
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209421
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209422
+  (0.3ms) rollback transaction
209423
+  (0.0ms) begin transaction
209424
+  (0.0ms) SAVEPOINT active_record_1
209425
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
209426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209427
+  (0.0ms) SAVEPOINT active_record_1
209428
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209430
+  (0.0ms) SAVEPOINT active_record_1
209431
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
209432
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209434
+ 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
209435
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
209436
+ Parameters: {"token"=>"ABCD9", "user_email"=>"person-12@example.com", "device_token"=>{"token"=>"ABCD9"}}
209437
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
209438
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
209439
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
209440
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
209441
+  (0.0ms) SAVEPOINT active_record_1
209442
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
209443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209444
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
209445
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'
209446
+  (0.1ms) DELETE FROM "users";
209447
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209448
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209449
+  (0.0ms) DELETE FROM "notifiable_apps";
209450
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209451
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209452
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209453
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209454
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209455
+  (0.1ms) DELETE FROM "notifiable_notifications";
209456
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209457
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209458
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209459
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209460
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209461
+  (0.4ms) rollback transaction
209462
+  (0.0ms) begin transaction
209463
+  (0.0ms) SAVEPOINT active_record_1
209464
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
209465
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209466
+  (0.0ms) SAVEPOINT active_record_1
209467
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209469
+ Processing by Notifiable::DeviceTokensController#create as JSON
209470
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-13@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
209471
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
209472
+ Unpermitted parameters: user_email, device_token
209473
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
209474
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
209475
+  (0.0ms) SAVEPOINT active_record_1
209476
+ 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]]
209477
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
209478
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209480
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
209481
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
209482
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
209483
+ 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
209484
+ 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]]
209485
+  (0.1ms) DELETE FROM "users";
209486
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209487
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209488
+  (0.0ms) DELETE FROM "notifiable_apps";
209489
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209490
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209491
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209492
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209493
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209494
+  (0.1ms) DELETE FROM "notifiable_notifications";
209495
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209496
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209497
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
209498
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209499
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209500
+  (0.4ms) rollback transaction
209501
+  (0.1ms) begin transaction
209502
+  (0.1ms) SAVEPOINT active_record_1
209503
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
209505
+  (0.0ms) SAVEPOINT active_record_1
209506
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
209507
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD10"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209509
+  (0.0ms) SAVEPOINT active_record_1
209510
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
209511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209512
+ Processing by Notifiable::DeviceTokensController#create as JSON
209513
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-14@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
209514
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
209515
+ Unpermitted parameters: user_email, device_token
209516
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
209517
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
209518
+  (0.0ms) SAVEPOINT active_record_1
209519
+ 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]]
209520
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
209521
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209523
+ Completed 200 OK in 5ms (ActiveRecord: 0.7ms)
209524
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
209525
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
209526
+ 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
209527
+ 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]]
209528
+  (0.0ms) SAVEPOINT active_record_1
209529
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209530
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209531
+  (0.0ms) DELETE FROM "users";
209532
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209533
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209534
+  (0.0ms) DELETE FROM "notifiable_apps";
209535
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209536
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209537
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209538
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209539
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209540
+  (0.1ms) DELETE FROM "notifiable_notifications";
209541
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209542
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209543
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
209544
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209545
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209546
+  (0.4ms) rollback transaction
209547
+  (0.1ms) begin transaction
209548
+  (0.0ms) SAVEPOINT active_record_1
209549
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
209550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209551
+  (0.0ms) SAVEPOINT active_record_1
209552
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209554
+ Processing by Notifiable::DeviceTokensController#create as JSON
209555
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-15@example.com", "provider"=>"mpns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456", "app_id"=>"1"}}
209556
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
209557
+ Unpermitted parameters: user_email, device_token
209558
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
209559
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
209560
+  (0.0ms) SAVEPOINT active_record_1
209561
+ 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]]
209562
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
209563
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209564
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209565
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
209566
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
209567
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
209568
+ 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
209569
+ 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]]
209570
+  (0.1ms) DELETE FROM "users";
209571
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209572
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209573
+  (0.0ms) DELETE FROM "notifiable_apps";
209574
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209575
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209576
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209577
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209578
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209579
+  (0.1ms) DELETE FROM "notifiable_notifications";
209580
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209581
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209582
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209583
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209584
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209585
+  (0.4ms) rollback transaction
209586
+  (0.1ms) begin transaction
209587
+  (0.1ms) SAVEPOINT active_record_1
209588
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
209589
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209590
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
209591
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-16@example.com", "device_token"=>{"token"=>"ZXY987"}}
209592
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
209593
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
209594
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
209595
+  (0.1ms) SAVEPOINT active_record_1
209596
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
209597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209598
+  (0.1ms) SAVEPOINT active_record_1
209599
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209600
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209601
+  (0.0ms) SAVEPOINT active_record_1
209602
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
209603
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 2]]
209604
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209605
+ 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
209606
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11'
209607
+  (0.1ms) DELETE FROM "users";
209608
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209609
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209610
+  (0.0ms) DELETE FROM "notifiable_apps";
209611
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209612
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209613
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209614
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209615
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209616
+  (0.1ms) DELETE FROM "notifiable_notifications";
209617
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209618
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209619
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209620
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209621
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209622
+  (0.4ms) rollback transaction
209623
+  (0.0ms) begin transaction
209624
+  (0.0ms) SAVEPOINT active_record_1
209625
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
209626
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209627
+  (0.1ms) SAVEPOINT active_record_1
209628
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209630
+  (0.0ms) SAVEPOINT active_record_1
209631
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
209632
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209633
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209634
+ 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
209635
+ 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]]
209636
+  (0.0ms) SAVEPOINT active_record_1
209637
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209639
+  (0.0ms) SAVEPOINT active_record_1
209640
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
209641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209642
+  (0.1ms) SAVEPOINT active_record_1
209643
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
209644
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209645
+ Processing by Notifiable::NotificationsController#opened as JSON
209646
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD12"}, "user_email"=>"person-19@example.com", "notification"=>{}}
209647
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
209648
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD12') LIMIT 1
209649
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
209650
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
209651
+ 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]]
209652
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
209653
+ Filter chain halted as :check_authorisation! rendered or redirected
209654
+ Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.4ms)
209655
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
209656
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
209657
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
209658
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
209659
+  (0.1ms) DELETE FROM "users";
209660
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209661
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209662
+  (0.0ms) DELETE FROM "notifiable_apps";
209663
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209664
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209665
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209666
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209667
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209668
+  (0.0ms) DELETE FROM "notifiable_notifications";
209669
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209670
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209671
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
209672
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209673
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209674
+  (0.4ms) rollback transaction
209675
+  (0.1ms) begin transaction
209676
+  (0.1ms) SAVEPOINT active_record_1
209677
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
209678
+  (0.1ms) RELEASE SAVEPOINT active_record_1
209679
+  (0.1ms) SAVEPOINT active_record_1
209680
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209682
+  (0.1ms) SAVEPOINT active_record_1
209683
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
209684
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209686
+ 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
209687
+ 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]]
209688
+  (0.0ms) SAVEPOINT active_record_1
209689
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209691
+  (0.0ms) SAVEPOINT active_record_1
209692
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
209693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209694
+ Processing by Notifiable::NotificationsController#opened as JSON
209695
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD13"}, "user_email"=>"person-20@example.com", "notification"=>{}}
209696
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
209697
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD13') LIMIT 1
209698
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
209699
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
209700
+ 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]]
209701
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
209702
+  (0.0ms) SAVEPOINT active_record_1
209703
+ SQL (0.1ms) UPDATE "notifiable_notification_statuses" SET "status" = ? WHERE "notifiable_notification_statuses"."id" = 1 [["status", -1]]
209704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209705
+ 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]]
209706
+  (0.0ms) SAVEPOINT active_record_1
209707
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil]]
209708
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209709
+ Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
209710
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
209711
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
209712
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
209713
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
209714
+  (0.1ms) DELETE FROM "users";
209715
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209716
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209717
+  (0.0ms) DELETE FROM "notifiable_apps";
209718
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209719
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209720
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209721
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209722
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209723
+  (0.0ms) DELETE FROM "notifiable_notifications";
209724
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209725
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209726
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209727
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209728
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209729
+  (0.4ms) rollback transaction
209730
+  (0.1ms) begin transaction
209731
+  (0.0ms) SAVEPOINT active_record_1
209732
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209734
+  (0.0ms) SAVEPOINT active_record_1
209735
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209737
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
209738
+  (0.1ms) DELETE FROM "users";
209739
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209740
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209741
+  (0.0ms) DELETE FROM "notifiable_apps";
209742
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209743
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209744
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
209745
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209746
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209747
+  (0.0ms) DELETE FROM "notifiable_notifications";
209748
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209749
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209750
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209751
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209752
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209753
+  (0.3ms) rollback transaction
209754
+  (0.1ms) begin transaction
209755
+  (0.0ms) SAVEPOINT active_record_1
209756
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
209758
+  (0.0ms) SAVEPOINT active_record_1
209759
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
209761
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
209762
+  (0.1ms) DELETE FROM "users";
209763
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209764
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209765
+  (0.0ms) DELETE FROM "notifiable_apps";
209766
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209767
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209768
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
209769
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209770
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209771
+  (0.0ms) DELETE FROM "notifiable_notifications";
209772
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209773
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209774
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209775
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209776
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209777
+  (0.3ms) rollback transaction
209778
+  (0.1ms) begin transaction
209779
+  (0.0ms) SAVEPOINT active_record_1
209780
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209782
+  (0.0ms) SAVEPOINT active_record_1
209783
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209785
+  (0.0ms) SAVEPOINT active_record_1
209786
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?) [["notification_id", 1]]
209787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209788
+  (0.0ms) SAVEPOINT active_record_1
209789
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
209790
+ SQL (0.1ms) DELETE FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."id" = ? [["id", 1]]
209791
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
209792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209793
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
209794
+  (0.1ms) DELETE FROM "users";
209795
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209796
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209797
+  (0.0ms) DELETE FROM "notifiable_apps";
209798
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209799
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209800
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
209801
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209802
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209803
+  (0.0ms) DELETE FROM "notifiable_notifications";
209804
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209805
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209806
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209807
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209808
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209809
+  (0.3ms) rollback transaction
209810
+  (0.0ms) begin transaction
209811
+  (0.0ms) SAVEPOINT active_record_1
209812
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
209813
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209814
+  (0.0ms) SAVEPOINT active_record_1
209815
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209816
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209817
+  (0.0ms) SAVEPOINT active_record_1
209818
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
209819
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD14"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209820
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209821
+  (0.0ms) SAVEPOINT active_record_1
209822
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209823
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209824
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
209825
+  (0.0ms) SAVEPOINT active_record_1
209826
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
209827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209828
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
209829
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
209830
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
209831
+  (0.0ms) SAVEPOINT active_record_1
209832
+ 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]]
209833
+ 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", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil]]
209834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
209835
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
209836
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
209837
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
209838
+  (0.0ms) DELETE FROM "users";
209839
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209840
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209841
+  (0.0ms) DELETE FROM "notifiable_apps";
209842
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209843
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209844
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209845
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209846
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209847
+  (0.0ms) DELETE FROM "notifiable_notifications";
209848
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209849
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209850
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209851
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209852
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209853
+  (0.4ms) rollback transaction
209854
+  (0.1ms) begin transaction
209855
+  (0.0ms) SAVEPOINT active_record_1
209856
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
209857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209858
+  (0.0ms) SAVEPOINT active_record_1
209859
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209861
+  (0.1ms) SAVEPOINT active_record_1
209862
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
209863
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD15"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209865
+  (0.0ms) SAVEPOINT active_record_1
209866
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209868
+  (0.0ms) SAVEPOINT active_record_1
209869
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
209870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209871
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
209872
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
209873
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
209874
+  (0.0ms) SAVEPOINT active_record_1
209875
+ 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]]
209876
+ 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", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil]]
209877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
209878
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
209879
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
209880
+  (0.0ms) DELETE FROM "users";
209881
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209882
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209883
+  (0.0ms) DELETE FROM "notifiable_apps";
209884
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209885
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209886
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209887
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209888
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209889
+  (0.0ms) DELETE FROM "notifiable_notifications";
209890
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209891
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209892
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209893
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209894
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209895
+  (0.4ms) rollback transaction
209896
+  (0.1ms) begin transaction
209897
+  (0.0ms) SAVEPOINT active_record_1
209898
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
209899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209900
+  (0.0ms) SAVEPOINT active_record_1
209901
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209903
+  (0.0ms) SAVEPOINT active_record_1
209904
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
209905
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD16"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
209906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209907
+  (0.0ms) SAVEPOINT active_record_1
209908
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
209909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209910
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
209911
+  (0.0ms) DELETE FROM "users";
209912
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209913
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
209914
+  (0.0ms) DELETE FROM "notifiable_apps";
209915
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209916
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
209917
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
209918
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209919
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
209920
+  (0.0ms) DELETE FROM "notifiable_notifications";
209921
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209922
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
209923
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
209924
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
209925
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
209926
+  (0.4ms) rollback transaction