notifiable-rails 0.19.5 → 0.19.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bbe8d5f164223c0110d52415191bcc0a0f878af
4
- data.tar.gz: 53c4aded10782f4207c25e782491183027f181fa
3
+ metadata.gz: d072ac1f38c12a4e341d3253ef90a2fafdfcdf0c
4
+ data.tar.gz: 15715d4d3cbfbb4e39f225319583ba6e0c306999
5
5
  SHA512:
6
- metadata.gz: bf4b0d8ca8be6609e34083da33dac203699e6bc14cad7110709f5070fd7ca065b563d6fda2afcb10354e0f6c773d756832bb7ce23ddeb4b2d36f499a38bf15b5
7
- data.tar.gz: da7099f3ecf9ab549c4ae73af0f65c58b947ae407f7a9d02d0585c12b0718d8e7ff9c7ddbdf08bc948581832f8e1f23ab6481872724c786f0474295142db3d1f
6
+ metadata.gz: addc8305ccb36cd70a993d517cdb51728c5d67819ae31c66206a9c34eecec6e4125acc934c087020141ef060ed71da0f7e5ea1f7d50a72f9e5724802bc3990f9
7
+ data.tar.gz: 12d9eb42a3173ed911f98d5f72f93ad5129b0220e195ebaf3eafa9b01bb021a57f4c0d02b56981397fa4f4b3403f181805c8a7ee9df9f1b663c7136d21dbd4fe
@@ -5,16 +5,10 @@ class ActiveRecord::Base
5
5
 
6
6
  adapter_type = connection.adapter_name.downcase.to_sym
7
7
  case adapter_type
8
- when :mysql
9
- raise NotImplementedError, "Not implemented type '#{adapter_type}'"
10
- when :sqlite
11
- self.create(record_list)
12
8
  when :postgresql
13
9
  self.connection.execute(postgresql_bulk_insert_sql(record_list))
14
- when :oracleenhanced
15
- self.connection.execute(oracle_bulk_insert_sql(record_list))
16
10
  else
17
- raise NotImplementedError, "Unknown adapter type '#{adapter_type}' for ActiveRecord::Base.bulk_insert!"
11
+ self.default_bulk_insert(record_list)
18
12
  end
19
13
  end
20
14
 
@@ -36,15 +30,10 @@ class ActiveRecord::Base
36
30
  "INSERT INTO #{self.table_name} (#{key_list.join(", ")}) VALUES #{value_list.map {|rec| "(#{rec.join(", ")})" }.join(" ,")}"
37
31
  end
38
32
 
39
- def self.oracle_bulk_insert_sql(record_list)
40
- key_list, value_list = convert_record_list(record_list)
41
-
42
- inserts = []
43
- value_list.each do |rec|
44
- inserts << "INTO #{self.table_name} (#{key_list.join(", ")}) VALUES (#{rec.join(", ")})"
45
- end
46
-
47
- "INSERT ALL #{inserts.join(' ')} SELECT 1 FROM DUAL;"
33
+ def self.default_bulk_insert(record_list)
34
+ ActiveRecord::Base.transaction do
35
+ record_list.each{|record| Notifiable::NotificationStatus.create(record) }
36
+ end
48
37
  end
49
38
 
50
39
  end
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.19.5"
2
+ VERSION = "0.19.6"
3
3
  end
@@ -298334,3 +298334,2290 @@ Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
298334
298334
   (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298335
298335
   (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298336
298336
   (0.6ms) rollback transaction
298337
+  (0.3ms) begin transaction
298338
+  (0.0ms) SAVEPOINT active_record_1
298339
+ SQL (2.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298341
+  (0.1ms) SAVEPOINT active_record_1
298342
+ SQL (1.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298343
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298344
+  (0.0ms) SAVEPOINT active_record_1
298345
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298347
+  (0.0ms) SAVEPOINT active_record_1
298348
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298350
+  (0.0ms) SAVEPOINT active_record_1
298351
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298353
+  (0.1ms) SAVEPOINT active_record_1
298354
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298355
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298356
+  (0.1ms) SAVEPOINT active_record_1
298357
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298359
+  (0.1ms) SAVEPOINT active_record_1
298360
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298362
+  (0.1ms) DELETE FROM "users";
298363
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298364
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
298365
+  (0.0ms) DELETE FROM "notifiable_apps";
298366
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298367
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298368
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
298369
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298370
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298371
+  (0.1ms) DELETE FROM "notifiable_notifications";
298372
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298373
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298374
+  (0.1ms) DELETE FROM "notifiable_statuses";
298375
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298376
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298377
+  (6.6ms) rollback transaction
298378
+  (0.1ms) begin transaction
298379
+  (0.1ms) SAVEPOINT active_record_1
298380
+ 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, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298382
+  (0.1ms) SAVEPOINT active_record_1
298383
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298385
+  (0.1ms) DELETE FROM "users";
298386
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298387
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
298388
+  (0.0ms) DELETE FROM "notifiable_apps";
298389
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298390
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298391
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
298392
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298393
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298394
+  (0.0ms) DELETE FROM "notifiable_notifications";
298395
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298396
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298397
+  (0.1ms) DELETE FROM "notifiable_statuses";
298398
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298399
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298400
+  (0.6ms) rollback transaction
298401
+  (0.0ms) begin transaction
298402
+  (0.0ms) SAVEPOINT active_record_1
298403
+ 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, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298405
+  (0.1ms) SAVEPOINT active_record_1
298406
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298408
+  (0.1ms) DELETE FROM "users";
298409
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298410
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
298411
+  (0.0ms) DELETE FROM "notifiable_apps";
298412
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298413
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298414
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
298415
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298416
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298417
+  (0.0ms) DELETE FROM "notifiable_notifications";
298418
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298419
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298420
+  (0.0ms) DELETE FROM "notifiable_statuses";
298421
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298422
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298423
+  (0.6ms) rollback transaction
298424
+  (0.0ms) begin transaction
298425
+  (0.0ms) SAVEPOINT active_record_1
298426
+ 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, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298428
+  (0.1ms) SAVEPOINT active_record_1
298429
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298431
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
298432
+  (0.1ms) DELETE FROM "users";
298433
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298434
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
298435
+  (0.0ms) DELETE FROM "notifiable_apps";
298436
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298437
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298438
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
298439
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298440
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298441
+  (0.0ms) DELETE FROM "notifiable_notifications";
298442
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298443
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298444
+  (0.0ms) DELETE FROM "notifiable_statuses";
298445
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298446
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298447
+  (0.7ms) rollback transaction
298448
+  (0.0ms) begin transaction
298449
+  (0.0ms) SAVEPOINT active_record_1
298450
+ 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, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298452
+  (0.0ms) SAVEPOINT active_record_1
298453
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298455
+  (0.1ms) DELETE FROM "users";
298456
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298457
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
298458
+  (0.0ms) DELETE FROM "notifiable_apps";
298459
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298460
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298461
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
298462
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298463
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298464
+  (0.0ms) DELETE FROM "notifiable_notifications";
298465
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298466
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298467
+  (0.0ms) DELETE FROM "notifiable_statuses";
298468
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298469
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298470
+  (0.6ms) rollback transaction
298471
+  (0.1ms) begin transaction
298472
+  (0.0ms) SAVEPOINT active_record_1
298473
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
298474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298475
+  (0.0ms) SAVEPOINT active_record_1
298476
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298478
+  (0.1ms) SAVEPOINT active_record_1
298479
+ 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, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 1]]
298480
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298481
+  (0.0ms) SAVEPOINT active_record_1
298482
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298484
+  (0.1ms) SAVEPOINT active_record_1
298485
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298486
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298487
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
298488
+  (0.1ms) SAVEPOINT active_record_1
298489
+ SQL (0.3ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
298490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298491
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
298492
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
298493
+  (0.1ms) SAVEPOINT active_record_1
298494
+ SQL (0.4ms) 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, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil]]
298495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298496
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
298497
+  (0.1ms) DELETE FROM "users";
298498
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298499
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
298500
+  (0.1ms) DELETE FROM "notifiable_apps";
298501
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298502
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298503
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
298504
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298505
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298506
+  (0.1ms) DELETE FROM "notifiable_notifications";
298507
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298508
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298509
+  (0.1ms) DELETE FROM "notifiable_statuses";
298510
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298511
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298512
+  (0.7ms) rollback transaction
298513
+  (0.1ms) begin transaction
298514
+  (0.1ms) SAVEPOINT active_record_1
298515
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
298516
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298517
+  (0.1ms) SAVEPOINT active_record_1
298518
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298520
+  (0.0ms) SAVEPOINT active_record_1
298521
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "is_valid", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["is_valid", false], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 1]]
298522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298523
+  (0.1ms) SAVEPOINT active_record_1
298524
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298526
+  (0.0ms) SAVEPOINT active_record_1
298527
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298528
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298529
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
298530
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
298531
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
298532
+  (0.0ms) SAVEPOINT active_record_1
298533
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil]]
298534
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298535
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
298536
+  (0.0ms) DELETE FROM "users";
298537
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298538
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
298539
+  (0.0ms) DELETE FROM "notifiable_apps";
298540
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298541
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298542
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
298543
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298544
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298545
+  (0.0ms) DELETE FROM "notifiable_notifications";
298546
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298547
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298548
+  (0.1ms) DELETE FROM "notifiable_statuses";
298549
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298550
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298551
+  (0.7ms) rollback transaction
298552
+  (0.1ms) begin transaction
298553
+  (0.1ms) SAVEPOINT active_record_1
298554
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
298555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298556
+  (0.0ms) SAVEPOINT active_record_1
298557
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298559
+  (0.0ms) SAVEPOINT active_record_1
298560
+ 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, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 1]]
298561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298562
+ 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
298563
+  (0.0ms) SAVEPOINT active_record_1
298564
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
298565
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298566
+ Processing by Notifiable::DeviceTokensController#update as JSON
298567
+ Parameters: {"id"=>"1", "user_email"=>"person-4@example.com", "token"=>"ZXY987", "device_token"=>{"id"=>"1", "token"=>"ZXY987"}}
298568
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
298569
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
298570
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
298571
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
298572
+ Filter chain halted as :ensure_authorized! rendered or redirected
298573
+ Completed 401 Unauthorized in 4ms (ActiveRecord: 0.5ms)
298574
+  (0.1ms) DELETE FROM "users";
298575
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298576
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
298577
+  (0.0ms) DELETE FROM "notifiable_apps";
298578
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298579
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298580
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
298581
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298582
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298583
+  (0.1ms) DELETE FROM "notifiable_notifications";
298584
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298585
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298586
+  (0.1ms) DELETE FROM "notifiable_statuses";
298587
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298588
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298589
+  (0.8ms) rollback transaction
298590
+  (0.1ms) begin transaction
298591
+  (0.1ms) SAVEPOINT active_record_1
298592
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
298593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298594
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
298595
+ Parameters: {"id"=>"59", "user_email"=>"person-5@example.com", "device_token"=>{"id"=>"59"}}
298596
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
298597
+ Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
298598
+  (0.0ms) SAVEPOINT active_record_1
298599
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
298600
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298601
+  (0.1ms) SAVEPOINT active_record_1
298602
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298604
+  (0.0ms) SAVEPOINT active_record_1
298605
+ 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, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 2]]
298606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298607
+ 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
298608
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'
298609
+  (0.1ms) DELETE FROM "users";
298610
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298611
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
298612
+  (0.0ms) DELETE FROM "notifiable_apps";
298613
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298614
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298615
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
298616
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298617
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298618
+  (0.1ms) DELETE FROM "notifiable_notifications";
298619
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298620
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298621
+  (0.1ms) DELETE FROM "notifiable_statuses";
298622
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298623
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298624
+  (0.7ms) rollback transaction
298625
+  (0.1ms) begin transaction
298626
+  (0.0ms) SAVEPOINT active_record_1
298627
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
298628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298629
+  (0.1ms) SAVEPOINT active_record_1
298630
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298631
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298632
+  (0.0ms) SAVEPOINT active_record_1
298633
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 1]]
298634
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298635
+ 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
298636
+  (0.0ms) SAVEPOINT active_record_1
298637
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
298638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298639
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
298640
+ Parameters: {"id"=>"1", "user_email"=>"person-8@example.com", "device_token"=>{"id"=>"1"}}
298641
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
298642
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
298643
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
298644
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
298645
+ Filter chain halted as :ensure_authorized! rendered or redirected
298646
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
298647
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
298648
+  (0.1ms) DELETE FROM "users";
298649
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298650
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
298651
+  (0.1ms) DELETE FROM "notifiable_apps";
298652
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298653
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298654
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
298655
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298656
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298657
+  (0.1ms) DELETE FROM "notifiable_notifications";
298658
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298659
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298660
+  (0.1ms) DELETE FROM "notifiable_statuses";
298661
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298662
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298663
+  (0.7ms) rollback transaction
298664
+  (0.0ms) begin transaction
298665
+  (0.0ms) SAVEPOINT active_record_1
298666
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
298667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298668
+  (0.0ms) SAVEPOINT active_record_1
298669
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298670
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298671
+  (0.0ms) SAVEPOINT active_record_1
298672
+ 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, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 1]]
298673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298674
+ 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
298675
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
298676
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
298677
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
298678
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
298679
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
298680
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
298681
+ Filter chain halted as :ensure_authorized! rendered or redirected
298682
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
298683
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'
298684
+  (0.1ms) DELETE FROM "users";
298685
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298686
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
298687
+  (0.0ms) DELETE FROM "notifiable_apps";
298688
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298689
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298690
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
298691
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298692
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298693
+  (0.1ms) DELETE FROM "notifiable_notifications";
298694
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298695
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298696
+  (0.1ms) DELETE FROM "notifiable_statuses";
298697
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298698
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298699
+  (0.7ms) rollback transaction
298700
+  (0.1ms) begin transaction
298701
+  (0.0ms) SAVEPOINT active_record_1
298702
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298704
+ Processing by Notifiable::DeviceTokensController#create as JSON
298705
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
298706
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
298707
+ Unpermitted parameters: device_token
298708
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
298709
+  (0.1ms) SAVEPOINT active_record_1
298710
+ Notifiable::App Load (0.2ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
298711
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298713
+ Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)
298714
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
298715
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
298716
+ 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]]
298717
+  (0.1ms) SELECT COUNT(*) FROM "users"
298718
+  (0.1ms) DELETE FROM "users";
298719
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298720
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
298721
+  (0.0ms) DELETE FROM "notifiable_apps";
298722
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298723
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298724
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
298725
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298726
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298727
+  (0.1ms) DELETE FROM "notifiable_notifications";
298728
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298729
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298730
+  (0.1ms) DELETE FROM "notifiable_statuses";
298731
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298732
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298733
+  (0.6ms) rollback transaction
298734
+  (0.1ms) begin transaction
298735
+  (0.1ms) SAVEPOINT active_record_1
298736
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
298737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298738
+  (0.1ms) SAVEPOINT active_record_1
298739
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
298740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298741
+  (0.0ms) SAVEPOINT active_record_1
298742
+ 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, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 1]]
298743
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298744
+ 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
298745
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
298746
+ Parameters: {"id"=>"1", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"1"}}
298747
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
298748
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
298749
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
298750
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
298751
+  (0.1ms) SAVEPOINT active_record_1
298752
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
298753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298754
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
298755
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
298756
+  (0.1ms) DELETE FROM "users";
298757
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298758
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
298759
+  (0.0ms) DELETE FROM "notifiable_apps";
298760
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298761
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298762
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
298763
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298764
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298765
+  (0.1ms) DELETE FROM "notifiable_notifications";
298766
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298767
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298768
+  (0.1ms) DELETE FROM "notifiable_statuses";
298769
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298770
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298771
+  (0.7ms) rollback transaction
298772
+  (0.1ms) begin transaction
298773
+  (0.0ms) SAVEPOINT active_record_1
298774
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
298775
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298776
+  (0.1ms) SAVEPOINT active_record_1
298777
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
298778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298779
+  (0.0ms) SAVEPOINT active_record_1
298780
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
298781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298782
+ 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
298783
+ Processing by Notifiable::DeviceTokensController#update as JSON
298784
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-11@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
298785
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
298786
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
298787
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
298788
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
298789
+ Unpermitted parameters: user_email, device_token
298790
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
298791
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
298792
+  (0.1ms) SAVEPOINT active_record_1
298793
+ 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]]
298794
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
298795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298796
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
298797
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
298798
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
298799
+  (0.1ms) DELETE FROM "users";
298800
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298801
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
298802
+  (0.0ms) DELETE FROM "notifiable_apps";
298803
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298804
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298805
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
298806
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298807
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298808
+  (0.0ms) DELETE FROM "notifiable_notifications";
298809
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298810
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298811
+  (0.0ms) DELETE FROM "notifiable_statuses";
298812
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298813
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298814
+  (0.7ms) rollback transaction
298815
+  (0.1ms) begin transaction
298816
+  (0.0ms) SAVEPOINT active_record_1
298817
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
298818
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298819
+  (0.0ms) SAVEPOINT active_record_1
298820
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
298821
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298822
+ Processing by Notifiable::DeviceTokensController#create as JSON
298823
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-12@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
298824
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
298825
+ Unpermitted parameters: user_email, device_token
298826
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
298827
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
298828
+  (0.0ms) SAVEPOINT active_record_1
298829
+ 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]]
298830
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
298831
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298832
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
298833
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
298834
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
298835
+ 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
298836
+ 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]]
298837
+  (0.1ms) DELETE FROM "users";
298838
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298839
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
298840
+  (0.0ms) DELETE FROM "notifiable_apps";
298841
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298842
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298843
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
298844
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298845
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298846
+  (0.0ms) DELETE FROM "notifiable_notifications";
298847
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298848
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298849
+  (0.0ms) DELETE FROM "notifiable_statuses";
298850
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298851
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298852
+  (0.6ms) rollback transaction
298853
+  (0.1ms) begin transaction
298854
+  (0.0ms) SAVEPOINT active_record_1
298855
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
298856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298857
+ Processing by Notifiable::DeviceTokensController#create as JSON
298858
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-13@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
298859
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
298860
+ Unpermitted parameters: user_email, device_token
298861
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
298862
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
298863
+  (0.0ms) SAVEPOINT active_record_1
298864
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
298865
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
298866
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
298867
+  (0.3ms) DELETE FROM "users";
298868
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298869
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
298870
+  (0.1ms) DELETE FROM "notifiable_apps";
298871
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298872
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298873
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
298874
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298875
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298876
+  (0.0ms) DELETE FROM "notifiable_notifications";
298877
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298878
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298879
+  (0.0ms) DELETE FROM "notifiable_statuses";
298880
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298881
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298882
+  (0.6ms) rollback transaction
298883
+  (0.0ms) begin transaction
298884
+  (0.0ms) SAVEPOINT active_record_1
298885
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
298886
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298887
+  (0.0ms) SAVEPOINT active_record_1
298888
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
298889
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298890
+  (0.0ms) SAVEPOINT active_record_1
298891
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
298892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298893
+ 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
298894
+ Processing by Notifiable::DeviceTokensController#create as JSON
298895
+ Parameters: {"token"=>"ABCD11", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD11", "provider"=>"mpns"}}
298896
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
298897
+ Unpermitted parameters: device_token
298898
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
298899
+  (0.1ms) SAVEPOINT active_record_1
298900
+ 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]]
298901
+ SQL (0.3ms) UPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["provider", "mpns"], ["user_id", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
298902
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298903
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
298904
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
298905
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
298906
+  (0.1ms) DELETE FROM "users";
298907
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298908
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
298909
+  (0.0ms) DELETE FROM "notifiable_apps";
298910
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298911
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298912
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
298913
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298914
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298915
+  (0.1ms) DELETE FROM "notifiable_notifications";
298916
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298917
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298918
+  (0.1ms) DELETE FROM "notifiable_statuses";
298919
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298920
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298921
+  (0.6ms) rollback transaction
298922
+  (0.1ms) begin transaction
298923
+  (0.1ms) SAVEPOINT active_record_1
298924
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
298925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298926
+  (0.1ms) SAVEPOINT active_record_1
298927
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
298928
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298929
+  (0.0ms) SAVEPOINT active_record_1
298930
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
298931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298932
+ 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
298933
+  (0.0ms) SAVEPOINT active_record_1
298934
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
298935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298936
+ Processing by Notifiable::DeviceTokensController#create as JSON
298937
+ Parameters: {"token"=>"ABCD12", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-15@example.com", "device_token"=>{"token"=>"ABCD12", "provider"=>"mock", "app_id"=>"2"}}
298938
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
298939
+ Unpermitted parameters: user_email, device_token
298940
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
298941
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
298942
+  (0.1ms) SAVEPOINT active_record_1
298943
+ 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]]
298944
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["app_id", 2], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
298945
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298946
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.7ms)
298947
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
298948
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
298949
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
298950
+ 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]]
298951
+  (0.1ms) DELETE FROM "users";
298952
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298953
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
298954
+  (0.1ms) DELETE FROM "notifiable_apps";
298955
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298956
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
298957
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
298958
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298959
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
298960
+  (0.1ms) DELETE FROM "notifiable_notifications";
298961
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298962
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
298963
+  (0.1ms) DELETE FROM "notifiable_statuses";
298964
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298965
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
298966
+  (0.7ms) rollback transaction
298967
+  (0.1ms) begin transaction
298968
+  (0.0ms) SAVEPOINT active_record_1
298969
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
298970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298971
+  (0.0ms) SAVEPOINT active_record_1
298972
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "is_valid", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["is_valid", false], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
298973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298974
+  (0.0ms) SAVEPOINT active_record_1
298975
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
298976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298977
+  (0.0ms) SAVEPOINT active_record_1
298978
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
298979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298980
+ Processing by Notifiable::DeviceTokensController#create as JSON
298981
+ Parameters: {"token"=>"ABCD13", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-16@example.com", "device_token"=>{"token"=>"ABCD13", "provider"=>"mock", "app_id"=>"2"}}
298982
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
298983
+ Unpermitted parameters: user_email, device_token
298984
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
298985
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
298986
+  (0.0ms) SAVEPOINT active_record_1
298987
+ 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]]
298988
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", "mock"], ["token", "ABCD13"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
298989
+  (0.1ms) RELEASE SAVEPOINT active_record_1
298990
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.7ms)
298991
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
298992
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
298993
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" DESC LIMIT 1
298994
+  (0.1ms) DELETE FROM "users";
298995
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298996
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
298997
+  (0.0ms) DELETE FROM "notifiable_apps";
298998
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
298999
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299000
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
299001
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299002
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299003
+  (0.1ms) DELETE FROM "notifiable_notifications";
299004
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299005
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299006
+  (0.1ms) DELETE FROM "notifiable_statuses";
299007
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299008
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299009
+  (0.8ms) rollback transaction
299010
+  (0.1ms) begin transaction
299011
+  (0.1ms) SAVEPOINT active_record_1
299012
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299014
+  (0.0ms) SAVEPOINT active_record_1
299015
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299016
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299017
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
299018
+  (0.1ms) DELETE FROM "users";
299019
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299020
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299021
+  (0.0ms) DELETE FROM "notifiable_apps";
299022
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299023
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299024
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
299025
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299026
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299027
+  (0.0ms) DELETE FROM "notifiable_notifications";
299028
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299029
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299030
+  (0.0ms) DELETE FROM "notifiable_statuses";
299031
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299032
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299033
+  (0.5ms) rollback transaction
299034
+  (0.0ms) begin transaction
299035
+  (0.0ms) SAVEPOINT active_record_1
299036
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299038
+  (0.0ms) SAVEPOINT active_record_1
299039
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299041
+  (0.1ms) SAVEPOINT active_record_1
299042
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
299043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299044
+  (0.0ms) SAVEPOINT active_record_1
299045
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299046
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299047
+  (0.0ms) SAVEPOINT active_record_1
299048
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
299049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299050
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
299051
+  (0.0ms) SAVEPOINT active_record_1
299052
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
299053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299054
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
299055
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
299056
+  (0.0ms) SAVEPOINT active_record_1
299057
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
299058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299059
+  (0.0ms) SAVEPOINT active_record_1
299060
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299061
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299062
+  (0.0ms) SAVEPOINT active_record_1
299063
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299065
+  (0.1ms) SAVEPOINT active_record_1
299066
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
299067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299068
+  (0.1ms) SAVEPOINT active_record_1
299069
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299070
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299071
+  (0.0ms) SAVEPOINT active_record_1
299072
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 2]]
299073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299074
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
299075
+  (0.0ms) SAVEPOINT active_record_1
299076
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 0]]
299077
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299078
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
299079
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
299080
+  (0.1ms) SAVEPOINT active_record_1
299081
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
299082
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299083
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
299084
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
299085
+ 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]]
299086
+ 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]]
299087
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
299088
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 2]]
299089
+ 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]]
299090
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
299091
+  (0.1ms) DELETE FROM "users";
299092
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299093
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299094
+  (0.0ms) DELETE FROM "notifiable_apps";
299095
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299096
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299097
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
299098
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299099
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299100
+  (0.0ms) DELETE FROM "notifiable_notifications";
299101
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299102
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299103
+  (0.1ms) DELETE FROM "notifiable_statuses";
299104
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299105
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299106
+  (0.8ms) rollback transaction
299107
+  (0.1ms) begin transaction
299108
+  (0.0ms) SAVEPOINT active_record_1
299109
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
299110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299111
+  (0.0ms) SAVEPOINT active_record_1
299112
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299113
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299114
+  (0.1ms) SAVEPOINT active_record_1
299115
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :sms], ["token", "ABCD16"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
299116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299117
+  (0.0ms) SAVEPOINT active_record_1
299118
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299120
+  (0.0ms) SAVEPOINT active_record_1
299121
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299122
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299123
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
299124
+  (0.0ms) DELETE FROM "users";
299125
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299126
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299127
+  (0.0ms) DELETE FROM "notifiable_apps";
299128
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299129
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299130
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
299131
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299132
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299133
+  (0.0ms) DELETE FROM "notifiable_notifications";
299134
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299135
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299136
+  (0.0ms) DELETE FROM "notifiable_statuses";
299137
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299138
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299139
+  (0.7ms) rollback transaction
299140
+  (0.1ms) begin transaction
299141
+  (0.0ms) SAVEPOINT active_record_1
299142
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299143
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299144
+  (0.0ms) SAVEPOINT active_record_1
299145
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299147
+  (0.0ms) SAVEPOINT active_record_1
299148
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
299149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299150
+  (0.1ms) SAVEPOINT active_record_1
299151
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299153
+  (0.1ms) SAVEPOINT active_record_1
299154
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
299155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299156
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
299157
+  (0.1ms) SAVEPOINT active_record_1
299158
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
299159
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299160
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
299161
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
299162
+  (0.0ms) SAVEPOINT active_record_1
299163
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
299164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299165
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
299166
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
299167
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
299168
+  (0.0ms) DELETE FROM "users";
299169
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299170
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
299171
+  (0.0ms) DELETE FROM "notifiable_apps";
299172
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299173
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299174
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
299175
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299176
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299177
+  (0.0ms) DELETE FROM "notifiable_notifications";
299178
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299179
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299180
+  (0.0ms) DELETE FROM "notifiable_statuses";
299181
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299182
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299183
+  (0.7ms) rollback transaction
299184
+  (0.1ms) begin transaction
299185
+  (0.0ms) SAVEPOINT active_record_1
299186
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299188
+  (0.0ms) SAVEPOINT active_record_1
299189
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299191
+  (0.0ms) SAVEPOINT active_record_1
299192
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
299193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299194
+  (0.0ms) SAVEPOINT active_record_1
299195
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299197
+  (0.0ms) SAVEPOINT active_record_1
299198
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
299199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299200
+ 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
299201
+  (0.0ms) SAVEPOINT active_record_1
299202
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
299203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299204
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
299205
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
299206
+  (0.1ms) SAVEPOINT active_record_1
299207
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
299208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299209
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
299210
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
299211
+  (0.0ms) DELETE FROM "users";
299212
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299213
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
299214
+  (0.0ms) DELETE FROM "notifiable_apps";
299215
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299216
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299217
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
299218
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299219
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299220
+  (0.0ms) DELETE FROM "notifiable_notifications";
299221
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299222
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299223
+  (0.0ms) DELETE FROM "notifiable_statuses";
299224
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299225
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299226
+  (0.7ms) rollback transaction
299227
+  (0.1ms) begin transaction
299228
+  (0.1ms) SAVEPOINT active_record_1
299229
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299230
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299231
+  (0.0ms) SAVEPOINT active_record_1
299232
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299234
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
299235
+  (0.1ms) DELETE FROM "users";
299236
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299237
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299238
+  (0.0ms) DELETE FROM "notifiable_apps";
299239
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299240
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299241
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
299242
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299243
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299244
+  (0.0ms) DELETE FROM "notifiable_notifications";
299245
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299246
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299247
+  (0.0ms) DELETE FROM "notifiable_statuses";
299248
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299249
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299250
+  (0.5ms) rollback transaction
299251
+  (0.0ms) begin transaction
299252
+  (0.0ms) SAVEPOINT active_record_1
299253
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299254
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299255
+  (0.0ms) SAVEPOINT active_record_1
299256
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299258
+  (0.1ms) SAVEPOINT active_record_1
299259
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["notification_id", 1]]
299260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299261
+  (0.0ms) SAVEPOINT active_record_1
299262
+ Notifiable::NotificationStatus Load (0.2ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
299263
+ SQL (0.1ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
299264
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
299265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299266
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
299267
+  (0.1ms) DELETE FROM "users";
299268
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299269
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
299270
+  (0.0ms) DELETE FROM "notifiable_apps";
299271
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299272
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299273
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
299274
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299275
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299276
+  (0.0ms) DELETE FROM "notifiable_notifications";
299277
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299278
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299279
+  (0.0ms) DELETE FROM "notifiable_statuses";
299280
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299281
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299282
+  (0.7ms) rollback transaction
299283
+  (0.1ms) begin transaction
299284
+  (0.1ms) SAVEPOINT active_record_1
299285
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299286
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299287
+  (0.0ms) SAVEPOINT active_record_1
299288
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299290
+  (0.0ms) SAVEPOINT active_record_1
299291
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
299292
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299293
+  (0.1ms) SAVEPOINT active_record_1
299294
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299295
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299296
+  (0.0ms) SAVEPOINT active_record_1
299297
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD19"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
299298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299299
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
299300
+  (0.1ms) SAVEPOINT active_record_1
299301
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
299302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299303
+  (0.1ms) SAVEPOINT active_record_1
299304
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299305
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299306
+  (0.0ms) SAVEPOINT active_record_1
299307
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD20"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 2]]
299308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299309
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
299310
+  (0.0ms) SAVEPOINT active_record_1
299311
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
299312
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
299313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299314
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
299315
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
299316
+  (0.0ms) SAVEPOINT active_record_1
299317
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["gateway_accepted_count", 2], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
299318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299319
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
299320
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
299321
+ 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]]
299322
+ 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]]
299323
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
299324
+ 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]]
299325
+ 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]]
299326
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
299327
+  (0.1ms) DELETE FROM "users";
299328
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299329
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
299330
+  (0.0ms) DELETE FROM "notifiable_apps";
299331
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299332
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299333
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
299334
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299335
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299336
+  (0.0ms) DELETE FROM "notifiable_notifications";
299337
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299338
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299339
+  (0.1ms) DELETE FROM "notifiable_statuses";
299340
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299341
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299342
+  (0.7ms) rollback transaction
299343
+  (0.1ms) begin transaction
299344
+  (0.1ms) SAVEPOINT active_record_1
299345
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
299346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299347
+  (0.0ms) SAVEPOINT active_record_1
299348
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299350
+  (0.0ms) SAVEPOINT active_record_1
299351
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD21"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
299352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299353
+ 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
299354
+ 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]]
299355
+  (0.0ms) SAVEPOINT active_record_1
299356
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299358
+  (0.0ms) SAVEPOINT active_record_1
299359
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
299360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299361
+ Processing by Notifiable::NotificationsController#opened as JSON
299362
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-24@example.com", "notification"=>{}}
299363
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
299364
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-24@example.com' LIMIT 1
299365
+ 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]]
299366
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
299367
+  (0.1ms) SAVEPOINT active_record_1
299368
+ SQL (0.1ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
299369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299370
+ 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]]
299371
+  (0.0ms) SAVEPOINT active_record_1
299372
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
299373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299374
+ Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
299375
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
299376
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
299377
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
299378
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
299379
+  (0.1ms) DELETE FROM "users";
299380
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299381
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299382
+  (0.0ms) DELETE FROM "notifiable_apps";
299383
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299384
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299385
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
299386
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299387
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299388
+  (0.0ms) DELETE FROM "notifiable_notifications";
299389
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299390
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299391
+  (0.0ms) DELETE FROM "notifiable_statuses";
299392
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299393
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299394
+  (0.7ms) rollback transaction
299395
+  (0.1ms) begin transaction
299396
+  (0.0ms) SAVEPOINT active_record_1
299397
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-25@example.com"]]
299398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299399
+  (0.0ms) SAVEPOINT active_record_1
299400
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299402
+  (0.0ms) SAVEPOINT active_record_1
299403
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD22"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
299404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299405
+ 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
299406
+ 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]]
299407
+  (0.0ms) SAVEPOINT active_record_1
299408
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299410
+  (0.0ms) SAVEPOINT active_record_1
299411
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299413
+  (0.0ms) SAVEPOINT active_record_1
299414
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD23"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299415
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299416
+  (0.0ms) SAVEPOINT active_record_1
299417
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
299418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299419
+ Processing by Notifiable::NotificationsController#opened as JSON
299420
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"2", "notification"=>{}}
299421
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '2') LIMIT 1
299422
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
299423
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
299424
+  (0.0ms) SAVEPOINT active_record_1
299425
+ SQL (0.0ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
299426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299427
+ 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]]
299428
+  (0.0ms) SAVEPOINT active_record_1
299429
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
299430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299431
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
299432
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
299433
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
299434
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
299435
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
299436
+  (0.0ms) DELETE FROM "users";
299437
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299438
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
299439
+  (0.0ms) DELETE FROM "notifiable_apps";
299440
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299441
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299442
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
299443
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299444
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299445
+  (0.0ms) DELETE FROM "notifiable_notifications";
299446
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299447
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299448
+  (0.0ms) DELETE FROM "notifiable_statuses";
299449
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299450
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299451
+  (0.7ms) rollback transaction
299452
+  (0.1ms) begin transaction
299453
+  (0.1ms) SAVEPOINT active_record_1
299454
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-26@example.com"]]
299455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299456
+  (0.1ms) SAVEPOINT active_record_1
299457
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299459
+  (0.0ms) SAVEPOINT active_record_1
299460
+ 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, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD24"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
299461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299462
+ 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
299463
+ 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]]
299464
+  (0.1ms) SAVEPOINT active_record_1
299465
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
299466
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299467
+  (0.1ms) SAVEPOINT active_record_1
299468
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
299469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299470
+  (0.0ms) SAVEPOINT active_record_1
299471
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-27@example.com"]]
299472
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299473
+ Processing by Notifiable::NotificationsController#opened as JSON
299474
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-27@example.com", "notification"=>{}}
299475
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
299476
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-27@example.com' LIMIT 1
299477
+ 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]]
299478
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
299479
+ Filter chain halted as :check_authorisation! rendered or redirected
299480
+ Completed 401 Unauthorized in 3ms (ActiveRecord: 0.3ms)
299481
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
299482
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
299483
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications"
299484
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
299485
+  (0.1ms) DELETE FROM "users";
299486
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299487
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299488
+  (0.0ms) DELETE FROM "notifiable_apps";
299489
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299490
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299491
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
299492
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299493
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299494
+  (0.0ms) DELETE FROM "notifiable_notifications";
299495
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299496
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299497
+  (0.0ms) DELETE FROM "notifiable_statuses";
299498
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299499
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299500
+  (0.7ms) rollback transaction
299501
+  (0.3ms) begin transaction
299502
+  (0.1ms) SAVEPOINT active_record_1
299503
+ SQL (2.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299505
+  (0.0ms) SAVEPOINT active_record_1
299506
+ SQL (1.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299507
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299508
+  (0.1ms) DELETE FROM "users";
299509
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299510
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299511
+  (0.0ms) DELETE FROM "notifiable_apps";
299512
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299513
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299514
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
299515
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299516
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299517
+  (0.0ms) DELETE FROM "notifiable_notifications";
299518
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299519
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299520
+  (0.1ms) DELETE FROM "notifiable_statuses";
299521
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299522
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299523
+  (0.6ms) rollback transaction
299524
+  (0.0ms) begin transaction
299525
+  (0.0ms) SAVEPOINT active_record_1
299526
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299528
+  (0.0ms) SAVEPOINT active_record_1
299529
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299530
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299531
+  (0.1ms) DELETE FROM "users";
299532
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299533
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
299534
+  (0.0ms) DELETE FROM "notifiable_apps";
299535
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299536
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299537
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
299538
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299539
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299540
+  (0.0ms) DELETE FROM "notifiable_notifications";
299541
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299542
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299543
+  (0.0ms) DELETE FROM "notifiable_statuses";
299544
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299545
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299546
+  (0.6ms) rollback transaction
299547
+  (0.0ms) begin transaction
299548
+  (0.1ms) SAVEPOINT active_record_1
299549
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
299550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299551
+  (0.1ms) SAVEPOINT active_record_1
299552
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299554
+  (0.1ms) SAVEPOINT active_record_1
299555
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :sms], ["token", "ABCD1"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
299556
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299557
+  (0.1ms) SAVEPOINT active_record_1
299558
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299559
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299560
+  (0.0ms) SAVEPOINT active_record_1
299561
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299562
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299563
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
299564
+  (0.1ms) DELETE FROM "users";
299565
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299566
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299567
+  (0.0ms) DELETE FROM "notifiable_apps";
299568
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299569
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299570
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
299571
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299572
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299573
+  (0.0ms) DELETE FROM "notifiable_notifications";
299574
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299575
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299576
+  (0.1ms) DELETE FROM "notifiable_statuses";
299577
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299578
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299579
+  (0.5ms) rollback transaction
299580
+  (0.1ms) begin transaction
299581
+  (0.0ms) SAVEPOINT active_record_1
299582
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299583
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299584
+  (0.0ms) SAVEPOINT active_record_1
299585
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299587
+  (0.0ms) SAVEPOINT active_record_1
299588
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
299589
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299590
+  (0.0ms) SAVEPOINT active_record_1
299591
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299593
+  (0.0ms) SAVEPOINT active_record_1
299594
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
299595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299596
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
299597
+  (0.0ms) SAVEPOINT active_record_1
299598
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
299599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299600
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
299601
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
299602
+  (0.0ms) SAVEPOINT active_record_1
299603
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
299604
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299605
+  (0.0ms) SAVEPOINT active_record_1
299606
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299608
+  (0.0ms) SAVEPOINT active_record_1
299609
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299611
+  (0.0ms) SAVEPOINT active_record_1
299612
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
299613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299614
+  (0.1ms) SAVEPOINT active_record_1
299615
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299616
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299617
+  (0.0ms) SAVEPOINT active_record_1
299618
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 2]]
299619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299620
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
299621
+  (0.0ms) SAVEPOINT active_record_1
299622
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 0]]
299623
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299624
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
299625
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
299626
+  (0.0ms) SAVEPOINT active_record_1
299627
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
299628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299629
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
299630
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
299631
+ 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]]
299632
+ 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]]
299633
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
299634
+ 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]]
299635
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
299636
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
299637
+  (0.1ms) DELETE FROM "users";
299638
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299639
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299640
+  (0.1ms) DELETE FROM "notifiable_apps";
299641
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299642
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299643
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
299644
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299645
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299646
+  (0.0ms) DELETE FROM "notifiable_notifications";
299647
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299648
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299649
+  (0.0ms) DELETE FROM "notifiable_statuses";
299650
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299651
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299652
+  (0.8ms) rollback transaction
299653
+  (0.1ms) begin transaction
299654
+  (0.1ms) SAVEPOINT active_record_1
299655
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299657
+  (0.0ms) SAVEPOINT active_record_1
299658
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299659
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299660
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
299661
+  (0.1ms) DELETE FROM "users";
299662
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299663
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299664
+  (0.0ms) DELETE FROM "notifiable_apps";
299665
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299666
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299667
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
299668
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299669
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299670
+  (0.0ms) DELETE FROM "notifiable_notifications";
299671
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299672
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299673
+  (0.1ms) DELETE FROM "notifiable_statuses";
299674
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299675
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299676
+  (0.6ms) rollback transaction
299677
+  (0.1ms) begin transaction
299678
+  (0.1ms) SAVEPOINT active_record_1
299679
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299681
+  (0.0ms) SAVEPOINT active_record_1
299682
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299683
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299684
+  (0.0ms) SAVEPOINT active_record_1
299685
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
299686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299687
+  (0.1ms) SAVEPOINT active_record_1
299688
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299690
+  (0.0ms) SAVEPOINT active_record_1
299691
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
299692
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299693
+ 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
299694
+  (0.0ms) SAVEPOINT active_record_1
299695
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
299696
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299697
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
299698
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
299699
+  (0.0ms) SAVEPOINT active_record_1
299700
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
299701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299702
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
299703
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
299704
+  (0.1ms) DELETE FROM "users";
299705
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299706
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299707
+  (0.0ms) DELETE FROM "notifiable_apps";
299708
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299709
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299710
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
299711
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299712
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299713
+  (0.0ms) DELETE FROM "notifiable_notifications";
299714
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299715
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299716
+  (0.0ms) DELETE FROM "notifiable_statuses";
299717
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299718
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299719
+  (0.6ms) rollback transaction
299720
+  (0.0ms) begin transaction
299721
+  (0.0ms) SAVEPOINT active_record_1
299722
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299723
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299724
+  (0.0ms) SAVEPOINT active_record_1
299725
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299726
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299727
+  (0.0ms) SAVEPOINT active_record_1
299728
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
299729
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299730
+  (0.0ms) SAVEPOINT active_record_1
299731
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299733
+  (0.0ms) SAVEPOINT active_record_1
299734
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
299735
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299736
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
299737
+  (0.1ms) SAVEPOINT active_record_1
299738
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
299739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299740
+  (0.0ms) SAVEPOINT active_record_1
299741
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299743
+  (0.1ms) SAVEPOINT active_record_1
299744
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 2]]
299745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299746
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
299747
+  (0.0ms) SAVEPOINT active_record_1
299748
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
299749
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
299750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299751
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
299752
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
299753
+  (0.0ms) SAVEPOINT active_record_1
299754
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["gateway_accepted_count", 2], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
299755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299756
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
299757
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
299758
+ 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]]
299759
+ 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]]
299760
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
299761
+ 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]]
299762
+ 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]]
299763
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
299764
+  (0.0ms) DELETE FROM "users";
299765
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299766
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299767
+  (0.0ms) DELETE FROM "notifiable_apps";
299768
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299769
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299770
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
299771
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299772
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299773
+  (0.0ms) DELETE FROM "notifiable_notifications";
299774
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299775
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299776
+  (0.0ms) DELETE FROM "notifiable_statuses";
299777
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299778
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299779
+  (0.6ms) rollback transaction
299780
+  (0.1ms) begin transaction
299781
+  (0.1ms) SAVEPOINT active_record_1
299782
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299784
+  (0.0ms) SAVEPOINT active_record_1
299785
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299787
+  (0.0ms) SAVEPOINT active_record_1
299788
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
299789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299790
+  (0.1ms) SAVEPOINT active_record_1
299791
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299793
+  (0.0ms) SAVEPOINT active_record_1
299794
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
299795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299796
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
299797
+  (0.0ms) SAVEPOINT active_record_1
299798
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
299799
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299800
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
299801
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
299802
+  (0.0ms) SAVEPOINT active_record_1
299803
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
299804
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299805
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
299806
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
299807
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
299808
+  (0.1ms) DELETE FROM "users";
299809
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299810
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299811
+  (0.1ms) DELETE FROM "notifiable_apps";
299812
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299813
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299814
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
299815
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299816
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299817
+  (0.0ms) DELETE FROM "notifiable_notifications";
299818
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299819
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299820
+  (0.0ms) DELETE FROM "notifiable_statuses";
299821
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299822
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299823
+  (0.7ms) rollback transaction
299824
+  (0.1ms) begin transaction
299825
+  (0.1ms) SAVEPOINT active_record_1
299826
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299828
+  (0.0ms) SAVEPOINT active_record_1
299829
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299831
+  (0.0ms) SAVEPOINT active_record_1
299832
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["notification_id", 1]]
299833
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299834
+  (0.0ms) SAVEPOINT active_record_1
299835
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
299836
+ SQL (0.1ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
299837
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
299838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299839
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
299840
+  (0.1ms) DELETE FROM "users";
299841
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299842
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
299843
+  (0.0ms) DELETE FROM "notifiable_apps";
299844
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299845
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299846
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
299847
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299848
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299849
+  (0.0ms) DELETE FROM "notifiable_notifications";
299850
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299851
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299852
+  (0.0ms) DELETE FROM "notifiable_statuses";
299853
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299854
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299855
+  (0.5ms) rollback transaction
299856
+  (0.1ms) begin transaction
299857
+  (0.0ms) SAVEPOINT active_record_1
299858
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299860
+  (0.0ms) SAVEPOINT active_record_1
299861
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299862
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299863
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
299864
+  (0.1ms) DELETE FROM "users";
299865
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299866
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
299867
+  (0.0ms) DELETE FROM "notifiable_apps";
299868
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299869
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299870
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
299871
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299872
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299873
+  (0.0ms) DELETE FROM "notifiable_notifications";
299874
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299875
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299876
+  (0.1ms) DELETE FROM "notifiable_statuses";
299877
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299878
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299879
+  (0.7ms) rollback transaction
299880
+  (0.1ms) begin transaction
299881
+  (0.0ms) SAVEPOINT active_record_1
299882
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
299883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299884
+ Processing by Notifiable::DeviceTokensController#create as JSON
299885
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-8@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
299886
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
299887
+ Unpermitted parameters: user_email, device_token
299888
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
299889
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
299890
+  (0.0ms) SAVEPOINT active_record_1
299891
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
299892
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms)
299893
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
299894
+  (0.2ms) DELETE FROM "users";
299895
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299896
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299897
+  (0.1ms) DELETE FROM "notifiable_apps";
299898
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299899
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299900
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
299901
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299902
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299903
+  (0.0ms) DELETE FROM "notifiable_notifications";
299904
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299905
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299906
+  (0.0ms) DELETE FROM "notifiable_statuses";
299907
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299908
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299909
+  (0.7ms) rollback transaction
299910
+  (0.1ms) begin transaction
299911
+  (0.0ms) SAVEPOINT active_record_1
299912
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
299913
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299914
+  (0.0ms) SAVEPOINT active_record_1
299915
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299917
+  (0.0ms) SAVEPOINT active_record_1
299918
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
299919
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299920
+ 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
299921
+  (0.0ms) SAVEPOINT active_record_1
299922
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
299923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299924
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
299925
+ Parameters: {"id"=>"1", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"1"}}
299926
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
299927
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
299928
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
299929
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
299930
+ Filter chain halted as :ensure_authorized! rendered or redirected
299931
+ Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms)
299932
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'
299933
+  (0.1ms) DELETE FROM "users";
299934
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299935
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
299936
+  (0.1ms) DELETE FROM "notifiable_apps";
299937
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299938
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299939
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
299940
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299941
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299942
+  (0.1ms) DELETE FROM "notifiable_notifications";
299943
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299944
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299945
+  (0.1ms) DELETE FROM "notifiable_statuses";
299946
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299947
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299948
+  (0.7ms) rollback transaction
299949
+  (0.1ms) begin transaction
299950
+  (0.0ms) SAVEPOINT active_record_1
299951
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299952
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299953
+ Processing by Notifiable::DeviceTokensController#create as JSON
299954
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
299955
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
299956
+ Unpermitted parameters: device_token
299957
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
299958
+  (0.0ms) SAVEPOINT active_record_1
299959
+ 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]]
299960
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299961
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299962
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
299963
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
299964
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
299965
+ 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]]
299966
+  (0.1ms) SELECT COUNT(*) FROM "users"
299967
+  (0.1ms) DELETE FROM "users";
299968
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299969
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
299970
+  (0.0ms) DELETE FROM "notifiable_apps";
299971
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299972
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
299973
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
299974
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299975
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
299976
+  (0.1ms) DELETE FROM "notifiable_notifications";
299977
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299978
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
299979
+  (0.0ms) DELETE FROM "notifiable_statuses";
299980
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299981
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
299982
+  (0.7ms) rollback transaction
299983
+  (0.0ms) begin transaction
299984
+  (0.0ms) SAVEPOINT active_record_1
299985
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
299986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299987
+  (0.0ms) SAVEPOINT active_record_1
299988
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
299989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299990
+  (0.0ms) SAVEPOINT active_record_1
299991
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
299992
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299993
+ 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
299994
+ Processing by Notifiable::DeviceTokensController#update as JSON
299995
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-11@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
299996
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
299997
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
299998
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
299999
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
300000
+ Unpermitted parameters: user_email, device_token
300001
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
300002
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
300003
+  (0.0ms) SAVEPOINT active_record_1
300004
+ 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]]
300005
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300006
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300007
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
300008
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
300009
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
300010
+  (0.0ms) DELETE FROM "users";
300011
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300012
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
300013
+  (0.0ms) DELETE FROM "notifiable_apps";
300014
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300015
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300016
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
300017
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300018
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300019
+  (0.1ms) DELETE FROM "notifiable_notifications";
300020
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300021
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300022
+  (0.1ms) DELETE FROM "notifiable_statuses";
300023
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300024
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300025
+  (0.5ms) rollback transaction
300026
+  (0.1ms) begin transaction
300027
+  (0.0ms) SAVEPOINT active_record_1
300028
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300030
+  (0.0ms) SAVEPOINT active_record_1
300031
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "is_valid", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["is_valid", false], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300032
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300033
+  (0.1ms) SAVEPOINT active_record_1
300034
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300035
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300036
+  (0.1ms) SAVEPOINT active_record_1
300037
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
300038
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300039
+ Processing by Notifiable::DeviceTokensController#create as JSON
300040
+ Parameters: {"token"=>"ABCD10", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-12@example.com", "device_token"=>{"token"=>"ABCD10", "provider"=>"mock", "app_id"=>"2"}}
300041
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
300042
+ Unpermitted parameters: user_email, device_token
300043
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
300044
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
300045
+  (0.0ms) SAVEPOINT active_record_1
300046
+ 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]]
300047
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", "mock"], ["token", "ABCD10"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
300048
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300049
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
300050
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
300051
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
300052
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" DESC LIMIT 1
300053
+  (0.0ms) DELETE FROM "users";
300054
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300055
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
300056
+  (0.0ms) DELETE FROM "notifiable_apps";
300057
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300058
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300059
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
300060
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300061
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300062
+  (0.0ms) DELETE FROM "notifiable_notifications";
300063
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300064
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300065
+  (0.0ms) DELETE FROM "notifiable_statuses";
300066
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300067
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300068
+  (0.7ms) rollback transaction
300069
+  (0.0ms) begin transaction
300070
+  (0.0ms) SAVEPOINT active_record_1
300071
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
300072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300073
+  (0.0ms) SAVEPOINT active_record_1
300074
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300076
+  (0.0ms) SAVEPOINT active_record_1
300077
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
300078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300079
+ 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
300080
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
300081
+ Parameters: {"id"=>"1", "user_email"=>"person-13@example.com", "device_token"=>{"id"=>"1"}}
300082
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
300083
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
300084
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
300085
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
300086
+  (0.0ms) SAVEPOINT active_record_1
300087
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
300088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300089
+ Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
300090
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
300091
+  (0.0ms) DELETE FROM "users";
300092
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300093
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
300094
+  (0.2ms) DELETE FROM "notifiable_apps";
300095
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300096
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300097
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
300098
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300099
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300100
+  (0.1ms) DELETE FROM "notifiable_notifications";
300101
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300102
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300103
+  (0.1ms) DELETE FROM "notifiable_statuses";
300104
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300105
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300106
+  (0.7ms) rollback transaction
300107
+  (0.0ms) begin transaction
300108
+  (0.0ms) SAVEPOINT active_record_1
300109
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
300110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300111
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
300112
+ Parameters: {"id"=>"59", "user_email"=>"person-14@example.com", "device_token"=>{"id"=>"59"}}
300113
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
300114
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
300115
+  (0.0ms) SAVEPOINT active_record_1
300116
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
300117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300118
+  (0.0ms) SAVEPOINT active_record_1
300119
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300121
+  (0.0ms) SAVEPOINT active_record_1
300122
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 2]]
300123
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300124
+ 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
300125
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12'
300126
+  (0.0ms) DELETE FROM "users";
300127
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300128
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
300129
+  (0.1ms) DELETE FROM "notifiable_apps";
300130
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300131
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300132
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
300133
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300134
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300135
+  (0.1ms) DELETE FROM "notifiable_notifications";
300136
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300137
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300138
+  (0.2ms) DELETE FROM "notifiable_statuses";
300139
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300140
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300141
+  (0.7ms) rollback transaction
300142
+  (0.1ms) begin transaction
300143
+  (0.0ms) SAVEPOINT active_record_1
300144
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
300145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300146
+  (0.0ms) SAVEPOINT active_record_1
300147
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300149
+  (0.0ms) SAVEPOINT active_record_1
300150
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
300151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300152
+ 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
300153
+  (0.0ms) SAVEPOINT active_record_1
300154
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
300155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300156
+ Processing by Notifiable::DeviceTokensController#update as JSON
300157
+ Parameters: {"id"=>"1", "user_email"=>"person-17@example.com", "token"=>"ZXY987", "device_token"=>{"id"=>"1", "token"=>"ZXY987"}}
300158
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
300159
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
300160
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
300161
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
300162
+ Filter chain halted as :ensure_authorized! rendered or redirected
300163
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
300164
+  (0.1ms) DELETE FROM "users";
300165
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300166
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
300167
+  (0.1ms) DELETE FROM "notifiable_apps";
300168
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300169
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300170
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
300171
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300172
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300173
+  (0.1ms) DELETE FROM "notifiable_notifications";
300174
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300175
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300176
+  (0.1ms) DELETE FROM "notifiable_statuses";
300177
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300178
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300179
+  (0.7ms) rollback transaction
300180
+  (0.1ms) begin transaction
300181
+  (0.1ms) SAVEPOINT active_record_1
300182
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
300183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300184
+  (0.1ms) SAVEPOINT active_record_1
300185
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300187
+  (0.0ms) SAVEPOINT active_record_1
300188
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
300189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300190
+ 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
300191
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
300192
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
300193
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
300194
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
300195
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
300196
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
300197
+ Filter chain halted as :ensure_authorized! rendered or redirected
300198
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
300199
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14'
300200
+  (0.1ms) DELETE FROM "users";
300201
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300202
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
300203
+  (0.0ms) DELETE FROM "notifiable_apps";
300204
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300205
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300206
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
300207
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300208
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300209
+  (0.1ms) DELETE FROM "notifiable_notifications";
300210
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300211
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300212
+  (0.1ms) DELETE FROM "notifiable_statuses";
300213
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300214
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300215
+  (0.6ms) rollback transaction
300216
+  (0.0ms) begin transaction
300217
+  (0.0ms) SAVEPOINT active_record_1
300218
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
300219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300220
+  (0.0ms) SAVEPOINT active_record_1
300221
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300222
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300223
+ Processing by Notifiable::DeviceTokensController#create as JSON
300224
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-19@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
300225
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
300226
+ Unpermitted parameters: user_email, device_token
300227
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
300228
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
300229
+  (0.0ms) SAVEPOINT active_record_1
300230
+ 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]]
300231
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
300232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300233
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
300234
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
300235
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
300236
+ 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
300237
+ 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]]
300238
+  (0.1ms) DELETE FROM "users";
300239
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300240
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
300241
+  (0.0ms) DELETE FROM "notifiable_apps";
300242
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300243
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300244
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
300245
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300246
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300247
+  (0.1ms) DELETE FROM "notifiable_notifications";
300248
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300249
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300250
+  (0.1ms) DELETE FROM "notifiable_statuses";
300251
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300252
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300253
+  (0.7ms) rollback transaction
300254
+  (0.0ms) begin transaction
300255
+  (0.0ms) SAVEPOINT active_record_1
300256
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
300257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300258
+  (0.0ms) SAVEPOINT active_record_1
300259
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300261
+  (0.0ms) SAVEPOINT active_record_1
300262
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
300263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300264
+ 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
300265
+ Processing by Notifiable::DeviceTokensController#create as JSON
300266
+ Parameters: {"token"=>"ABCD15", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD15", "provider"=>"mpns"}}
300267
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
300268
+ Unpermitted parameters: device_token
300269
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
300270
+  (0.0ms) SAVEPOINT active_record_1
300271
+ 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]]
300272
+ SQL (0.1ms) UPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["provider", "mpns"], ["user_id", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300273
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300274
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms)
300275
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
300276
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
300277
+  (0.1ms) DELETE FROM "users";
300278
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300279
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
300280
+  (0.1ms) DELETE FROM "notifiable_apps";
300281
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300282
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300283
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
300284
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300285
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300286
+  (0.1ms) DELETE FROM "notifiable_notifications";
300287
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300288
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300289
+  (0.1ms) DELETE FROM "notifiable_statuses";
300290
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300291
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300292
+  (0.7ms) rollback transaction
300293
+  (0.1ms) begin transaction
300294
+  (0.1ms) SAVEPOINT active_record_1
300295
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
300296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300297
+  (0.1ms) SAVEPOINT active_record_1
300298
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300299
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300300
+  (0.0ms) SAVEPOINT active_record_1
300301
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
300302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300303
+ 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
300304
+  (0.0ms) SAVEPOINT active_record_1
300305
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300307
+ Processing by Notifiable::DeviceTokensController#create as JSON
300308
+ Parameters: {"token"=>"ABCD16", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-21@example.com", "device_token"=>{"token"=>"ABCD16", "provider"=>"mock", "app_id"=>"2"}}
300309
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
300310
+ Unpermitted parameters: user_email, device_token
300311
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
300312
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
300313
+  (0.0ms) SAVEPOINT active_record_1
300314
+ 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]]
300315
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["app_id", 2], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300317
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
300318
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
300319
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
300320
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
300321
+ 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]]
300322
+  (0.1ms) DELETE FROM "users";
300323
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300324
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
300325
+  (0.0ms) DELETE FROM "notifiable_apps";
300326
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300327
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300328
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
300329
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300330
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300331
+  (0.1ms) DELETE FROM "notifiable_notifications";
300332
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300333
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300334
+  (0.1ms) DELETE FROM "notifiable_statuses";
300335
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300336
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300337
+  (0.5ms) rollback transaction
300338
+  (0.1ms) begin transaction
300339
+  (0.0ms) SAVEPOINT active_record_1
300340
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300342
+  (0.0ms) SAVEPOINT active_record_1
300343
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300345
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
300346
+  (0.1ms) DELETE FROM "users";
300347
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300348
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
300349
+  (0.0ms) DELETE FROM "notifiable_apps";
300350
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300351
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300352
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
300353
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300354
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300355
+  (0.0ms) DELETE FROM "notifiable_notifications";
300356
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300357
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300358
+  (0.1ms) DELETE FROM "notifiable_statuses";
300359
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300360
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300361
+  (0.7ms) rollback transaction
300362
+  (0.1ms) begin transaction
300363
+  (0.1ms) SAVEPOINT active_record_1
300364
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300365
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300366
+  (0.0ms) SAVEPOINT active_record_1
300367
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300368
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300369
+  (0.1ms) DELETE FROM "users";
300370
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300371
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
300372
+  (0.0ms) DELETE FROM "notifiable_apps";
300373
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300374
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300375
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
300376
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300377
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300378
+  (0.0ms) DELETE FROM "notifiable_notifications";
300379
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300380
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300381
+  (0.0ms) DELETE FROM "notifiable_statuses";
300382
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300383
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300384
+  (0.7ms) rollback transaction
300385
+  (0.1ms) begin transaction
300386
+  (0.1ms) SAVEPOINT active_record_1
300387
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
300388
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300389
+  (0.1ms) SAVEPOINT active_record_1
300390
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300392
+  (0.0ms) SAVEPOINT active_record_1
300393
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
300394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300395
+  (0.0ms) SAVEPOINT active_record_1
300396
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300398
+  (0.0ms) SAVEPOINT active_record_1
300399
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300400
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300401
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
300402
+  (0.0ms) SAVEPOINT active_record_1
300403
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
300404
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300405
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
300406
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
300407
+  (0.0ms) SAVEPOINT active_record_1
300408
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
300409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300410
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
300411
+  (0.0ms) DELETE FROM "users";
300412
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300413
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
300414
+  (0.0ms) DELETE FROM "notifiable_apps";
300415
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300416
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300417
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
300418
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300419
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300420
+  (0.0ms) DELETE FROM "notifiable_notifications";
300421
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300422
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300423
+  (0.0ms) DELETE FROM "notifiable_statuses";
300424
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300425
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300426
+  (0.7ms) rollback transaction
300427
+  (0.1ms) begin transaction
300428
+  (0.1ms) SAVEPOINT active_record_1
300429
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
300430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300431
+  (0.1ms) SAVEPOINT active_record_1
300432
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300434
+  (0.0ms) SAVEPOINT active_record_1
300435
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "is_valid", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["is_valid", false], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
300436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300437
+  (0.1ms) SAVEPOINT active_record_1
300438
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300440
+  (0.0ms) SAVEPOINT active_record_1
300441
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300443
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
300444
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
300445
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
300446
+  (0.0ms) SAVEPOINT active_record_1
300447
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
300448
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300449
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
300450
+  (0.1ms) DELETE FROM "users";
300451
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300452
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
300453
+  (0.1ms) DELETE FROM "notifiable_apps";
300454
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300455
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300456
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
300457
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300458
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300459
+  (0.1ms) DELETE FROM "notifiable_notifications";
300460
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300461
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300462
+  (0.1ms) DELETE FROM "notifiable_statuses";
300463
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300464
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300465
+  (0.7ms) rollback transaction
300466
+  (0.0ms) begin transaction
300467
+  (0.1ms) SAVEPOINT active_record_1
300468
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
300469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300470
+  (0.1ms) SAVEPOINT active_record_1
300471
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300472
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300473
+  (0.0ms) SAVEPOINT active_record_1
300474
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD19"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
300475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300476
+ 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
300477
+ 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]]
300478
+  (0.0ms) SAVEPOINT active_record_1
300479
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300480
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300481
+  (0.1ms) SAVEPOINT active_record_1
300482
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
300483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300484
+ Processing by Notifiable::NotificationsController#opened as JSON
300485
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-24@example.com", "notification"=>{}}
300486
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
300487
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-24@example.com' LIMIT 1
300488
+ 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]]
300489
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
300490
+  (0.1ms) SAVEPOINT active_record_1
300491
+ SQL (0.1ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
300492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300493
+ 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]]
300494
+  (0.1ms) SAVEPOINT active_record_1
300495
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
300496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300497
+ Completed 200 OK in 7ms (ActiveRecord: 1.0ms)
300498
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
300499
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
300500
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications"
300501
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
300502
+  (0.1ms) DELETE FROM "users";
300503
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300504
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
300505
+  (0.1ms) DELETE FROM "notifiable_apps";
300506
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300507
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300508
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
300509
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300510
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300511
+  (0.1ms) DELETE FROM "notifiable_notifications";
300512
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300513
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300514
+  (0.1ms) DELETE FROM "notifiable_statuses";
300515
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300516
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300517
+  (0.7ms) rollback transaction
300518
+  (0.1ms) begin transaction
300519
+  (0.1ms) SAVEPOINT active_record_1
300520
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-25@example.com"]]
300521
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300522
+  (0.1ms) SAVEPOINT active_record_1
300523
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300525
+  (0.0ms) SAVEPOINT active_record_1
300526
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD20"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
300527
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300528
+ 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
300529
+ 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]]
300530
+  (0.1ms) SAVEPOINT active_record_1
300531
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300533
+  (0.0ms) SAVEPOINT active_record_1
300534
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300535
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300536
+  (0.0ms) SAVEPOINT active_record_1
300537
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD21"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300538
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300539
+  (0.1ms) SAVEPOINT active_record_1
300540
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
300541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300542
+ Processing by Notifiable::NotificationsController#opened as JSON
300543
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"2", "notification"=>{}}
300544
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '2') LIMIT 1
300545
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
300546
+ 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]]
300547
+  (0.0ms) SAVEPOINT active_record_1
300548
+ SQL (0.1ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
300549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300550
+ 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]]
300551
+  (0.0ms) SAVEPOINT active_record_1
300552
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
300553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300554
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
300555
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
300556
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
300557
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
300558
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
300559
+  (0.1ms) DELETE FROM "users";
300560
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300561
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
300562
+  (0.0ms) DELETE FROM "notifiable_apps";
300563
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300564
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300565
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
300566
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300567
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300568
+  (0.0ms) DELETE FROM "notifiable_notifications";
300569
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300570
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300571
+  (0.0ms) DELETE FROM "notifiable_statuses";
300572
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300573
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300574
+  (0.7ms) rollback transaction
300575
+  (0.1ms) begin transaction
300576
+  (0.1ms) SAVEPOINT active_record_1
300577
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-26@example.com"]]
300578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300579
+  (0.1ms) SAVEPOINT active_record_1
300580
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300581
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300582
+  (0.1ms) SAVEPOINT active_record_1
300583
+ 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, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD22"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
300584
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300585
+ 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
300586
+ 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]]
300587
+  (0.1ms) SAVEPOINT active_record_1
300588
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
300589
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300590
+  (0.1ms) SAVEPOINT active_record_1
300591
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
300592
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300593
+  (0.0ms) SAVEPOINT active_record_1
300594
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-27@example.com"]]
300595
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300596
+ Processing by Notifiable::NotificationsController#opened as JSON
300597
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-27@example.com", "notification"=>{}}
300598
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
300599
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-27@example.com' LIMIT 1
300600
+ 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]]
300601
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
300602
+ Filter chain halted as :check_authorisation! rendered or redirected
300603
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
300604
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
300605
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
300606
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications"
300607
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
300608
+  (0.1ms) DELETE FROM "users";
300609
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300610
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
300611
+  (0.0ms) DELETE FROM "notifiable_apps";
300612
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300613
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
300614
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
300615
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300616
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
300617
+  (0.0ms) DELETE FROM "notifiable_notifications";
300618
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300619
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
300620
+  (0.0ms) DELETE FROM "notifiable_statuses";
300621
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
300622
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
300623
+  (0.8ms) rollback transaction