notifiable-rails 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39b16fa6a22178fc28e5ce367b72f065ebaba804
4
- data.tar.gz: 67bd6e6fbe7c05b79b5af04bb810abe78c9f9f54
3
+ metadata.gz: 846bf4cc8b8d7d968ce3f7507d0f16e50024dc53
4
+ data.tar.gz: 271e8fe18f6ef3bddceacf3d5837f9f5f4cca5cb
5
5
  SHA512:
6
- metadata.gz: f7e405b314ead10453aae774684a9fef411adcc9736e57198135cc4f84b0a5e6db66aa5b1e38fdc1d8694ef9a0b1af70045ba0707e9e8a44e629e6871f78f79d
7
- data.tar.gz: 1df7aa3df2289fa1f58624c6d5bfcc9e1919de6a99b92a32927eb048bcf4c10fc3b7a8e9b61758fbea85dfc6b167a3e73eac341a8d669eacdb013c719843cce6
6
+ metadata.gz: dc8472f2c27ba9786d7cd24459b3136147f42243ce964ed862d3493ed0369f14534a6c6d5ca3d7f8e8dda26bf8774d8e57b050546befa87aab4e818575bee82d
7
+ data.tar.gz: a86c11aa3581d0aff7d6bc2fd36eb06d92ac006901ab241fdd9fc6f42395762f1e75ccc1f46c0d27812447abe10660371d82caefdf425115c033753f5ca5f84d
@@ -7,16 +7,16 @@ module Notifiable
7
7
 
8
8
  def create
9
9
  if params[:device_id]
10
- @device_token = DeviceToken.find_or_create_by(:device_id => params[:device_id])
11
- @device_token.token = params[:token]
10
+ @device_token = DeviceToken.find_by(:device_id => params[:device_id])
12
11
  else
13
- @device_token = DeviceToken.find_or_create_by(:token => params[:token])
14
- end
15
-
16
- @device_token.provider = params[:provider]
17
- @device_token.user_id = current_notifiable_user.id if current_notifiable_user
12
+ @device_token = DeviceToken.find_by(:token => params[:token])
13
+ end
14
+ @device_token = DeviceToken.new unless @device_token
15
+
16
+ notifiable_params = params.permit(Notifiable.api_device_token_params)
17
+ notifiable_params[:user_id] = current_notifiable_user.id if current_notifiable_user
18
18
 
19
- if @device_token.save
19
+ if @device_token.update_attributes(notifiable_params)
20
20
  head :status => :ok
21
21
  else
22
22
  render :json => { :errors => @device_token.errors.full_messages }, :status => :internal_server_error
data/lib/notifiable.rb CHANGED
@@ -11,7 +11,10 @@ require 'notifiable/notifier_base'
11
11
  module Notifiable
12
12
 
13
13
  mattr_accessor :api_controller_class
14
-
14
+
15
+ mattr_accessor :api_device_token_params
16
+ @@api_device_token_params = [:device_id, :token, :provider]
17
+
15
18
  mattr_accessor :user_class
16
19
 
17
20
  mattr_accessor :delivery_method
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -130680,3 +130680,2394 @@ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
130680
130680
   (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130681
130681
   (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
130682
130682
   (0.4ms) rollback transaction
130683
+  (0.3ms) begin transaction
130684
+  (0.0ms) SAVEPOINT active_record_1
130685
+ SQL (1.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
130686
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130687
+  (0.0ms) SAVEPOINT active_record_1
130688
+ Notifiable::DeviceToken Exists (0.4ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1
130689
+ SQL (5.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["user_id", 1]]
130690
+  (0.1ms) RELEASE SAVEPOINT active_record_1
130691
+  (0.0ms) SAVEPOINT active_record_1
130692
+ SQL (0.7ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
130693
+  (0.1ms) RELEASE SAVEPOINT active_record_1
130694
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
130695
+  (0.1ms) DELETE FROM "users";
130696
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130697
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
130698
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
130699
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130700
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
130701
+  (0.1ms) DELETE FROM "notifiable_notifications";
130702
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130703
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
130704
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
130705
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130706
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
130707
+  (0.5ms) rollback transaction
130708
+  (0.1ms) begin transaction
130709
+  (0.1ms) SAVEPOINT active_record_1
130710
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
130711
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130712
+  (0.1ms) SAVEPOINT active_record_1
130713
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
130714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130715
+  (0.1ms) SAVEPOINT active_record_1
130716
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
130717
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["user_id", 1]]
130718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130719
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
130720
+  (0.0ms) SAVEPOINT active_record_1
130721
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
130722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130723
+  (0.0ms) SAVEPOINT active_record_1
130724
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
130725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130726
+  (0.0ms) SAVEPOINT active_record_1
130727
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
130728
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["user_id", 2]]
130729
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130730
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
130731
+  (0.0ms) SAVEPOINT active_record_1
130732
+ SQL (0.2ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
130733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130734
+  (0.0ms) SAVEPOINT active_record_1
130735
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
130736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130737
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
130738
+ Notifiable::NotificationDeviceToken Load (0.1ms) SELECT "notifiable_notification_device_tokens".* FROM "notifiable_notification_device_tokens"
130739
+ 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]]
130740
+ 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]]
130741
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
130742
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 2]]
130743
+ 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]]
130744
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
130745
+  (0.0ms) DELETE FROM "users";
130746
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130747
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
130748
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
130749
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130750
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
130751
+  (0.0ms) DELETE FROM "notifiable_notifications";
130752
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130753
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
130754
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
130755
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130756
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
130757
+  (0.5ms) rollback transaction
130758
+  (0.0ms) begin transaction
130759
+  (0.0ms) SAVEPOINT active_record_1
130760
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
130761
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130762
+  (0.0ms) SAVEPOINT active_record_1
130763
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
130764
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130765
+  (0.0ms) SAVEPOINT active_record_1
130766
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
130767
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["user_id", 1]]
130768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130769
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
130770
+  (0.0ms) SAVEPOINT active_record_1
130771
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
130772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130773
+  (0.0ms) SAVEPOINT active_record_1
130774
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
130775
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["user_id", 2]]
130776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130777
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
130778
+  (0.0ms) SAVEPOINT active_record_1
130779
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
130780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130781
+  (0.0ms) SAVEPOINT active_record_1
130782
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
130783
+  (0.1ms) RELEASE SAVEPOINT active_record_1
130784
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
130785
+ Notifiable::NotificationDeviceToken Load (0.1ms) SELECT "notifiable_notification_device_tokens".* FROM "notifiable_notification_device_tokens"
130786
+ 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]]
130787
+ 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]]
130788
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
130789
+ 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]]
130790
+ 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]]
130791
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
130792
+  (0.1ms) DELETE FROM "users";
130793
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130794
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
130795
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
130796
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130797
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
130798
+  (0.0ms) DELETE FROM "notifiable_notifications";
130799
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130800
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
130801
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
130802
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130803
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
130804
+  (0.6ms) rollback transaction
130805
+  (0.1ms) begin transaction
130806
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
130807
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
130808
+  (0.2ms) DELETE FROM "users";
130809
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130810
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
130811
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
130812
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130813
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
130814
+  (0.0ms) DELETE FROM "notifiable_notifications";
130815
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130816
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
130817
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
130818
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130819
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
130820
+  (0.4ms) rollback transaction
130821
+  (0.0ms) begin transaction
130822
+  (0.0ms) SAVEPOINT active_record_1
130823
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
130824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130825
+  (0.1ms) SAVEPOINT active_record_1
130826
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
130827
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["user_id", 1]]
130828
+  (0.1ms) RELEASE SAVEPOINT active_record_1
130829
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
130830
+  (0.0ms) SAVEPOINT active_record_1
130831
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["device_token_id", 1], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
130832
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130833
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
130834
+  (0.0ms) DELETE FROM "users";
130835
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130836
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
130837
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
130838
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130839
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
130840
+  (0.0ms) DELETE FROM "notifiable_notifications";
130841
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130842
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
130843
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
130844
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130845
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
130846
+  (0.5ms) rollback transaction
130847
+  (0.1ms) begin transaction
130848
+  (0.0ms) SAVEPOINT active_record_1
130849
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
130850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130851
+  (0.0ms) SAVEPOINT active_record_1
130852
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
130853
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD6"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["user_id", 1]]
130854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130855
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
130856
+  (0.0ms) DELETE FROM "users";
130857
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130858
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
130859
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
130860
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130861
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
130862
+  (0.0ms) DELETE FROM "notifiable_notifications";
130863
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130864
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
130865
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
130866
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130867
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
130868
+  (0.4ms) rollback transaction
130869
+  (0.0ms) begin transaction
130870
+  (0.0ms) SAVEPOINT active_record_1
130871
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
130872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130873
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
130874
+  (0.1ms) DELETE FROM "users";
130875
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130876
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
130877
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
130878
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130879
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
130880
+  (0.0ms) DELETE FROM "notifiable_notifications";
130881
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130882
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
130883
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
130884
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130885
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
130886
+  (0.4ms) rollback transaction
130887
+  (0.0ms) begin transaction
130888
+  (0.0ms) SAVEPOINT active_record_1
130889
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
130890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130891
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
130892
+  (0.1ms) DELETE FROM "users";
130893
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130894
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
130895
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
130896
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130897
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
130898
+  (0.0ms) DELETE FROM "notifiable_notifications";
130899
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130900
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
130901
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
130902
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130903
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
130904
+  (0.4ms) rollback transaction
130905
+  (0.0ms) begin transaction
130906
+  (0.1ms) SAVEPOINT active_record_1
130907
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
130908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130909
+ Processing by Notifiable::DeviceTokensController#create as JSON
130910
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-9@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
130911
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
130912
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
130913
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
130914
+  (0.0ms) SAVEPOINT active_record_1
130915
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
130916
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["user_id", 1]]
130917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130918
+ Completed 200 OK in 4ms (ActiveRecord: 0.9ms)
130919
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
130920
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
130921
+ 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
130922
+  (0.0ms) DELETE FROM "users";
130923
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130924
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
130925
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
130926
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130927
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
130928
+  (0.1ms) DELETE FROM "notifiable_notifications";
130929
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130930
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
130931
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
130932
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130933
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
130934
+  (0.5ms) rollback transaction
130935
+  (0.1ms) begin transaction
130936
+  (0.1ms) SAVEPOINT active_record_1
130937
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
130938
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD7"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
130939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130940
+  (0.1ms) SAVEPOINT active_record_1
130941
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
130942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
130943
+ Processing by Notifiable::DeviceTokensController#create as JSON
130944
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-10@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
130945
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
130946
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
130947
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
130948
+  (0.1ms) SAVEPOINT active_record_1
130949
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
130950
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
130951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130952
+ Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
130953
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
130954
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
130955
+ 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
130956
+  (0.1ms) DELETE FROM "users";
130957
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130958
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
130959
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
130960
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130961
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
130962
+  (0.1ms) DELETE FROM "notifiable_notifications";
130963
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130964
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
130965
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
130966
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130967
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
130968
+  (0.5ms) rollback transaction
130969
+  (0.0ms) begin transaction
130970
+  (0.0ms) SAVEPOINT active_record_1
130971
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
130972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130973
+ Processing by Notifiable::DeviceTokensController#create as JSON
130974
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-11@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
130975
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
130976
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
130977
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
130978
+  (0.0ms) SAVEPOINT active_record_1
130979
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
130980
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["user_id", 1]]
130981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
130982
+ Completed 200 OK in 3ms (ActiveRecord: 0.7ms)
130983
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
130984
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
130985
+ 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
130986
+ 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
130987
+  (0.0ms) DELETE FROM "users";
130988
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130989
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
130990
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
130991
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130992
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
130993
+  (0.0ms) DELETE FROM "notifiable_notifications";
130994
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130995
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
130996
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
130997
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
130998
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
130999
+  (0.4ms) rollback transaction
131000
+  (0.1ms) begin transaction
131001
+  (0.0ms) SAVEPOINT active_record_1
131002
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
131003
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131004
+  (0.0ms) SAVEPOINT active_record_1
131005
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
131006
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["user_id", 1]]
131007
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131008
+ 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
131009
+  (0.0ms) SAVEPOINT active_record_1
131010
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
131011
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131012
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
131013
+ Parameters: {"token"=>"ABCD8", "user_email"=>"person-13@example.com", "device_token"=>{"token"=>"ABCD8"}}
131014
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
131015
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
131016
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
131017
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
131018
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
131019
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'
131020
+  (0.1ms) DELETE FROM "users";
131021
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131022
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131023
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131024
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131025
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131026
+  (0.1ms) DELETE FROM "notifiable_notifications";
131027
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131028
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131029
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131030
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131031
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131032
+  (0.5ms) rollback transaction
131033
+  (0.1ms) begin transaction
131034
+  (0.1ms) SAVEPOINT active_record_1
131035
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
131036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131037
+  (0.1ms) SAVEPOINT active_record_1
131038
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
131039
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["user_id", 1]]
131040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131041
+ 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
131042
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
131043
+ Parameters: {"token"=>"ABCD9", "device_token"=>{"token"=>"ABCD9"}}
131044
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
131045
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
131046
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
131047
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'
131048
+  (0.1ms) DELETE FROM "users";
131049
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131050
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131051
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131052
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131053
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131054
+  (0.1ms) DELETE FROM "notifiable_notifications";
131055
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131056
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131057
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131058
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131059
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131060
+  (0.4ms) rollback transaction
131061
+  (0.1ms) begin transaction
131062
+  (0.0ms) SAVEPOINT active_record_1
131063
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
131064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131065
+  (0.0ms) SAVEPOINT active_record_1
131066
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
131067
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["user_id", 1]]
131068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131069
+ 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
131070
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
131071
+ Parameters: {"token"=>"ABCD10", "user_email"=>"person-15@example.com", "device_token"=>{"token"=>"ABCD10"}}
131072
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
131073
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
131074
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
131075
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
131076
+  (0.0ms) SAVEPOINT active_record_1
131077
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
131078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131079
+ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
131080
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10'
131081
+  (0.0ms) DELETE FROM "users";
131082
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131083
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131084
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131085
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131086
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131087
+  (0.1ms) DELETE FROM "notifiable_notifications";
131088
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131089
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131090
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131091
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131092
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131093
+  (0.4ms) rollback transaction
131094
+  (0.1ms) begin transaction
131095
+  (0.0ms) SAVEPOINT active_record_1
131096
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
131097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131098
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
131099
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-16@example.com", "device_token"=>{"token"=>"ZXY987"}}
131100
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
131101
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
131102
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
131103
+  (0.0ms) SAVEPOINT active_record_1
131104
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
131105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131106
+  (0.0ms) SAVEPOINT active_record_1
131107
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
131108
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["user_id", 2]]
131109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131110
+ 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
131111
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11'
131112
+  (0.1ms) DELETE FROM "users";
131113
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131114
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131115
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131116
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131117
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131118
+  (0.1ms) DELETE FROM "notifiable_notifications";
131119
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131120
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131121
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131122
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131123
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131124
+  (0.4ms) rollback transaction
131125
+  (0.0ms) begin transaction
131126
+ Processing by Notifiable::DeviceTokensController#create as JSON
131127
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
131128
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
131129
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
131130
+  (0.0ms) SAVEPOINT active_record_1
131131
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
131132
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Thu, 13 Feb 2014 11:21:42 UTC +00:00]]
131133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131134
+ Completed 200 OK in 3ms (ActiveRecord: 0.7ms)
131135
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
131136
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
131137
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
131138
+  (0.0ms) SELECT COUNT(*) FROM "users"
131139
+  (0.1ms) DELETE FROM "users";
131140
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131141
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131142
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131143
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131144
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131145
+  (0.0ms) DELETE FROM "notifiable_notifications";
131146
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131147
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131148
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131149
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131150
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131151
+  (0.5ms) rollback transaction
131152
+  (0.3ms) begin transaction
131153
+  (0.1ms) SAVEPOINT active_record_1
131154
+ SQL (5.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00]]
131155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131156
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
131157
+  (0.4ms) DELETE FROM "users";
131158
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131159
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131160
+  (1.4ms) DELETE FROM "notifiable_device_tokens";
131161
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131162
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131163
+  (0.0ms) DELETE FROM "notifiable_notifications";
131164
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131165
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131166
+  (0.3ms) DELETE FROM "notifiable_notification_device_tokens";
131167
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131168
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131169
+  (0.4ms) rollback transaction
131170
+  (0.0ms) begin transaction
131171
+  (0.0ms) SAVEPOINT active_record_1
131172
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00]]
131173
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131174
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
131175
+  (0.1ms) DELETE FROM "users";
131176
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131177
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131178
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
131179
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131180
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131181
+  (0.0ms) DELETE FROM "notifiable_notifications";
131182
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131183
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131184
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131185
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131186
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131187
+  (0.4ms) rollback transaction
131188
+  (0.1ms) begin transaction
131189
+  (0.0ms) SAVEPOINT active_record_1
131190
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
131191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131192
+  (0.1ms) SAVEPOINT active_record_1
131193
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
131194
+ SQL (1.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["user_id", 1]]
131195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131196
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
131197
+  (0.1ms) DELETE FROM "users";
131198
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131199
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131200
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131201
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131202
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131203
+  (0.1ms) DELETE FROM "notifiable_notifications";
131204
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131205
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131206
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131207
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131208
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131209
+  (0.4ms) rollback transaction
131210
+  (0.0ms) begin transaction
131211
+  (0.0ms) SAVEPOINT active_record_1
131212
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
131213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131214
+  (0.1ms) SAVEPOINT active_record_1
131215
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
131216
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["user_id", 1]]
131217
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131218
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
131219
+  (0.0ms) SAVEPOINT active_record_1
131220
+ SQL (0.2ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["device_token_id", 1], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00]]
131221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131222
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
131223
+  (0.0ms) DELETE FROM "users";
131224
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131225
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131226
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131227
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131228
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131229
+  (0.0ms) DELETE FROM "notifiable_notifications";
131230
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131231
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131232
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131233
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131234
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131235
+  (0.4ms) rollback transaction
131236
+  (0.0ms) begin transaction
131237
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
131238
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
131239
+  (0.1ms) DELETE FROM "users";
131240
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131241
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131242
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
131243
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131244
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131245
+  (0.0ms) DELETE FROM "notifiable_notifications";
131246
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131247
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131248
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131249
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131250
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131251
+  (0.4ms) rollback transaction
131252
+  (0.0ms) begin transaction
131253
+  (0.0ms) SAVEPOINT active_record_1
131254
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
131255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131256
+  (0.0ms) SAVEPOINT active_record_1
131257
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
131258
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["user_id", 1]]
131259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131260
+ 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
131261
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
131262
+ Parameters: {"token"=>"ABCD3", "device_token"=>{"token"=>"ABCD3"}}
131263
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
131264
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
131265
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
131266
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3'
131267
+  (0.0ms) DELETE FROM "users";
131268
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131269
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131270
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131271
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131272
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131273
+  (0.1ms) DELETE FROM "notifiable_notifications";
131274
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131275
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131276
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131277
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131278
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131279
+  (0.4ms) rollback transaction
131280
+  (0.0ms) begin transaction
131281
+  (0.0ms) SAVEPOINT active_record_1
131282
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
131283
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131284
+  (0.0ms) SAVEPOINT active_record_1
131285
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
131286
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["user_id", 1]]
131287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131288
+ 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
131289
+  (0.0ms) SAVEPOINT active_record_1
131290
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
131291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131292
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
131293
+ Parameters: {"token"=>"ABCD4", "user_email"=>"person-6@example.com", "device_token"=>{"token"=>"ABCD4"}}
131294
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
131295
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
131296
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
131297
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
131298
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
131299
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'
131300
+  (0.1ms) DELETE FROM "users";
131301
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131302
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131303
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
131304
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131305
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131306
+  (0.1ms) DELETE FROM "notifiable_notifications";
131307
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131308
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131309
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131310
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131311
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131312
+  (0.6ms) rollback transaction
131313
+  (0.0ms) begin transaction
131314
+  (0.0ms) SAVEPOINT active_record_1
131315
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
131316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131317
+ Processing by Notifiable::DeviceTokensController#create as JSON
131318
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-7@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
131319
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
131320
+ Unpermitted parameters: token, user_email, provider, device_token
131321
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
131322
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
131323
+  (0.0ms) SAVEPOINT active_record_1
131324
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" IS NULL LIMIT 1
131325
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
131326
+ Completed 500 Internal Server Error in 9ms (Views: 0.2ms | ActiveRecord: 0.3ms)
131327
+  (0.3ms) DELETE FROM "users";
131328
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131329
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131330
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
131331
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131332
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131333
+  (0.0ms) DELETE FROM "notifiable_notifications";
131334
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131335
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131336
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131337
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131338
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131339
+  (0.5ms) rollback transaction
131340
+  (0.0ms) begin transaction
131341
+  (0.0ms) SAVEPOINT active_record_1
131342
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
131343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131344
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
131345
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-8@example.com", "device_token"=>{"token"=>"ZXY987"}}
131346
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
131347
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
131348
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
131349
+  (0.0ms) SAVEPOINT active_record_1
131350
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
131351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131352
+  (0.0ms) SAVEPOINT active_record_1
131353
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
131354
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["user_id", 2]]
131355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131356
+ 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
131357
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
131358
+  (0.1ms) DELETE FROM "users";
131359
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131360
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131361
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131362
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131363
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131364
+  (0.1ms) DELETE FROM "notifiable_notifications";
131365
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131366
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131367
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131368
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131369
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131370
+  (0.5ms) rollback transaction
131371
+  (0.0ms) begin transaction
131372
+  (0.0ms) SAVEPOINT active_record_1
131373
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
131374
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD6"], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00]]
131375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131376
+  (0.0ms) SAVEPOINT active_record_1
131377
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
131378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131379
+ Processing by Notifiable::DeviceTokensController#create as JSON
131380
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-10@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
131381
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
131382
+ Unpermitted parameters: token, device_id, user_email, provider, device_token
131383
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
131384
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
131385
+  (0.0ms) SAVEPOINT active_record_1
131386
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD6' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
131387
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["user_id", 1], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00]]
131388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131389
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
131390
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
131391
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
131392
+ 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
131393
+  (0.1ms) DELETE FROM "users";
131394
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131395
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131396
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131397
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131398
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131399
+  (0.1ms) DELETE FROM "notifiable_notifications";
131400
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131401
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131402
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131403
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131404
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131405
+  (0.5ms) rollback transaction
131406
+  (0.1ms) begin transaction
131407
+  (0.1ms) SAVEPOINT active_record_1
131408
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
131409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131410
+ Processing by Notifiable::DeviceTokensController#create as JSON
131411
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-11@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
131412
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
131413
+ Unpermitted parameters: token, device_id, user_email, provider, device_token
131414
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
131415
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
131416
+  (0.0ms) SAVEPOINT active_record_1
131417
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" IS NULL LIMIT 1
131418
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
131419
+ Completed 500 Internal Server Error in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms)
131420
+  (0.3ms) DELETE FROM "users";
131421
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131422
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131423
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
131424
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131425
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131426
+  (0.1ms) DELETE FROM "notifiable_notifications";
131427
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131428
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131429
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131430
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131431
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131432
+  (0.4ms) rollback transaction
131433
+  (0.1ms) begin transaction
131434
+ Processing by Notifiable::DeviceTokensController#create as JSON
131435
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
131436
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
131437
+ Unpermitted parameters: token, provider, device_token
131438
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
131439
+  (0.0ms) SAVEPOINT active_record_1
131440
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" IS NULL LIMIT 1
131441
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
131442
+ Completed 500 Internal Server Error in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
131443
+  (0.2ms) DELETE FROM "users";
131444
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131445
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131446
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
131447
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131448
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131449
+  (0.0ms) DELETE FROM "notifiable_notifications";
131450
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131451
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131452
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131453
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131454
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131455
+  (0.4ms) rollback transaction
131456
+  (0.1ms) begin transaction
131457
+  (0.1ms) SAVEPOINT active_record_1
131458
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
131459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131460
+  (0.1ms) SAVEPOINT active_record_1
131461
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
131462
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["user_id", 1]]
131463
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131464
+ 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
131465
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
131466
+ Parameters: {"token"=>"ABCD7", "user_email"=>"person-12@example.com", "device_token"=>{"token"=>"ABCD7"}}
131467
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
131468
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
131469
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
131470
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
131471
+  (0.1ms) SAVEPOINT active_record_1
131472
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
131473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131474
+ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
131475
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
131476
+  (0.1ms) DELETE FROM "users";
131477
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131478
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131479
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131480
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131481
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131482
+  (0.1ms) DELETE FROM "notifiable_notifications";
131483
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131484
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131485
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131486
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131487
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131488
+  (0.5ms) rollback transaction
131489
+  (0.1ms) begin transaction
131490
+  (0.0ms) SAVEPOINT active_record_1
131491
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
131492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131493
+  (0.0ms) SAVEPOINT active_record_1
131494
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1
131495
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["user_id", 1]]
131496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131497
+  (0.1ms) SAVEPOINT active_record_1
131498
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00]]
131499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131500
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
131501
+  (0.0ms) DELETE FROM "users";
131502
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131503
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131504
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131505
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131506
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131507
+  (0.0ms) DELETE FROM "notifiable_notifications";
131508
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131509
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131510
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131511
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131512
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131513
+  (0.5ms) rollback transaction
131514
+  (0.1ms) begin transaction
131515
+  (0.1ms) SAVEPOINT active_record_1
131516
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00]]
131517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131518
+  (0.1ms) SAVEPOINT active_record_1
131519
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
131520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131521
+  (0.0ms) SAVEPOINT active_record_1
131522
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
131523
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["user_id", 1]]
131524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131525
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
131526
+  (0.0ms) SAVEPOINT active_record_1
131527
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00]]
131528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131529
+  (0.0ms) SAVEPOINT active_record_1
131530
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
131531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131532
+  (0.0ms) SAVEPOINT active_record_1
131533
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
131534
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["user_id", 2]]
131535
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131536
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
131537
+  (0.0ms) SAVEPOINT active_record_1
131538
+ SQL (0.2ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00]]
131539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131540
+  (0.0ms) SAVEPOINT active_record_1
131541
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00]]
131542
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131543
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
131544
+ Notifiable::NotificationDeviceToken Load (0.1ms) SELECT "notifiable_notification_device_tokens".* FROM "notifiable_notification_device_tokens"
131545
+ 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]]
131546
+ 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]]
131547
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
131548
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 2]]
131549
+ 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]]
131550
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
131551
+  (0.0ms) DELETE FROM "users";
131552
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131553
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131554
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131555
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131556
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131557
+  (0.1ms) DELETE FROM "notifiable_notifications";
131558
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131559
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131560
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131561
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131562
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131563
+  (0.5ms) rollback transaction
131564
+  (0.0ms) begin transaction
131565
+  (0.0ms) SAVEPOINT active_record_1
131566
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00]]
131567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131568
+  (0.0ms) SAVEPOINT active_record_1
131569
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
131570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131571
+  (0.0ms) SAVEPOINT active_record_1
131572
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
131573
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["user_id", 1]]
131574
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131575
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
131576
+  (0.0ms) SAVEPOINT active_record_1
131577
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
131578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131579
+  (0.0ms) SAVEPOINT active_record_1
131580
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
131581
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["user_id", 2]]
131582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131583
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
131584
+  (0.0ms) SAVEPOINT active_record_1
131585
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00]]
131586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131587
+  (0.0ms) SAVEPOINT active_record_1
131588
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 12:43:45 UTC +00:00]]
131589
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131590
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
131591
+ Notifiable::NotificationDeviceToken Load (0.1ms) SELECT "notifiable_notification_device_tokens".* FROM "notifiable_notification_device_tokens"
131592
+ 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]]
131593
+ 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]]
131594
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
131595
+ 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]]
131596
+ 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]]
131597
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
131598
+  (0.0ms) DELETE FROM "users";
131599
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131600
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131601
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131602
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131603
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131604
+  (0.0ms) DELETE FROM "notifiable_notifications";
131605
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131606
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131607
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131608
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131609
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131610
+  (0.5ms) rollback transaction
131611
+  (0.3ms) begin transaction
131612
+  (0.0ms) SAVEPOINT active_record_1
131613
+ SQL (2.1ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00]]
131614
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131615
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
131616
+  (0.1ms) DELETE FROM "users";
131617
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131618
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131619
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
131620
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131621
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131622
+  (0.0ms) DELETE FROM "notifiable_notifications";
131623
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131624
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131625
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131626
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131627
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131628
+  (6.6ms) rollback transaction
131629
+  (0.1ms) begin transaction
131630
+  (0.1ms) SAVEPOINT active_record_1
131631
+ SQL (0.6ms) INSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00]]
131632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131633
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
131634
+  (0.1ms) DELETE FROM "users";
131635
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131636
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131637
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
131638
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131639
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131640
+  (0.0ms) DELETE FROM "notifiable_notifications";
131641
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131642
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131643
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131644
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131645
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131646
+  (0.5ms) rollback transaction
131647
+  (0.1ms) begin transaction
131648
+  (0.1ms) SAVEPOINT active_record_1
131649
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
131650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131651
+  (0.0ms) SAVEPOINT active_record_1
131652
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
131653
+ SQL (1.0ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["user_id", 1]]
131654
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131655
+ 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
131656
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
131657
+ Parameters: {"token"=>"ABCD1", "device_token"=>{"token"=>"ABCD1"}}
131658
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
131659
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
131660
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
131661
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1'
131662
+  (0.1ms) DELETE FROM "users";
131663
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131664
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131665
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131666
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131667
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131668
+  (0.1ms) DELETE FROM "notifiable_notifications";
131669
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131670
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131671
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131672
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131673
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131674
+  (0.5ms) rollback transaction
131675
+  (0.1ms) begin transaction
131676
+  (0.0ms) SAVEPOINT active_record_1
131677
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
131678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131679
+ Processing by Notifiable::DeviceTokensController#create as JSON
131680
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-2@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
131681
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
131682
+ Unpermitted parameters: token, user_email, provider, device_token
131683
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
131684
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
131685
+  (0.0ms) SAVEPOINT active_record_1
131686
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" IS NULL LIMIT 1
131687
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
131688
+ Completed 500 Internal Server Error in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms)
131689
+  (0.3ms) DELETE FROM "users";
131690
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131691
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131692
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
131693
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131694
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131695
+  (0.0ms) DELETE FROM "notifiable_notifications";
131696
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131697
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131698
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131699
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131700
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131701
+  (0.5ms) rollback transaction
131702
+  (0.1ms) begin transaction
131703
+  (0.1ms) SAVEPOINT active_record_1
131704
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
131705
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131706
+  (0.1ms) SAVEPOINT active_record_1
131707
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
131708
+ SQL (0.6ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["user_id", 1]]
131709
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131710
+ 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
131711
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
131712
+ Parameters: {"token"=>"ABCD2", "user_email"=>"person-3@example.com", "device_token"=>{"token"=>"ABCD2"}}
131713
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
131714
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
131715
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
131716
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
131717
+  (0.0ms) SAVEPOINT active_record_1
131718
+ SQL (0.2ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
131719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131720
+ Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
131721
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2'
131722
+  (0.1ms) DELETE FROM "users";
131723
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131724
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131725
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131726
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131727
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131728
+  (0.1ms) DELETE FROM "notifiable_notifications";
131729
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131730
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131731
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131732
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131733
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131734
+  (0.6ms) rollback transaction
131735
+  (0.1ms) begin transaction
131736
+  (0.1ms) SAVEPOINT active_record_1
131737
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
131738
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131739
+  (0.0ms) SAVEPOINT active_record_1
131740
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
131741
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["user_id", 1]]
131742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131743
+ 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
131744
+  (0.0ms) SAVEPOINT active_record_1
131745
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
131746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131747
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
131748
+ Parameters: {"token"=>"ABCD3", "user_email"=>"person-5@example.com", "device_token"=>{"token"=>"ABCD3"}}
131749
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
131750
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
131751
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
131752
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
131753
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
131754
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3'
131755
+  (0.1ms) DELETE FROM "users";
131756
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131757
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131758
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131759
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131760
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131761
+  (0.1ms) DELETE FROM "notifiable_notifications";
131762
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131763
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131764
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131765
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131766
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131767
+  (0.5ms) rollback transaction
131768
+  (0.1ms) begin transaction
131769
+  (0.1ms) SAVEPOINT active_record_1
131770
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
131771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131772
+ Processing by Notifiable::DeviceTokensController#create as JSON
131773
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-6@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
131774
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
131775
+ Unpermitted parameters: token, user_email, provider, device_token
131776
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
131777
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
131778
+  (0.0ms) SAVEPOINT active_record_1
131779
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" IS NULL LIMIT 1
131780
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
131781
+ Completed 500 Internal Server Error in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)
131782
+  (0.4ms) DELETE FROM "users";
131783
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131784
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131785
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
131786
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131787
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131788
+  (0.1ms) DELETE FROM "notifiable_notifications";
131789
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131790
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131791
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131792
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131793
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131794
+  (0.4ms) rollback transaction
131795
+  (0.0ms) begin transaction
131796
+  (0.0ms) SAVEPOINT active_record_1
131797
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
131798
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD4"], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00]]
131799
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131800
+  (0.0ms) SAVEPOINT active_record_1
131801
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
131802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131803
+ Processing by Notifiable::DeviceTokensController#create as JSON
131804
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-7@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
131805
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
131806
+ Unpermitted parameters: token, user_email, provider, device_token
131807
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
131808
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
131809
+  (0.0ms) SAVEPOINT active_record_1
131810
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD4' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
131811
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["user_id", 1], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00]]
131812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131813
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
131814
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
131815
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
131816
+ 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
131817
+  (0.0ms) DELETE FROM "users";
131818
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131819
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131820
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131821
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131822
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131823
+  (0.1ms) DELETE FROM "notifiable_notifications";
131824
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131825
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131826
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131827
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131828
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131829
+  (0.5ms) rollback transaction
131830
+  (0.0ms) begin transaction
131831
+  (0.0ms) SAVEPOINT active_record_1
131832
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
131833
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131834
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
131835
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-8@example.com", "device_token"=>{"token"=>"ZXY987"}}
131836
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
131837
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
131838
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
131839
+  (0.0ms) SAVEPOINT active_record_1
131840
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
131841
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131842
+  (0.0ms) SAVEPOINT active_record_1
131843
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
131844
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["user_id", 2]]
131845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131846
+ 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
131847
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
131848
+  (0.0ms) DELETE FROM "users";
131849
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131850
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131851
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131852
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131853
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131854
+  (0.1ms) DELETE FROM "notifiable_notifications";
131855
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131856
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131857
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131858
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131859
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131860
+  (0.5ms) rollback transaction
131861
+  (0.1ms) begin transaction
131862
+ Processing by Notifiable::DeviceTokensController#create as JSON
131863
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
131864
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
131865
+ Unpermitted parameters: token, provider, device_token
131866
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
131867
+  (0.0ms) SAVEPOINT active_record_1
131868
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" IS NULL LIMIT 1
131869
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
131870
+ Completed 500 Internal Server Error in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
131871
+  (0.2ms) DELETE FROM "users";
131872
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131873
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
131874
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
131875
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131876
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131877
+  (0.1ms) DELETE FROM "notifiable_notifications";
131878
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131879
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131880
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131881
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131882
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131883
+  (0.4ms) rollback transaction
131884
+  (0.0ms) begin transaction
131885
+  (0.0ms) SAVEPOINT active_record_1
131886
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
131887
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131888
+  (0.0ms) SAVEPOINT active_record_1
131889
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
131890
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["user_id", 1]]
131891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131892
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
131893
+  (0.0ms) SAVEPOINT active_record_1
131894
+ SQL (0.2ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["device_token_id", 1], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00]]
131895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131896
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
131897
+  (0.0ms) DELETE FROM "users";
131898
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131899
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131900
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131901
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131902
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131903
+  (0.0ms) DELETE FROM "notifiable_notifications";
131904
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131905
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131906
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131907
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131908
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131909
+  (0.4ms) rollback transaction
131910
+  (0.0ms) begin transaction
131911
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
131912
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
131913
+  (0.2ms) DELETE FROM "users";
131914
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131915
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131916
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
131917
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131918
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131919
+  (0.1ms) DELETE FROM "notifiable_notifications";
131920
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131921
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131922
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
131923
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131924
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131925
+  (0.4ms) rollback transaction
131926
+  (0.0ms) begin transaction
131927
+  (0.0ms) SAVEPOINT active_record_1
131928
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00]]
131929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131930
+  (0.0ms) SAVEPOINT active_record_1
131931
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
131932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131933
+  (0.0ms) SAVEPOINT active_record_1
131934
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
131935
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["user_id", 1]]
131936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131937
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
131938
+  (0.0ms) SAVEPOINT active_record_1
131939
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
131940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131941
+  (0.0ms) SAVEPOINT active_record_1
131942
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
131943
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["user_id", 2]]
131944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131945
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
131946
+  (0.0ms) SAVEPOINT active_record_1
131947
+ SQL (0.2ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00]]
131948
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131949
+  (0.0ms) SAVEPOINT active_record_1
131950
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00]]
131951
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131952
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
131953
+ Notifiable::NotificationDeviceToken Load (0.1ms) SELECT "notifiable_notification_device_tokens".* FROM "notifiable_notification_device_tokens"
131954
+ Notifiable::Notification Load (0.2ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
131955
+ 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]]
131956
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
131957
+ 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]]
131958
+ 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]]
131959
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
131960
+  (0.1ms) DELETE FROM "users";
131961
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131962
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
131963
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
131964
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131965
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
131966
+  (0.0ms) DELETE FROM "notifiable_notifications";
131967
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131968
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
131969
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
131970
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131971
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
131972
+  (0.5ms) rollback transaction
131973
+  (0.0ms) begin transaction
131974
+  (0.0ms) SAVEPOINT active_record_1
131975
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00]]
131976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131977
+  (0.0ms) SAVEPOINT active_record_1
131978
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
131979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131980
+  (0.0ms) SAVEPOINT active_record_1
131981
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
131982
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["user_id", 1]]
131983
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131984
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
131985
+  (0.0ms) SAVEPOINT active_record_1
131986
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00]]
131987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131988
+  (0.0ms) SAVEPOINT active_record_1
131989
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
131990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131991
+  (0.0ms) SAVEPOINT active_record_1
131992
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
131993
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["user_id", 2]]
131994
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131995
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
131996
+  (0.0ms) SAVEPOINT active_record_1
131997
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00]]
131998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131999
+  (0.0ms) SAVEPOINT active_record_1
132000
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00]]
132001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132002
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
132003
+ Notifiable::NotificationDeviceToken Load (0.1ms) SELECT "notifiable_notification_device_tokens".* FROM "notifiable_notification_device_tokens"
132004
+ 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]]
132005
+ 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]]
132006
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132007
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 2]]
132008
+ 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]]
132009
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
132010
+  (0.0ms) DELETE FROM "users";
132011
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132012
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132013
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132014
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132015
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132016
+  (0.0ms) DELETE FROM "notifiable_notifications";
132017
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132018
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132019
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132020
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132021
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132022
+  (0.5ms) rollback transaction
132023
+  (0.1ms) begin transaction
132024
+  (0.1ms) SAVEPOINT active_record_1
132025
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
132026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132027
+  (0.0ms) SAVEPOINT active_record_1
132028
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1
132029
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["user_id", 1]]
132030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132031
+  (0.1ms) SAVEPOINT active_record_1
132032
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00]]
132033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132034
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132035
+  (0.0ms) DELETE FROM "users";
132036
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132037
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132038
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132039
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132040
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132041
+  (0.0ms) DELETE FROM "notifiable_notifications";
132042
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132043
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132044
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132045
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132046
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132047
+  (0.4ms) rollback transaction
132048
+  (0.1ms) begin transaction
132049
+  (0.1ms) SAVEPOINT active_record_1
132050
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
132051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132052
+  (0.0ms) SAVEPOINT active_record_1
132053
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
132054
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD11"], ["updated_at", Thu, 13 Feb 2014 12:48:20 UTC +00:00], ["user_id", 1]]
132055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132056
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132057
+  (0.0ms) DELETE FROM "users";
132058
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132059
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132060
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132061
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132062
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132063
+  (0.0ms) DELETE FROM "notifiable_notifications";
132064
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132065
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132066
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132067
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132068
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132069
+  (0.4ms) rollback transaction
132070
+  (0.3ms) begin transaction
132071
+  (0.0ms) SAVEPOINT active_record_1
132072
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
132073
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132074
+ Processing by Notifiable::DeviceTokensController#create as JSON
132075
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-1@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
132076
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
132077
+ Unpermitted parameters: token, user_email, provider, device_token
132078
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
132079
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
132080
+  (0.0ms) SAVEPOINT active_record_1
132081
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" IS NULL LIMIT 1
132082
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
132083
+ Completed 500 Internal Server Error in 41ms (Views: 0.2ms | ActiveRecord: 0.6ms)
132084
+  (0.7ms) DELETE FROM "users";
132085
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132086
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
132087
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
132088
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132089
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132090
+  (0.1ms) DELETE FROM "notifiable_notifications";
132091
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132092
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132093
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132094
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132095
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132096
+  (6.6ms) rollback transaction
132097
+  (0.3ms) begin transaction
132098
+  (0.0ms) SAVEPOINT active_record_1
132099
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
132100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132101
+ Processing by Notifiable::DeviceTokensController#create as JSON
132102
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-1@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
132103
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
132104
+ Unpermitted parameters: user_email, device_token
132105
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
132106
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
132107
+  (0.0ms) SAVEPOINT active_record_1
132108
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
132109
+ SQL (2.8ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:40 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Thu, 13 Feb 2014 12:49:40 UTC +00:00], ["user_id", 1]]
132110
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132111
+ Completed 200 OK in 20ms (ActiveRecord: 3.4ms)
132112
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
132113
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132114
+ 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
132115
+  (0.0ms) DELETE FROM "users";
132116
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132117
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132118
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132119
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132120
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132121
+  (0.1ms) DELETE FROM "notifiable_notifications";
132122
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132123
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132124
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132125
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132126
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132127
+  (6.4ms) rollback transaction
132128
+  (0.3ms) begin transaction
132129
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
132130
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
132131
+  (0.3ms) DELETE FROM "users";
132132
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132133
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
132134
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
132135
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132136
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132137
+  (0.1ms) DELETE FROM "notifiable_notifications";
132138
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132139
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132140
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132141
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132142
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132143
+  (6.6ms) rollback transaction
132144
+  (0.1ms) begin transaction
132145
+  (0.1ms) SAVEPOINT active_record_1
132146
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
132147
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132148
+  (0.1ms) SAVEPOINT active_record_1
132149
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
132150
+ SQL (2.9ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["user_id", 1]]
132151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132152
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132153
+  (0.1ms) SAVEPOINT active_record_1
132154
+ SQL (0.3ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["device_token_id", 1], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132156
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
132157
+  (0.0ms) DELETE FROM "users";
132158
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132159
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132160
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132161
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132162
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132163
+  (0.1ms) DELETE FROM "notifiable_notifications";
132164
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132165
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132166
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132167
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132168
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132169
+  (0.4ms) rollback transaction
132170
+  (0.1ms) begin transaction
132171
+  (0.0ms) SAVEPOINT active_record_1
132172
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
132173
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD2"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132175
+  (0.0ms) SAVEPOINT active_record_1
132176
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
132177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132178
+ Processing by Notifiable::DeviceTokensController#create as JSON
132179
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-3@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
132180
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
132181
+ Unpermitted parameters: user_email, device_token
132182
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
132183
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
132184
+  (0.0ms) SAVEPOINT active_record_1
132185
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
132186
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132188
+ Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
132189
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
132190
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132191
+ 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
132192
+  (0.0ms) DELETE FROM "users";
132193
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132194
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132195
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132196
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132197
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132198
+  (0.1ms) DELETE FROM "notifiable_notifications";
132199
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132200
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132201
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132202
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132203
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132204
+  (0.5ms) rollback transaction
132205
+  (0.1ms) begin transaction
132206
+  (0.0ms) SAVEPOINT active_record_1
132207
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
132208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132209
+  (0.0ms) SAVEPOINT active_record_1
132210
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
132211
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["user_id", 1]]
132212
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132213
+ 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
132214
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
132215
+ Parameters: {"token"=>"ABCD3", "device_token"=>{"token"=>"ABCD3"}}
132216
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
132217
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
132218
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
132219
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3'
132220
+  (0.1ms) DELETE FROM "users";
132221
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132222
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132223
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132224
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132225
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132226
+  (0.1ms) DELETE FROM "notifiable_notifications";
132227
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132228
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132229
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132230
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132231
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132232
+  (0.4ms) rollback transaction
132233
+  (0.0ms) begin transaction
132234
+  (0.0ms) SAVEPOINT active_record_1
132235
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
132236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132237
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
132238
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-5@example.com", "device_token"=>{"token"=>"ZXY987"}}
132239
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
132240
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
132241
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
132242
+  (0.0ms) SAVEPOINT active_record_1
132243
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
132244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132245
+  (0.1ms) SAVEPOINT active_record_1
132246
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
132247
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["user_id", 2]]
132248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132249
+ 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
132250
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'
132251
+  (0.1ms) DELETE FROM "users";
132252
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132253
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132254
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132255
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132256
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132257
+  (0.1ms) DELETE FROM "notifiable_notifications";
132258
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132259
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132260
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132261
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132262
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132263
+  (0.5ms) rollback transaction
132264
+  (0.1ms) begin transaction
132265
+  (0.0ms) SAVEPOINT active_record_1
132266
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
132267
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132268
+  (0.0ms) SAVEPOINT active_record_1
132269
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
132270
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["user_id", 1]]
132271
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132272
+ 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
132273
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
132274
+ Parameters: {"token"=>"ABCD5", "user_email"=>"person-7@example.com", "device_token"=>{"token"=>"ABCD5"}}
132275
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
132276
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
132277
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
132278
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
132279
+  (0.0ms) SAVEPOINT active_record_1
132280
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
132281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132282
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
132283
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
132284
+  (0.0ms) DELETE FROM "users";
132285
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132286
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132287
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132288
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132289
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132290
+  (0.1ms) DELETE FROM "notifiable_notifications";
132291
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132292
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132293
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132294
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132295
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132296
+  (0.5ms) rollback transaction
132297
+  (0.1ms) begin transaction
132298
+  (0.0ms) SAVEPOINT active_record_1
132299
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
132300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132301
+  (0.0ms) SAVEPOINT active_record_1
132302
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
132303
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["user_id", 1]]
132304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132305
+ 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
132306
+  (0.0ms) SAVEPOINT active_record_1
132307
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
132308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132309
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
132310
+ Parameters: {"token"=>"ABCD6", "user_email"=>"person-9@example.com", "device_token"=>{"token"=>"ABCD6"}}
132311
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
132312
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
132313
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
132314
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
132315
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
132316
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'
132317
+  (0.1ms) DELETE FROM "users";
132318
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132319
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132320
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132321
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132322
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132323
+  (0.1ms) DELETE FROM "notifiable_notifications";
132324
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132325
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132326
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132327
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132328
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132329
+  (0.5ms) rollback transaction
132330
+  (0.0ms) begin transaction
132331
+ Processing by Notifiable::DeviceTokensController#create as JSON
132332
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
132333
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
132334
+ Unpermitted parameters: device_token
132335
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
132336
+  (0.0ms) SAVEPOINT active_record_1
132337
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
132338
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132340
+ Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
132341
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
132342
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
132343
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
132344
+  (0.1ms) SELECT COUNT(*) FROM "users"
132345
+  (0.1ms) DELETE FROM "users";
132346
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132347
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132348
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132349
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132350
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132351
+  (0.1ms) DELETE FROM "notifiable_notifications";
132352
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132353
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132354
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132355
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132356
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132357
+  (0.4ms) rollback transaction
132358
+  (0.1ms) begin transaction
132359
+  (0.0ms) SAVEPOINT active_record_1
132360
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
132361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132362
+ Processing by Notifiable::DeviceTokensController#create as JSON
132363
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-10@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
132364
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
132365
+ Unpermitted parameters: user_email, device_token
132366
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
132367
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
132368
+  (0.0ms) SAVEPOINT active_record_1
132369
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
132370
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["user_id", 1]]
132371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132372
+ Completed 200 OK in 4ms (ActiveRecord: 0.9ms)
132373
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
132374
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132375
+ 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
132376
+ 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
132377
+  (0.1ms) DELETE FROM "users";
132378
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132379
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132380
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132381
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132382
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132383
+  (0.1ms) DELETE FROM "notifiable_notifications";
132384
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132385
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132386
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132387
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132388
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132389
+  (0.4ms) rollback transaction
132390
+  (0.0ms) begin transaction
132391
+  (0.0ms) SAVEPOINT active_record_1
132392
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
132393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132394
+ Processing by Notifiable::DeviceTokensController#create as JSON
132395
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-11@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
132396
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
132397
+ Unpermitted parameters: user_email, device_token
132398
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
132399
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
132400
+  (0.0ms) SAVEPOINT active_record_1
132401
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
132402
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["user_id", 1]]
132403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132404
+ Completed 200 OK in 3ms (ActiveRecord: 0.7ms)
132405
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
132406
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132407
+ 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
132408
+  (0.1ms) DELETE FROM "users";
132409
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132410
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132411
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132412
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132413
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132414
+  (0.1ms) DELETE FROM "notifiable_notifications";
132415
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132416
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132417
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132418
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132419
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132420
+  (0.5ms) rollback transaction
132421
+  (0.1ms) begin transaction
132422
+  (0.0ms) SAVEPOINT active_record_1
132423
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132425
+  (0.0ms) SAVEPOINT active_record_1
132426
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
132427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132428
+  (0.0ms) SAVEPOINT active_record_1
132429
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
132430
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["user_id", 1]]
132431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132432
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132433
+  (0.0ms) SAVEPOINT active_record_1
132434
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132436
+  (0.0ms) SAVEPOINT active_record_1
132437
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
132438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132439
+  (0.0ms) SAVEPOINT active_record_1
132440
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
132441
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["user_id", 2]]
132442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132443
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
132444
+  (0.0ms) SAVEPOINT active_record_1
132445
+ SQL (0.2ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132447
+  (0.0ms) SAVEPOINT active_record_1
132448
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132450
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
132451
+ Notifiable::NotificationDeviceToken Load (0.1ms) SELECT "notifiable_notification_device_tokens".* FROM "notifiable_notification_device_tokens"
132452
+ 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]]
132453
+ 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]]
132454
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132455
+ 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]]
132456
+ 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]]
132457
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
132458
+  (0.0ms) DELETE FROM "users";
132459
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132460
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132461
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132462
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132463
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132464
+  (0.0ms) DELETE FROM "notifiable_notifications";
132465
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132466
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132467
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132468
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132469
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132470
+  (0.5ms) rollback transaction
132471
+  (0.0ms) begin transaction
132472
+  (0.0ms) SAVEPOINT active_record_1
132473
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132475
+  (0.0ms) SAVEPOINT active_record_1
132476
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
132477
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132478
+  (0.1ms) SAVEPOINT active_record_1
132479
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
132480
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["user_id", 1]]
132481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132482
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132483
+  (0.0ms) SAVEPOINT active_record_1
132484
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
132485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132486
+  (0.1ms) SAVEPOINT active_record_1
132487
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
132488
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["user_id", 2]]
132489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132490
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
132491
+  (0.0ms) SAVEPOINT active_record_1
132492
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132493
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132494
+  (0.0ms) SAVEPOINT active_record_1
132495
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132497
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
132498
+ Notifiable::NotificationDeviceToken Load (0.1ms) SELECT "notifiable_notification_device_tokens".* FROM "notifiable_notification_device_tokens"
132499
+ 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]]
132500
+ 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]]
132501
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132502
+ 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]]
132503
+ 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]]
132504
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
132505
+  (0.0ms) DELETE FROM "users";
132506
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132507
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132508
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132509
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132510
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132511
+  (0.0ms) DELETE FROM "notifiable_notifications";
132512
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132513
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132514
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132515
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132516
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132517
+  (0.5ms) rollback transaction
132518
+  (0.1ms) begin transaction
132519
+  (0.0ms) SAVEPOINT active_record_1
132520
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
132521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132522
+  (0.0ms) SAVEPOINT active_record_1
132523
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1
132524
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["user_id", 1]]
132525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132526
+  (0.1ms) SAVEPOINT active_record_1
132527
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132529
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132530
+  (0.0ms) DELETE FROM "users";
132531
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132532
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132533
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132534
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132535
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132536
+  (0.0ms) DELETE FROM "notifiable_notifications";
132537
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132538
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132539
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132540
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132541
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132542
+  (0.5ms) rollback transaction
132543
+  (0.1ms) begin transaction
132544
+  (0.0ms) SAVEPOINT active_record_1
132545
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
132546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132547
+  (0.0ms) SAVEPOINT active_record_1
132548
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
132549
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD11"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["user_id", 1]]
132550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132551
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132552
+  (0.0ms) DELETE FROM "users";
132553
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132554
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
132555
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132556
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132557
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132558
+  (0.1ms) DELETE FROM "notifiable_notifications";
132559
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132560
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132561
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132562
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132563
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132564
+  (0.4ms) rollback transaction
132565
+  (0.1ms) begin transaction
132566
+  (0.0ms) SAVEPOINT active_record_1
132567
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132568
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132569
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
132570
+  (0.1ms) DELETE FROM "users";
132571
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132572
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132573
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
132574
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132575
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132576
+  (0.0ms) DELETE FROM "notifiable_notifications";
132577
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132578
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132579
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132580
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132581
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132582
+  (0.4ms) rollback transaction
132583
+  (0.0ms) begin transaction
132584
+  (0.0ms) SAVEPOINT active_record_1
132585
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 12:49:44 UTC +00:00]]
132586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132587
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
132588
+  (0.1ms) DELETE FROM "users";
132589
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132590
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132591
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
132592
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132593
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132594
+  (0.0ms) DELETE FROM "notifiable_notifications";
132595
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132596
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132597
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132598
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132599
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132600
+  (0.4ms) rollback transaction
132601
+  (0.3ms) begin transaction
132602
+  (0.1ms) SAVEPOINT active_record_1
132603
+ SQL (3.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
132604
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132605
+  (0.0ms) SAVEPOINT active_record_1
132606
+ SQL (0.8ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
132607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132608
+  (0.1ms) SAVEPOINT active_record_1
132609
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
132610
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["user_id", 1]]
132611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132612
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132613
+  (0.1ms) SAVEPOINT active_record_1
132614
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
132615
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132616
+  (0.1ms) SAVEPOINT active_record_1
132617
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
132618
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["user_id", 2]]
132619
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132620
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
132621
+  (0.1ms) SAVEPOINT active_record_1
132622
+ SQL (0.3ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
132623
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132624
+  (0.0ms) SAVEPOINT active_record_1
132625
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
132626
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132627
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
132628
+ Notifiable::NotificationDeviceToken Load (0.1ms) SELECT "notifiable_notification_device_tokens".* FROM "notifiable_notification_device_tokens"
132629
+ Notifiable::Notification Load (0.2ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
132630
+ 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]]
132631
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132632
+ 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]]
132633
+ 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]]
132634
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
132635
+  (0.0ms) DELETE FROM "users";
132636
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132637
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132638
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132639
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132640
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132641
+  (0.0ms) DELETE FROM "notifiable_notifications";
132642
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132643
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132644
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132645
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132646
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132647
+  (0.4ms) rollback transaction
132648
+  (0.1ms) begin transaction
132649
+  (0.0ms) SAVEPOINT active_record_1
132650
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
132651
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132652
+  (0.0ms) SAVEPOINT active_record_1
132653
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1
132654
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["user_id", 1]]
132655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132656
+  (0.1ms) SAVEPOINT active_record_1
132657
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
132658
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132659
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132660
+  (0.0ms) DELETE FROM "users";
132661
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132662
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132663
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132664
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132665
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132666
+  (0.0ms) DELETE FROM "notifiable_notifications";
132667
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132668
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132669
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132670
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132671
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132672
+  (0.4ms) rollback transaction
132673
+  (0.1ms) begin transaction
132674
+  (0.0ms) SAVEPOINT active_record_1
132675
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
132676
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132677
+  (0.0ms) SAVEPOINT active_record_1
132678
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
132679
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132680
+  (0.0ms) SAVEPOINT active_record_1
132681
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
132682
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["user_id", 1]]
132683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132684
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132685
+  (0.0ms) SAVEPOINT active_record_1
132686
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
132687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132688
+  (0.0ms) SAVEPOINT active_record_1
132689
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
132690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132691
+  (0.0ms) SAVEPOINT active_record_1
132692
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
132693
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["user_id", 2]]
132694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132695
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
132696
+  (0.0ms) SAVEPOINT active_record_1
132697
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
132698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132699
+  (0.0ms) SAVEPOINT active_record_1
132700
+ SQL (0.1ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "notification_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
132701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132702
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
132703
+ Notifiable::NotificationDeviceToken Load (0.1ms) SELECT "notifiable_notification_device_tokens".* FROM "notifiable_notification_device_tokens"
132704
+ 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]]
132705
+ 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]]
132706
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132707
+ 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]]
132708
+ 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]]
132709
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
132710
+  (0.0ms) DELETE FROM "users";
132711
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132712
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132713
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132714
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132715
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132716
+  (0.0ms) DELETE FROM "notifiable_notifications";
132717
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132718
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132719
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132720
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132721
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132722
+  (0.5ms) rollback transaction
132723
+  (0.1ms) begin transaction
132724
+  (0.0ms) SAVEPOINT active_record_1
132725
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
132726
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132727
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
132728
+  (0.1ms) DELETE FROM "users";
132729
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132730
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132731
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
132732
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132733
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132734
+  (0.0ms) DELETE FROM "notifiable_notifications";
132735
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132736
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132737
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132738
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132739
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132740
+  (0.4ms) rollback transaction
132741
+  (0.1ms) begin transaction
132742
+  (0.0ms) SAVEPOINT active_record_1
132743
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
132744
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132745
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
132746
+  (0.1ms) DELETE FROM "users";
132747
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132748
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132749
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
132750
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132751
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132752
+  (0.0ms) DELETE FROM "notifiable_notifications";
132753
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132754
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132755
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132756
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132757
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132758
+  (0.4ms) rollback transaction
132759
+  (0.1ms) begin transaction
132760
+  (0.1ms) SAVEPOINT active_record_1
132761
+ Notifiable::DeviceToken Exists (0.2ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
132762
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD5"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
132763
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132764
+  (0.0ms) SAVEPOINT active_record_1
132765
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
132766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132767
+ Processing by Notifiable::DeviceTokensController#create as JSON
132768
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-6@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
132769
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
132770
+ Unpermitted parameters: user_email, device_token
132771
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
132772
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
132773
+  (0.0ms) SAVEPOINT active_record_1
132774
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
132775
+ SQL (0.3ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
132776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132777
+ Completed 200 OK in 6ms (ActiveRecord: 0.7ms)
132778
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
132779
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132780
+ 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
132781
+  (0.1ms) DELETE FROM "users";
132782
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132783
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132784
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132785
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132786
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132787
+  (0.1ms) DELETE FROM "notifiable_notifications";
132788
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132789
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132790
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132791
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132792
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132793
+  (0.5ms) rollback transaction
132794
+  (0.0ms) begin transaction
132795
+  (0.0ms) SAVEPOINT active_record_1
132796
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
132797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132798
+  (0.0ms) SAVEPOINT active_record_1
132799
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
132800
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["user_id", 1]]
132801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132802
+ 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
132803
+  (0.0ms) SAVEPOINT active_record_1
132804
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
132805
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132806
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
132807
+ Parameters: {"token"=>"ABCD6", "user_email"=>"person-8@example.com", "device_token"=>{"token"=>"ABCD6"}}
132808
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
132809
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
132810
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
132811
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
132812
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
132813
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'
132814
+  (0.1ms) DELETE FROM "users";
132815
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132816
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
132817
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
132818
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132819
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132820
+  (0.1ms) DELETE FROM "notifiable_notifications";
132821
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132822
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132823
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132824
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132825
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132826
+  (0.5ms) rollback transaction
132827
+  (0.1ms) begin transaction
132828
+  (0.1ms) SAVEPOINT active_record_1
132829
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
132830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132831
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
132832
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-9@example.com", "device_token"=>{"token"=>"ZXY987"}}
132833
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
132834
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
132835
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
132836
+  (0.0ms) SAVEPOINT active_record_1
132837
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
132838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132839
+  (0.1ms) SAVEPOINT active_record_1
132840
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
132841
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["user_id", 2]]
132842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132843
+ 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
132844
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
132845
+  (0.1ms) DELETE FROM "users";
132846
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132847
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
132848
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132849
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132850
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132851
+  (0.1ms) DELETE FROM "notifiable_notifications";
132852
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132853
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132854
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132855
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132856
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132857
+  (0.4ms) rollback transaction
132858
+  (0.1ms) begin transaction
132859
+  (0.1ms) SAVEPOINT active_record_1
132860
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
132861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132862
+ Processing by Notifiable::DeviceTokensController#create as JSON
132863
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-11@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
132864
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
132865
+ Unpermitted parameters: user_email, device_token
132866
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
132867
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
132868
+  (0.0ms) SAVEPOINT active_record_1
132869
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
132870
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["user_id", 1]]
132871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132872
+ Completed 200 OK in 4ms (ActiveRecord: 0.8ms)
132873
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
132874
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132875
+ 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
132876
+  (0.1ms) DELETE FROM "users";
132877
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132878
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132879
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132880
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132881
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132882
+  (0.1ms) DELETE FROM "notifiable_notifications";
132883
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132884
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132885
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132886
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132887
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132888
+  (0.4ms) rollback transaction
132889
+  (0.1ms) begin transaction
132890
+  (0.0ms) SAVEPOINT active_record_1
132891
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
132892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132893
+  (0.0ms) SAVEPOINT active_record_1
132894
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
132895
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["user_id", 1]]
132896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132897
+ 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
132898
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
132899
+ Parameters: {"token"=>"ABCD8", "user_email"=>"person-12@example.com", "device_token"=>{"token"=>"ABCD8"}}
132900
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
132901
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
132902
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
132903
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
132904
+  (0.0ms) SAVEPOINT active_record_1
132905
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
132906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132907
+ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
132908
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'
132909
+  (0.1ms) DELETE FROM "users";
132910
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132911
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
132912
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132913
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132914
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132915
+  (0.1ms) DELETE FROM "notifiable_notifications";
132916
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132917
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132918
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132919
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132920
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132921
+  (0.4ms) rollback transaction
132922
+  (0.1ms) begin transaction
132923
+  (0.1ms) SAVEPOINT active_record_1
132924
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
132925
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132926
+ Processing by Notifiable::DeviceTokensController#create as JSON
132927
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-13@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
132928
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
132929
+ Unpermitted parameters: user_email, device_token
132930
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
132931
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
132932
+  (0.0ms) SAVEPOINT active_record_1
132933
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
132934
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["user_id", 1]]
132935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132936
+ Completed 200 OK in 4ms (ActiveRecord: 0.8ms)
132937
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
132938
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
132939
+ 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
132940
+ 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
132941
+  (0.1ms) DELETE FROM "users";
132942
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132943
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
132944
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132945
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132946
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132947
+  (0.1ms) DELETE FROM "notifiable_notifications";
132948
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132949
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132950
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
132951
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132952
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132953
+  (0.4ms) rollback transaction
132954
+  (0.1ms) begin transaction
132955
+ Processing by Notifiable::DeviceTokensController#create as JSON
132956
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
132957
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
132958
+ Unpermitted parameters: device_token
132959
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
132960
+  (0.0ms) SAVEPOINT active_record_1
132961
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
132962
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
132963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132964
+ Completed 200 OK in 3ms (ActiveRecord: 0.7ms)
132965
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
132966
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
132967
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
132968
+  (0.1ms) SELECT COUNT(*) FROM "users"
132969
+  (0.1ms) DELETE FROM "users";
132970
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132971
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
132972
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
132973
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132974
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
132975
+  (0.1ms) DELETE FROM "notifiable_notifications";
132976
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132977
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
132978
+  (0.0ms) DELETE FROM "notifiable_notification_device_tokens";
132979
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132980
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
132981
+  (0.4ms) rollback transaction
132982
+  (0.1ms) begin transaction
132983
+  (0.1ms) SAVEPOINT active_record_1
132984
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
132985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132986
+  (0.0ms) SAVEPOINT active_record_1
132987
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
132988
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["user_id", 1]]
132989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132990
+ 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
132991
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
132992
+ Parameters: {"token"=>"ABCD9", "device_token"=>{"token"=>"ABCD9"}}
132993
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
132994
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
132995
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
132996
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'
132997
+  (0.1ms) DELETE FROM "users";
132998
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
132999
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
133000
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
133001
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133002
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
133003
+  (0.1ms) DELETE FROM "notifiable_notifications";
133004
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133005
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
133006
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
133007
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133008
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
133009
+  (0.4ms) rollback transaction
133010
+  (0.1ms) begin transaction
133011
+  (0.1ms) SAVEPOINT active_record_1
133012
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
133013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
133014
+  (0.1ms) SAVEPOINT active_record_1
133015
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
133016
+ SQL (0.7ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["user_id", 1]]
133017
+  (0.1ms) RELEASE SAVEPOINT active_record_1
133018
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
133019
+  (0.1ms) SAVEPOINT active_record_1
133020
+ SQL (0.3ms) INSERT INTO "notifiable_notification_device_tokens" ("created_at", "device_token_id", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["device_token_id", 1], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00]]
133021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
133022
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
133023
+  (0.1ms) DELETE FROM "users";
133024
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133025
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
133026
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
133027
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133028
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
133029
+  (0.1ms) DELETE FROM "notifiable_notifications";
133030
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133031
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
133032
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
133033
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133034
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
133035
+  (0.7ms) rollback transaction
133036
+  (0.1ms) begin transaction
133037
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
133038
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_device_tokens"
133039
+  (0.3ms) DELETE FROM "users";
133040
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133041
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
133042
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
133043
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133044
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
133045
+  (0.1ms) DELETE FROM "notifiable_notifications";
133046
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133047
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
133048
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
133049
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133050
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
133051
+  (0.4ms) rollback transaction
133052
+  (0.1ms) begin transaction
133053
+  (0.1ms) SAVEPOINT active_record_1
133054
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
133055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
133056
+  (0.1ms) SAVEPOINT active_record_1
133057
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
133058
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD11"], ["updated_at", Thu, 13 Feb 2014 14:09:08 UTC +00:00], ["user_id", 1]]
133059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
133060
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
133061
+  (0.1ms) DELETE FROM "users";
133062
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133063
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
133064
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
133065
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133066
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
133067
+  (0.1ms) DELETE FROM "notifiable_notifications";
133068
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133069
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
133070
+  (0.1ms) DELETE FROM "notifiable_notification_device_tokens";
133071
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
133072
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_device_tokens';
133073
+  (0.4ms) rollback transaction