notifiable-rails 0.19.0 → 0.19.1

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: 6771605e049c4c99a9ca06e52203f8b5b348d7e0
4
- data.tar.gz: 46439784fe393b8282422590d34454b977ea32e8
3
+ metadata.gz: 3119c40d9715afb60dc3a334c2835feb8f2fed6d
4
+ data.tar.gz: 040bb172da1fd1f06ca6beaf81a3510c4c24dbcf
5
5
  SHA512:
6
- metadata.gz: e0b39ee3bb705fe1e945a32e4a00f334720417616173150413e0ea1f9c7ce0551f784202408c3db4bfe1f46b0d8ebf221b471f922b2ac5d0ad7a9a5e251e12b2
7
- data.tar.gz: 4e91ea250c6b0d81fff90e7f142fd21d87aba3ab02bdb64ed8ee901e3ebc25ce6060df2a145ebc81ce520564c2092d632b69d86c4a7916e13179195036f89c90
6
+ metadata.gz: b6493e459290619029d55aa863af2bb313a515f3d86d7fa75064212266e4ded25a3dc680cd5cb5466ca42806e1a24410f25f63932fc66bd998d70793e7f34cf7
7
+ data.tar.gz: b9b9fe3513d1f36480d196b4f92a8457978791e909ca85f2b0168ed80edcb7764e7fab5e9d7e1fe16931564957b339b0a8cff85694e226f38d949d9a28405595
@@ -11,10 +11,10 @@ class ActiveRecord::Base
11
11
  sqlite_bulk_insert(record_list)
12
12
  when :postgresql
13
13
  postgresql_bulk_insert(record_list)
14
- when :oracle_enhanced
14
+ when :oracleenhanced
15
15
  oracle_bulk_insert(record_list)
16
16
  else
17
- raise NotImplementedError, "Unknown adapter type '#{adapter_type}'"
17
+ raise NotImplementedError, "Unknown adapter type '#{adapter_type}' for ActiveRecord::Base.bulk_insert!"
18
18
  end
19
19
 
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.19.0"
2
+ VERSION = "0.19.1"
3
3
  end
@@ -294438,3 +294438,1128 @@ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
294438
294438
   (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294439
294439
   (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294440
294440
   (0.4ms) rollback transaction
294441
+  (0.4ms) begin transaction
294442
+  (0.0ms) SAVEPOINT active_record_1
294443
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
294444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294445
+  (0.0ms) SAVEPOINT active_record_1
294446
+ SQL (4.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294448
+ Processing by Notifiable::DeviceTokensController#create as JSON
294449
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-1@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
294450
+ 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
294451
+ Unpermitted parameters: user_email, device_token
294452
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
294453
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
294454
+  (0.0ms) SAVEPOINT active_record_1
294455
+ 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]]
294456
+ 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 11:10:39 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
294457
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294458
+ Completed 200 OK in 25ms (Views: 0.1ms | ActiveRecord: 1.1ms)
294459
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
294460
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
294461
+ 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
294462
+ 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]]
294463
+  (0.0ms) DELETE FROM "users";
294464
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294465
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
294466
+  (0.0ms) DELETE FROM "notifiable_apps";
294467
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294468
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294469
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
294470
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294471
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294472
+  (0.1ms) DELETE FROM "notifiable_notifications";
294473
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294474
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294475
+  (0.1ms) DELETE FROM "notifiable_statuses";
294476
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294477
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294478
+  (0.5ms) rollback transaction
294479
+  (0.1ms) begin transaction
294480
+  (0.0ms) SAVEPOINT active_record_1
294481
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294483
+  (0.0ms) SAVEPOINT active_record_1
294484
+ 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 11:10:39 UTC +00:00], ["is_valid", false], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294486
+  (0.0ms) SAVEPOINT active_record_1
294487
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294489
+  (0.0ms) SAVEPOINT active_record_1
294490
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
294491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294492
+ Processing by Notifiable::DeviceTokensController#create as JSON
294493
+ Parameters: {"token"=>"ABCD1", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-2@example.com", "device_token"=>{"token"=>"ABCD1", "provider"=>"mock", "app_id"=>"2"}}
294494
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
294495
+ Unpermitted parameters: user_email, device_token
294496
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
294497
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
294498
+  (0.0ms) SAVEPOINT active_record_1
294499
+ 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]]
294500
+ 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 11:10:39 UTC +00:00], ["provider", "mock"], ["token", "ABCD1"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
294501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294502
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
294503
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
294504
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
294505
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" DESC LIMIT 1
294506
+  (0.1ms) DELETE FROM "users";
294507
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294508
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
294509
+  (0.0ms) DELETE FROM "notifiable_apps";
294510
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294511
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294512
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
294513
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294514
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294515
+  (0.1ms) DELETE FROM "notifiable_notifications";
294516
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294517
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294518
+  (0.1ms) DELETE FROM "notifiable_statuses";
294519
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294520
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294521
+  (0.6ms) rollback transaction
294522
+  (0.1ms) begin transaction
294523
+  (0.0ms) SAVEPOINT active_record_1
294524
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
294525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294526
+ Processing by Notifiable::DeviceTokensController#create as JSON
294527
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-3@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
294528
+ 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
294529
+ Unpermitted parameters: user_email, device_token
294530
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
294531
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
294532
+  (0.0ms) SAVEPOINT active_record_1
294533
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
294534
+ Completed 422 Unprocessable Entity in 9ms (Views: 0.3ms | ActiveRecord: 0.3ms)
294535
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
294536
+  (0.3ms) DELETE FROM "users";
294537
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294538
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
294539
+  (0.1ms) DELETE FROM "notifiable_apps";
294540
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294541
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294542
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
294543
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294544
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294545
+  (0.1ms) DELETE FROM "notifiable_notifications";
294546
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294547
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294548
+  (0.1ms) DELETE FROM "notifiable_statuses";
294549
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294550
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294551
+  (0.5ms) rollback transaction
294552
+  (0.1ms) begin transaction
294553
+  (0.1ms) SAVEPOINT active_record_1
294554
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
294555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294556
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
294557
+ Parameters: {"id"=>"59", "user_email"=>"person-4@example.com", "device_token"=>{"id"=>"59"}}
294558
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
294559
+ Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
294560
+  (0.1ms) SAVEPOINT active_record_1
294561
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
294562
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294563
+  (0.1ms) SAVEPOINT active_record_1
294564
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294565
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294566
+  (0.0ms) SAVEPOINT active_record_1
294567
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 2]]
294568
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294569
+ 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
294570
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2'
294571
+  (0.1ms) DELETE FROM "users";
294572
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294573
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
294574
+  (0.0ms) DELETE FROM "notifiable_apps";
294575
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294576
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294577
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
294578
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294579
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294580
+  (0.1ms) DELETE FROM "notifiable_notifications";
294581
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294582
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294583
+  (0.1ms) DELETE FROM "notifiable_statuses";
294584
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294585
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294586
+  (0.7ms) rollback transaction
294587
+  (0.1ms) begin transaction
294588
+  (0.0ms) SAVEPOINT active_record_1
294589
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
294590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294591
+  (0.1ms) SAVEPOINT active_record_1
294592
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294594
+  (0.0ms) SAVEPOINT active_record_1
294595
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
294596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294597
+ 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
294598
+ Processing by Notifiable::DeviceTokensController#update as JSON
294599
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-6@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
294600
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
294601
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
294602
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
294603
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
294604
+ Unpermitted parameters: user_email, device_token
294605
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
294606
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
294607
+  (0.0ms) SAVEPOINT active_record_1
294608
+ 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]]
294609
+ 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 11:10:39 UTC +00:00]]
294610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294611
+ Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.7ms)
294612
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
294613
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
294614
+  (0.1ms) DELETE FROM "users";
294615
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294616
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
294617
+  (0.0ms) DELETE FROM "notifiable_apps";
294618
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294619
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294620
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
294621
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294622
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294623
+  (0.1ms) DELETE FROM "notifiable_notifications";
294624
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294625
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294626
+  (0.1ms) DELETE FROM "notifiable_statuses";
294627
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294628
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294629
+  (0.6ms) rollback transaction
294630
+  (0.1ms) begin transaction
294631
+  (0.0ms) SAVEPOINT active_record_1
294632
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
294633
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294634
+  (0.0ms) SAVEPOINT active_record_1
294635
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294637
+  (0.0ms) SAVEPOINT active_record_1
294638
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
294639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294640
+ 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
294641
+  (0.0ms) SAVEPOINT active_record_1
294642
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
294643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294644
+ Processing by Notifiable::DeviceTokensController#update as JSON
294645
+ Parameters: {"id"=>"1", "user_email"=>"person-8@example.com", "token"=>"ZXY987", "device_token"=>{"id"=>"1", "token"=>"ZXY987"}}
294646
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
294647
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
294648
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
294649
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
294650
+ Filter chain halted as :ensure_authorized! rendered or redirected
294651
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
294652
+  (0.1ms) DELETE FROM "users";
294653
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294654
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
294655
+  (0.1ms) DELETE FROM "notifiable_apps";
294656
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294657
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294658
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
294659
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294660
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294661
+  (0.1ms) DELETE FROM "notifiable_notifications";
294662
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294663
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294664
+  (0.1ms) DELETE FROM "notifiable_statuses";
294665
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294666
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294667
+  (0.5ms) rollback transaction
294668
+  (0.1ms) begin transaction
294669
+  (0.1ms) SAVEPOINT active_record_1
294670
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
294671
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294672
+  (0.0ms) SAVEPOINT active_record_1
294673
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294675
+  (0.0ms) SAVEPOINT active_record_1
294676
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
294677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294678
+ 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
294679
+ Processing by Notifiable::DeviceTokensController#create as JSON
294680
+ Parameters: {"token"=>"ABCD5", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD5", "provider"=>"mpns"}}
294681
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
294682
+ Unpermitted parameters: device_token
294683
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
294684
+  (0.1ms) SAVEPOINT active_record_1
294685
+ 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]]
294686
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["provider", "mpns"], ["user_id", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294688
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
294689
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
294690
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
294691
+  (0.1ms) DELETE FROM "users";
294692
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294693
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
294694
+  (0.0ms) DELETE FROM "notifiable_apps";
294695
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294696
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294697
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
294698
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294699
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294700
+  (0.1ms) DELETE FROM "notifiable_notifications";
294701
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294702
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294703
+  (0.1ms) DELETE FROM "notifiable_statuses";
294704
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294705
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294706
+  (0.8ms) rollback transaction
294707
+  (0.1ms) begin transaction
294708
+  (0.1ms) SAVEPOINT active_record_1
294709
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294711
+ Processing by Notifiable::DeviceTokensController#create as JSON
294712
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
294713
+ 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
294714
+ Unpermitted parameters: device_token
294715
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
294716
+  (0.0ms) SAVEPOINT active_record_1
294717
+ 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]]
294718
+ 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 11:10:39 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294720
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
294721
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
294722
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
294723
+ 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]]
294724
+  (0.1ms) SELECT COUNT(*) FROM "users"
294725
+  (0.2ms) DELETE FROM "users";
294726
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294727
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
294728
+  (0.1ms) DELETE FROM "notifiable_apps";
294729
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294730
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294731
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
294732
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294733
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294734
+  (0.1ms) DELETE FROM "notifiable_notifications";
294735
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294736
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294737
+  (0.1ms) DELETE FROM "notifiable_statuses";
294738
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294739
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294740
+  (0.7ms) rollback transaction
294741
+  (0.1ms) begin transaction
294742
+  (0.1ms) SAVEPOINT active_record_1
294743
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
294744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294745
+  (0.1ms) SAVEPOINT active_record_1
294746
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294747
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294748
+  (0.0ms) SAVEPOINT active_record_1
294749
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
294750
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294751
+ 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
294752
+  (0.0ms) SAVEPOINT active_record_1
294753
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
294754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294755
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
294756
+ Parameters: {"id"=>"1", "user_email"=>"person-11@example.com", "device_token"=>{"id"=>"1"}}
294757
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
294758
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
294759
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
294760
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
294761
+ Filter chain halted as :ensure_authorized! rendered or redirected
294762
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
294763
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'
294764
+  (0.1ms) DELETE FROM "users";
294765
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294766
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
294767
+  (0.0ms) DELETE FROM "notifiable_apps";
294768
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294769
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294770
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
294771
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294772
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294773
+  (0.1ms) DELETE FROM "notifiable_notifications";
294774
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294775
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294776
+  (0.1ms) DELETE FROM "notifiable_statuses";
294777
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294778
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294779
+  (0.7ms) rollback transaction
294780
+  (0.1ms) begin transaction
294781
+  (0.0ms) SAVEPOINT active_record_1
294782
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
294783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294784
+  (0.0ms) SAVEPOINT active_record_1
294785
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294787
+  (0.0ms) SAVEPOINT active_record_1
294788
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
294789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294790
+ 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
294791
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
294792
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
294793
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
294794
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
294795
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
294796
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
294797
+ Filter chain halted as :ensure_authorized! rendered or redirected
294798
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
294799
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
294800
+  (0.0ms) DELETE FROM "users";
294801
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294802
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
294803
+  (0.0ms) DELETE FROM "notifiable_apps";
294804
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294805
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294806
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
294807
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294808
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294809
+  (0.0ms) DELETE FROM "notifiable_notifications";
294810
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294811
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294812
+  (0.0ms) DELETE FROM "notifiable_statuses";
294813
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294814
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294815
+  (0.7ms) rollback transaction
294816
+  (0.0ms) begin transaction
294817
+  (0.1ms) SAVEPOINT active_record_1
294818
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
294819
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294820
+  (0.0ms) SAVEPOINT active_record_1
294821
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294823
+  (0.0ms) SAVEPOINT active_record_1
294824
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
294825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294826
+ 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
294827
+  (0.0ms) SAVEPOINT active_record_1
294828
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294830
+ Processing by Notifiable::DeviceTokensController#create as JSON
294831
+ Parameters: {"token"=>"ABCD8", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-13@example.com", "device_token"=>{"token"=>"ABCD8", "provider"=>"mock", "app_id"=>"2"}}
294832
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
294833
+ Unpermitted parameters: user_email, device_token
294834
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
294835
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
294836
+  (0.0ms) SAVEPOINT active_record_1
294837
+ 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]]
294838
+ 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 11:10:39 UTC +00:00]]
294839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294840
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
294841
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
294842
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
294843
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
294844
+ 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]]
294845
+  (0.1ms) DELETE FROM "users";
294846
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294847
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
294848
+  (0.1ms) DELETE FROM "notifiable_apps";
294849
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294850
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294851
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
294852
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294853
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294854
+  (0.1ms) DELETE FROM "notifiable_notifications";
294855
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294856
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294857
+  (0.1ms) DELETE FROM "notifiable_statuses";
294858
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294859
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294860
+  (0.6ms) rollback transaction
294861
+  (0.1ms) begin transaction
294862
+  (0.1ms) SAVEPOINT active_record_1
294863
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
294864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294865
+  (0.1ms) SAVEPOINT active_record_1
294866
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294868
+  (0.0ms) SAVEPOINT active_record_1
294869
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
294870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294871
+ 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
294872
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
294873
+ Parameters: {"id"=>"1", "user_email"=>"person-14@example.com", "device_token"=>{"id"=>"1"}}
294874
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
294875
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
294876
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
294877
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
294878
+  (0.1ms) SAVEPOINT active_record_1
294879
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
294880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294881
+ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
294882
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
294883
+  (0.1ms) DELETE FROM "users";
294884
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294885
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
294886
+  (0.0ms) DELETE FROM "notifiable_apps";
294887
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294888
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294889
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
294890
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294891
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294892
+  (0.1ms) DELETE FROM "notifiable_notifications";
294893
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294894
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294895
+  (0.1ms) DELETE FROM "notifiable_statuses";
294896
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294897
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294898
+  (0.7ms) rollback transaction
294899
+  (0.1ms) begin transaction
294900
+  (0.0ms) SAVEPOINT active_record_1
294901
+ 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 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294903
+  (0.0ms) SAVEPOINT active_record_1
294904
+ SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294906
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
294907
+  (0.1ms) DELETE FROM "users";
294908
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294909
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
294910
+  (0.0ms) DELETE FROM "notifiable_apps";
294911
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294912
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294913
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
294914
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294915
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294916
+  (0.0ms) DELETE FROM "notifiable_notifications";
294917
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294918
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294919
+  (0.1ms) DELETE FROM "notifiable_statuses";
294920
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294921
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294922
+  (0.5ms) rollback transaction
294923
+  (0.1ms) begin transaction
294924
+  (0.1ms) SAVEPOINT active_record_1
294925
+ 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 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294927
+  (0.1ms) SAVEPOINT active_record_1
294928
+ SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294930
+  (0.1ms) DELETE FROM "users";
294931
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294932
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
294933
+  (0.0ms) DELETE FROM "notifiable_apps";
294934
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294935
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294936
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
294937
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294938
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294939
+  (0.0ms) DELETE FROM "notifiable_notifications";
294940
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294941
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294942
+  (0.1ms) DELETE FROM "notifiable_statuses";
294943
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294944
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294945
+  (0.7ms) rollback transaction
294946
+  (0.0ms) begin transaction
294947
+  (0.0ms) SAVEPOINT active_record_1
294948
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
294949
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294950
+  (0.0ms) SAVEPOINT active_record_1
294951
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294952
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294953
+  (0.0ms) SAVEPOINT active_record_1
294954
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
294955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294956
+  (0.0ms) SAVEPOINT active_record_1
294957
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294959
+  (0.0ms) SAVEPOINT active_record_1
294960
+ 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 11:10:39 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294961
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294962
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
294963
+  (0.1ms) SAVEPOINT active_record_1
294964
+ SQL (1.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
294965
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294966
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
294967
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
294968
+  (0.0ms) SAVEPOINT active_record_1
294969
+ 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 11:10:39 UTC +00:00], ["params", nil]]
294970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294971
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
294972
+  (0.0ms) DELETE FROM "users";
294973
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294974
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
294975
+  (0.0ms) DELETE FROM "notifiable_apps";
294976
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294977
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
294978
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
294979
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294980
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
294981
+  (0.0ms) DELETE FROM "notifiable_notifications";
294982
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294983
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
294984
+  (0.0ms) DELETE FROM "notifiable_statuses";
294985
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
294986
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
294987
+  (0.7ms) rollback transaction
294988
+  (0.1ms) begin transaction
294989
+  (0.1ms) SAVEPOINT active_record_1
294990
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
294991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294992
+  (0.0ms) SAVEPOINT active_record_1
294993
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
294994
+  (0.1ms) RELEASE SAVEPOINT active_record_1
294995
+  (0.0ms) SAVEPOINT active_record_1
294996
+ 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 11:10:39 UTC +00:00], ["is_valid", false], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
294997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294998
+  (0.0ms) SAVEPOINT active_record_1
294999
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295000
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295001
+  (0.0ms) SAVEPOINT active_record_1
295002
+ 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 11:10:39 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295003
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295004
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
295005
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
295006
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
295007
+  (0.0ms) SAVEPOINT active_record_1
295008
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["params", nil]]
295009
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295010
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
295011
+  (0.1ms) DELETE FROM "users";
295012
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295013
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
295014
+  (0.0ms) DELETE FROM "notifiable_apps";
295015
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295016
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295017
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
295018
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295019
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295020
+  (0.0ms) DELETE FROM "notifiable_notifications";
295021
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295022
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295023
+  (0.1ms) DELETE FROM "notifiable_statuses";
295024
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295025
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295026
+  (0.6ms) rollback transaction
295027
+  (0.1ms) begin transaction
295028
+  (0.0ms) SAVEPOINT active_record_1
295029
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
295030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295031
+  (0.0ms) SAVEPOINT active_record_1
295032
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295034
+  (0.0ms) SAVEPOINT active_record_1
295035
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
295036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295037
+ 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
295038
+ 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]]
295039
+  (0.0ms) SAVEPOINT active_record_1
295040
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295042
+  (0.1ms) SAVEPOINT active_record_1
295043
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
295044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295045
+ Processing by Notifiable::NotificationsController#opened as JSON
295046
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-17@example.com", "notification"=>{}}
295047
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
295048
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
295049
+ 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]]
295050
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
295051
+  (0.0ms) SAVEPOINT active_record_1
295052
+ SQL (0.1ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
295053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295054
+ 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]]
295055
+  (0.0ms) SAVEPOINT active_record_1
295056
+ 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 11:10:39 UTC +00:00], ["params", nil]]
295057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295058
+ Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
295059
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
295060
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
295061
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
295062
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
295063
+  (0.0ms) DELETE FROM "users";
295064
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295065
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
295066
+  (0.0ms) DELETE FROM "notifiable_apps";
295067
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295068
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295069
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
295070
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295071
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295072
+  (0.0ms) DELETE FROM "notifiable_notifications";
295073
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295074
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295075
+  (0.0ms) DELETE FROM "notifiable_statuses";
295076
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295077
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295078
+  (0.7ms) rollback transaction
295079
+  (0.0ms) begin transaction
295080
+  (0.0ms) SAVEPOINT active_record_1
295081
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
295082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295083
+  (0.0ms) SAVEPOINT active_record_1
295084
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295086
+  (0.0ms) SAVEPOINT active_record_1
295087
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
295088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295089
+ 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
295090
+ 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]]
295091
+  (0.0ms) SAVEPOINT active_record_1
295092
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295094
+  (0.1ms) SAVEPOINT active_record_1
295095
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295096
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295097
+  (0.1ms) SAVEPOINT active_record_1
295098
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295099
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295100
+  (0.0ms) SAVEPOINT active_record_1
295101
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
295102
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295103
+ Processing by Notifiable::NotificationsController#opened as JSON
295104
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"2", "notification"=>{}}
295105
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '2') LIMIT 1
295106
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
295107
+ 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]]
295108
+  (0.0ms) SAVEPOINT active_record_1
295109
+ SQL (0.0ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
295110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295111
+ 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]]
295112
+  (0.0ms) SAVEPOINT active_record_1
295113
+ 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 11:10:39 UTC +00:00], ["params", nil]]
295114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295115
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
295116
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
295117
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
295118
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
295119
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
295120
+  (0.1ms) DELETE FROM "users";
295121
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295122
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
295123
+  (0.0ms) DELETE FROM "notifiable_apps";
295124
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295125
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295126
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
295127
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295128
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295129
+  (0.0ms) DELETE FROM "notifiable_notifications";
295130
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295131
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295132
+  (0.0ms) DELETE FROM "notifiable_statuses";
295133
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295134
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295135
+  (0.6ms) rollback transaction
295136
+  (0.1ms) begin transaction
295137
+  (0.0ms) SAVEPOINT active_record_1
295138
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
295139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295140
+  (0.0ms) SAVEPOINT active_record_1
295141
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295143
+  (0.0ms) SAVEPOINT active_record_1
295144
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
295145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295146
+ 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
295147
+ 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]]
295148
+  (0.0ms) SAVEPOINT active_record_1
295149
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295151
+  (0.0ms) SAVEPOINT active_record_1
295152
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
295153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295154
+  (0.0ms) SAVEPOINT active_record_1
295155
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
295156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295157
+ Processing by Notifiable::NotificationsController#opened as JSON
295158
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-20@example.com", "notification"=>{}}
295159
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
295160
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
295161
+ 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]]
295162
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
295163
+ Filter chain halted as :check_authorisation! rendered or redirected
295164
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
295165
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
295166
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
295167
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
295168
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
295169
+  (0.1ms) DELETE FROM "users";
295170
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295171
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
295172
+  (0.0ms) DELETE FROM "notifiable_apps";
295173
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295174
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295175
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
295176
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295177
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295178
+  (0.0ms) DELETE FROM "notifiable_notifications";
295179
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295180
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295181
+  (0.0ms) DELETE FROM "notifiable_statuses";
295182
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295183
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295184
+  (0.7ms) rollback transaction
295185
+  (0.0ms) begin transaction
295186
+  (0.0ms) SAVEPOINT active_record_1
295187
+ SQL (0.4ms) 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 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295188
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295189
+  (0.1ms) SAVEPOINT active_record_1
295190
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295192
+  (0.1ms) DELETE FROM "users";
295193
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295194
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
295195
+  (0.0ms) DELETE FROM "notifiable_apps";
295196
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295197
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295198
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
295199
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295200
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295201
+  (0.0ms) DELETE FROM "notifiable_notifications";
295202
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295203
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295204
+  (0.1ms) DELETE FROM "notifiable_statuses";
295205
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295206
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295207
+  (0.5ms) rollback transaction
295208
+  (0.1ms) begin transaction
295209
+  (0.0ms) SAVEPOINT active_record_1
295210
+ 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 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295212
+  (0.1ms) SAVEPOINT active_record_1
295213
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295214
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295215
+  (0.1ms) DELETE FROM "users";
295216
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295217
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
295218
+  (0.0ms) DELETE FROM "notifiable_apps";
295219
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295220
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295221
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
295222
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295223
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295224
+  (0.0ms) DELETE FROM "notifiable_notifications";
295225
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295226
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295227
+  (0.0ms) DELETE FROM "notifiable_statuses";
295228
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295229
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295230
+  (0.5ms) rollback transaction
295231
+  (0.1ms) begin transaction
295232
+  (0.0ms) SAVEPOINT active_record_1
295233
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295235
+  (0.0ms) SAVEPOINT active_record_1
295236
+ 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 11:10:39 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295238
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
295239
+  (0.1ms) DELETE FROM "users";
295240
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295241
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
295242
+  (0.0ms) DELETE FROM "notifiable_apps";
295243
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295244
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295245
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
295246
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295247
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295248
+  (0.1ms) DELETE FROM "notifiable_notifications";
295249
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295250
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295251
+  (0.1ms) DELETE FROM "notifiable_statuses";
295252
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295253
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295254
+  (0.6ms) rollback transaction
295255
+  (0.1ms) begin transaction
295256
+  (0.1ms) SAVEPOINT active_record_1
295257
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295258
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295259
+  (0.0ms) SAVEPOINT active_record_1
295260
+ 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 11:10:39 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295262
+  (0.0ms) SAVEPOINT active_record_1
295263
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
295264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295265
+  (0.1ms) SAVEPOINT active_record_1
295266
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295267
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295268
+  (0.0ms) SAVEPOINT active_record_1
295269
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
295270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295271
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
295272
+  (0.0ms) SAVEPOINT active_record_1
295273
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
295274
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295275
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
295276
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
295277
+  (0.0ms) SAVEPOINT active_record_1
295278
+ 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 11:10:39 UTC +00:00], ["params", nil]]
295279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295280
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
295281
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
295282
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
295283
+  (0.1ms) DELETE FROM "users";
295284
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295285
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
295286
+  (0.0ms) DELETE FROM "notifiable_apps";
295287
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295288
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295289
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
295290
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295291
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295292
+  (0.0ms) DELETE FROM "notifiable_notifications";
295293
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295294
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295295
+  (0.0ms) DELETE FROM "notifiable_statuses";
295296
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295297
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295298
+  (0.6ms) rollback transaction
295299
+  (0.1ms) begin transaction
295300
+  (0.1ms) SAVEPOINT active_record_1
295301
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295303
+  (0.0ms) SAVEPOINT active_record_1
295304
+ 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 11:10:39 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295306
+  (0.0ms) SAVEPOINT active_record_1
295307
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
295308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295309
+  (0.1ms) SAVEPOINT active_record_1
295310
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295311
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295312
+  (0.0ms) SAVEPOINT active_record_1
295313
+ SQL (0.1ms) 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
295314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295315
+ 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
295316
+  (0.0ms) SAVEPOINT active_record_1
295317
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
295318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295319
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
295320
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
295321
+  (0.0ms) SAVEPOINT active_record_1
295322
+ 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 11:10:39 UTC +00:00], ["params", nil]]
295323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295324
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
295325
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
295326
+  (0.0ms) DELETE FROM "users";
295327
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295328
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
295329
+  (0.0ms) DELETE FROM "notifiable_apps";
295330
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295331
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295332
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
295333
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295334
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295335
+  (0.0ms) DELETE FROM "notifiable_notifications";
295336
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295337
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295338
+  (0.0ms) DELETE FROM "notifiable_statuses";
295339
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295340
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295341
+  (0.6ms) rollback transaction
295342
+  (0.1ms) begin transaction
295343
+  (0.1ms) SAVEPOINT active_record_1
295344
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
295345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295346
+  (0.0ms) SAVEPOINT active_record_1
295347
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295349
+  (0.1ms) SAVEPOINT active_record_1
295350
+ 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 11:10:39 UTC +00:00], ["provider", :sms], ["token", "ABCD18"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
295351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295352
+  (0.1ms) SAVEPOINT active_record_1
295353
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295355
+  (0.0ms) SAVEPOINT active_record_1
295356
+ 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 11:10:39 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295358
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
295359
+  (0.0ms) DELETE FROM "users";
295360
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295361
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
295362
+  (0.0ms) DELETE FROM "notifiable_apps";
295363
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295364
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295365
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
295366
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295367
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295368
+  (0.0ms) DELETE FROM "notifiable_notifications";
295369
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295370
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295371
+  (0.1ms) DELETE FROM "notifiable_statuses";
295372
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295373
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295374
+  (0.7ms) rollback transaction
295375
+  (0.1ms) begin transaction
295376
+  (0.0ms) SAVEPOINT active_record_1
295377
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295379
+  (0.0ms) SAVEPOINT active_record_1
295380
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295382
+  (0.0ms) SAVEPOINT active_record_1
295383
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["notification_id", 1]]
295384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295385
+  (0.0ms) SAVEPOINT active_record_1
295386
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
295387
+ SQL (0.1ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
295388
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
295389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295390
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
295391
+  (0.1ms) DELETE FROM "users";
295392
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295393
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
295394
+  (0.0ms) DELETE FROM "notifiable_apps";
295395
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295396
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295397
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
295398
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295399
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295400
+  (0.0ms) DELETE FROM "notifiable_notifications";
295401
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295402
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295403
+  (0.0ms) DELETE FROM "notifiable_statuses";
295404
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295405
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295406
+  (0.5ms) rollback transaction
295407
+  (0.1ms) begin transaction
295408
+  (0.1ms) SAVEPOINT active_record_1
295409
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295411
+  (0.0ms) SAVEPOINT active_record_1
295412
+ 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 11:10:39 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295414
+  (0.0ms) SAVEPOINT active_record_1
295415
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
295416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295417
+  (0.1ms) SAVEPOINT active_record_1
295418
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295420
+  (0.0ms) SAVEPOINT active_record_1
295421
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD19"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
295422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295423
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
295424
+  (0.0ms) SAVEPOINT active_record_1
295425
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
295426
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295427
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
295428
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
295429
+  (0.0ms) SAVEPOINT active_record_1
295430
+ 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 11:10:39 UTC +00:00], ["params", nil]]
295431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295432
+  (0.1ms) SAVEPOINT active_record_1
295433
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295435
+  (0.0ms) SAVEPOINT active_record_1
295436
+ 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 11:10:39 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295438
+  (0.0ms) SAVEPOINT active_record_1
295439
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-25@example.com"]]
295440
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295441
+  (0.1ms) SAVEPOINT active_record_1
295442
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295444
+  (0.0ms) SAVEPOINT active_record_1
295445
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD20"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 2]]
295446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295447
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
295448
+  (0.0ms) SAVEPOINT active_record_1
295449
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 0]]
295450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295451
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
295452
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
295453
+  (0.0ms) SAVEPOINT active_record_1
295454
+ 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 11:10:39 UTC +00:00], ["params", nil]]
295455
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295456
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
295457
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
295458
+ 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]]
295459
+ 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]]
295460
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
295461
+ 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]]
295462
+ 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]]
295463
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
295464
+  (0.0ms) DELETE FROM "users";
295465
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295466
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
295467
+  (0.0ms) DELETE FROM "notifiable_apps";
295468
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295469
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295470
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
295471
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295472
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295473
+  (0.0ms) DELETE FROM "notifiable_notifications";
295474
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295475
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295476
+  (0.0ms) DELETE FROM "notifiable_statuses";
295477
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295478
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295479
+  (0.6ms) rollback transaction
295480
+  (0.1ms) begin transaction
295481
+  (0.0ms) SAVEPOINT active_record_1
295482
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295484
+  (0.0ms) SAVEPOINT active_record_1
295485
+ 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 11:10:39 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295486
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295487
+  (0.0ms) SAVEPOINT active_record_1
295488
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-26@example.com"]]
295489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295490
+  (0.1ms) SAVEPOINT active_record_1
295491
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295492
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295493
+  (0.0ms) SAVEPOINT active_record_1
295494
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD21"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 1]]
295495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295496
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
295497
+  (0.0ms) SAVEPOINT active_record_1
295498
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-27@example.com"]]
295499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295500
+  (0.1ms) SAVEPOINT active_record_1
295501
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295502
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295503
+  (0.1ms) SAVEPOINT active_record_1
295504
+ 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 11:10:39 UTC +00:00], ["provider", :mock], ["token", "ABCD22"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["user_id", 2]]
295505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295506
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
295507
+  (0.0ms) SAVEPOINT active_record_1
295508
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
295509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295510
+  (0.1ms) SAVEPOINT active_record_1
295511
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
295512
+  (31.4ms) RELEASE SAVEPOINT active_record_1
295513
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
295514
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
295515
+  (0.1ms) SAVEPOINT active_record_1
295516
+ 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 11:10:39 UTC +00:00], ["params", nil]]
295517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295518
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
295519
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
295520
+ 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]]
295521
+ 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]]
295522
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
295523
+ 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]]
295524
+ 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]]
295525
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
295526
+  (0.0ms) DELETE FROM "users";
295527
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295528
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
295529
+  (0.0ms) DELETE FROM "notifiable_apps";
295530
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295531
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295532
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
295533
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295534
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295535
+  (0.0ms) DELETE FROM "notifiable_notifications";
295536
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295537
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295538
+  (0.0ms) DELETE FROM "notifiable_statuses";
295539
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295540
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295541
+  (0.7ms) rollback transaction
295542
+  (0.1ms) begin transaction
295543
+  (0.0ms) SAVEPOINT active_record_1
295544
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295546
+  (0.0ms) SAVEPOINT active_record_1
295547
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 16 Jun 2014 11:10:39 UTC +00:00]]
295548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295549
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
295550
+  (0.1ms) DELETE FROM "users";
295551
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295552
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
295553
+  (0.0ms) DELETE FROM "notifiable_apps";
295554
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295555
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
295556
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
295557
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295558
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
295559
+  (0.0ms) DELETE FROM "notifiable_notifications";
295560
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295561
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
295562
+  (0.0ms) DELETE FROM "notifiable_statuses";
295563
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
295564
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
295565
+  (0.6ms) rollback transaction