notifiable-rails 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 099d66d35755e715b96fbcd6cd5e54896009a483
4
- data.tar.gz: 24d3b8bb3b7e32576ba54afc03e203b18b3ccc8e
3
+ metadata.gz: 78bd692090aa8a463035429ad47cbf26ccdde0fc
4
+ data.tar.gz: a765c217229226d030777e682bde334f8749133d
5
5
  SHA512:
6
- metadata.gz: fe3ede906fbcf129a02687f48fa98c7497da3e63b614e01f8a9c669d44930ed60477608e1efbae96ba1bb812f942c63731b5b80565b1f826b8f66788ca6f3c2c
7
- data.tar.gz: 910a181c644904a8bd3126507937108623acb82aec7a91ceb8c508058fa1130efd628bbfa4db9172cd9088a5465833c8b7b01facc207ebc38f85115cea0148a2
6
+ metadata.gz: 1d09fd00526e5f27c0c53ca7330b4fc428f13f6261d874316a5defa212f7206b3c4a5df05650f427604ca8cba4e86fb4ad1672c938c4f9566b5e9f935f3b8bc2
7
+ data.tar.gz: ed3985a0068c4adeb9d1c6b45fa8e379d1815172e383144395536420b5c9d6f51ffd33380ba54f7abbffdb5298cdad2ab87d45f0efc7a53b065bd3268393b81e
@@ -2,12 +2,17 @@ class CreateNotifiableNotifications < ActiveRecord::Migration
2
2
 
3
3
  def change
4
4
  create_table :notifiable_notifications do |t|
5
- t.text :title
6
5
  t.text :message
7
6
  t.text :params
8
- t.integer :badge
9
- t.text :sound
10
- t.datetime :expiry
7
+
8
+ # APNS - Optional
9
+ #t.integer :badge
10
+ #t.text :sound
11
+ #t.datetime :expiry
12
+
13
+ # MPNS - Optional
14
+ #t.text :title
15
+
11
16
  t.timestamps
12
17
  end
13
18
  end
@@ -3,6 +3,10 @@ Notifiable.configure do |config|
3
3
  # The controller class that the DeviceTokenController should extend
4
4
  config.api_controller_class = ApplicationController
5
5
 
6
+ # Set the params permitted for creation of device tokens
7
+ # Defaults to [:device_id, :token, :provider]
8
+ #config.api_device_token_params = [:device_id, :token, :provider]
9
+
6
10
  # The class representing the holder of the device
7
11
  config.user_class = User
8
12
 
@@ -3,6 +3,6 @@ module Notifiable
3
3
 
4
4
  serialize :params
5
5
 
6
- has_many :notification_status, :class_name => 'Notifiable::NotificationStatus'
6
+ has_many :notification_statuses, :class_name => 'Notifiable::NotificationStatus'
7
7
  end
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -137688,3 +137688,476 @@ Completed 200 OK in 3ms (ActiveRecord: 0.8ms)
137688
137688
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137689
137689
   (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
137690
137690
   (0.4ms) rollback transaction
137691
+  (0.3ms) begin transaction
137692
+  (0.0ms) SAVEPOINT active_record_1
137693
+ SQL (0.9ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
137694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137695
+  (0.0ms) SAVEPOINT active_record_1
137696
+ Notifiable::DeviceToken Exists (0.4ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
137697
+ SQL (27.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["user_id", 1]]
137698
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137699
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
137700
+  (0.0ms) DELETE FROM "users";
137701
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137702
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
137703
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
137704
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137705
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
137706
+  (0.4ms) DELETE FROM "notifiable_notifications";
137707
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137708
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
137709
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
137710
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137711
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
137712
+  (0.5ms) rollback transaction
137713
+  (0.0ms) begin transaction
137714
+  (0.0ms) SAVEPOINT active_record_1
137715
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00]]
137716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137717
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
137718
+  (0.1ms) DELETE FROM "users";
137719
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137720
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
137721
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
137722
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137723
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
137724
+  (0.0ms) DELETE FROM "notifiable_notifications";
137725
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137726
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
137727
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
137728
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137729
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
137730
+  (0.3ms) rollback transaction
137731
+  (0.0ms) begin transaction
137732
+  (0.0ms) SAVEPOINT active_record_1
137733
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00]]
137734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137735
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
137736
+  (0.1ms) DELETE FROM "users";
137737
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137738
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
137739
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
137740
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137741
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
137742
+  (0.0ms) DELETE FROM "notifiable_notifications";
137743
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137744
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
137745
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
137746
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137747
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
137748
+  (0.4ms) rollback transaction
137749
+  (0.0ms) begin transaction
137750
+  (0.0ms) SAVEPOINT active_record_1
137751
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00]]
137752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137753
+  (0.0ms) SAVEPOINT active_record_1
137754
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
137755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137756
+  (0.0ms) SAVEPOINT active_record_1
137757
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
137758
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["user_id", 1]]
137759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137760
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
137761
+  (0.0ms) SAVEPOINT active_record_1
137762
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
137763
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137764
+  (0.0ms) SAVEPOINT active_record_1
137765
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
137766
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["user_id", 2]]
137767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137768
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
137769
+  (0.0ms) SAVEPOINT active_record_1
137770
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
137771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137772
+  (0.0ms) SAVEPOINT active_record_1
137773
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 1], ["status", 200]]
137774
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137775
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
137776
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
137777
+ 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]]
137778
+ 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]]
137779
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
137780
+ 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]]
137781
+ 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]]
137782
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
137783
+  (0.0ms) DELETE FROM "users";
137784
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137785
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
137786
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
137787
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137788
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
137789
+  (0.0ms) DELETE FROM "notifiable_notifications";
137790
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137791
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
137792
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
137793
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137794
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
137795
+  (0.6ms) rollback transaction
137796
+  (0.1ms) begin transaction
137797
+  (0.1ms) SAVEPOINT active_record_1
137798
+ SQL (0.5ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00]]
137799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137800
+  (0.1ms) SAVEPOINT active_record_1
137801
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
137802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137803
+  (0.1ms) SAVEPOINT active_record_1
137804
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
137805
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["user_id", 1]]
137806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137807
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
137808
+  (0.0ms) SAVEPOINT active_record_1
137809
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00]]
137810
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137811
+  (0.0ms) SAVEPOINT active_record_1
137812
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
137813
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137814
+  (0.0ms) SAVEPOINT active_record_1
137815
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
137816
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["user_id", 2]]
137817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137818
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
137819
+  (0.0ms) SAVEPOINT active_record_1
137820
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
137821
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137822
+  (0.0ms) SAVEPOINT active_record_1
137823
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 2], ["status", 200]]
137824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137825
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
137826
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
137827
+ 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]]
137828
+ 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]]
137829
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
137830
+ 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]]
137831
+ 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]]
137832
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
137833
+  (0.0ms) DELETE FROM "users";
137834
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137835
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
137836
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
137837
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137838
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
137839
+  (0.0ms) DELETE FROM "notifiable_notifications";
137840
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137841
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
137842
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
137843
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137844
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
137845
+  (0.6ms) rollback transaction
137846
+  (0.1ms) begin transaction
137847
+  (0.1ms) SAVEPOINT active_record_1
137848
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
137849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137850
+  (0.1ms) SAVEPOINT active_record_1
137851
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1
137852
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["user_id", 1]]
137853
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137854
+  (0.1ms) SAVEPOINT active_record_1
137855
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00]]
137856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137857
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
137858
+  (0.1ms) DELETE FROM "users";
137859
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137860
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
137861
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
137862
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137863
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
137864
+  (0.1ms) DELETE FROM "notifiable_notifications";
137865
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137866
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
137867
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
137868
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137869
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
137870
+  (0.5ms) rollback transaction
137871
+  (0.1ms) begin transaction
137872
+  (0.1ms) SAVEPOINT active_record_1
137873
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
137874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137875
+  (0.1ms) SAVEPOINT active_record_1
137876
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
137877
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Fri, 14 Feb 2014 10:12:52 UTC +00:00], ["user_id", 1]]
137878
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137879
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
137880
+  (0.0ms) SAVEPOINT active_record_1
137881
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "status") VALUES (?, ?) [["device_token_id", 1], ["status", 200]]
137882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137883
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
137884
+  (0.0ms) DELETE FROM "users";
137885
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137886
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
137887
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
137888
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137889
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
137890
+  (0.1ms) DELETE FROM "notifiable_notifications";
137891
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137892
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
137893
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
137894
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137895
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
137896
+  (0.5ms) rollback transaction
137897
+  (0.0ms) begin transaction
137898
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
137899
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
137900
+  (0.2ms) DELETE FROM "users";
137901
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137902
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
137903
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
137904
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137905
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
137906
+  (0.1ms) DELETE FROM "notifiable_notifications";
137907
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137908
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
137909
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
137910
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137911
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
137912
+  (0.4ms) rollback transaction
137913
+  (0.1ms) begin transaction
137914
+  (0.0ms) SAVEPOINT active_record_1
137915
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
137916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137917
+ Processing by Notifiable::DeviceTokensController#create as JSON
137918
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-9@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
137919
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
137920
+ Unpermitted parameters: user_email, device_token
137921
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
137922
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
137923
+  (0.0ms) SAVEPOINT active_record_1
137924
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
137925
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["user_id", 1]]
137926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137927
+ Completed 200 OK in 4ms (ActiveRecord: 0.8ms)
137928
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
137929
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
137930
+ 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
137931
+ 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
137932
+  (0.0ms) DELETE FROM "users";
137933
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137934
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
137935
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
137936
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137937
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
137938
+  (0.1ms) DELETE FROM "notifiable_notifications";
137939
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137940
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
137941
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
137942
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137943
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
137944
+  (0.5ms) rollback transaction
137945
+  (0.1ms) begin transaction
137946
+  (0.0ms) SAVEPOINT active_record_1
137947
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
137948
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137949
+  (0.0ms) SAVEPOINT active_record_1
137950
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
137951
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["user_id", 1]]
137952
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137953
+ 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
137954
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
137955
+ Parameters: {"token"=>"ABCD7", "device_token"=>{"token"=>"ABCD7"}}
137956
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
137957
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
137958
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
137959
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
137960
+  (0.0ms) DELETE FROM "users";
137961
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137962
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
137963
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
137964
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137965
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
137966
+  (0.1ms) DELETE FROM "notifiable_notifications";
137967
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137968
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
137969
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
137970
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137971
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
137972
+  (0.4ms) rollback transaction
137973
+  (0.1ms) begin transaction
137974
+  (0.1ms) SAVEPOINT active_record_1
137975
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
137976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137977
+  (0.0ms) SAVEPOINT active_record_1
137978
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
137979
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["user_id", 1]]
137980
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137981
+ 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
137982
+  (0.0ms) SAVEPOINT active_record_1
137983
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
137984
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137985
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
137986
+ Parameters: {"token"=>"ABCD8", "user_email"=>"person-12@example.com", "device_token"=>{"token"=>"ABCD8"}}
137987
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
137988
+ 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
137989
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
137990
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
137991
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
137992
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'
137993
+  (0.0ms) DELETE FROM "users";
137994
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137995
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
137996
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
137997
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
137998
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
137999
+  (0.1ms) DELETE FROM "notifiable_notifications";
138000
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138001
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138002
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138003
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138004
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138005
+  (0.5ms) rollback transaction
138006
+  (0.1ms) begin transaction
138007
+  (0.0ms) SAVEPOINT active_record_1
138008
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
138009
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD9"], ["updated_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00]]
138010
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138011
+  (0.0ms) SAVEPOINT active_record_1
138012
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
138013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138014
+ Processing by Notifiable::DeviceTokensController#create as JSON
138015
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-13@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
138016
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
138017
+ Unpermitted parameters: user_email, device_token
138018
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
138019
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
138020
+  (0.0ms) SAVEPOINT active_record_1
138021
+ 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
138022
+ 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", Fri, 14 Feb 2014 10:12:53 UTC +00:00]]
138023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138024
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
138025
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
138026
+  (0.2ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
138027
+ 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
138028
+  (0.1ms) DELETE FROM "users";
138029
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138030
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
138031
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
138032
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138033
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138034
+  (0.1ms) DELETE FROM "notifiable_notifications";
138035
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138036
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138037
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138038
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138039
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138040
+  (0.6ms) rollback transaction
138041
+  (0.0ms) begin transaction
138042
+ Processing by Notifiable::DeviceTokensController#create as JSON
138043
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
138044
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
138045
+ Unpermitted parameters: device_token
138046
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
138047
+  (0.0ms) SAVEPOINT active_record_1
138048
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
138049
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00]]
138050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138051
+ Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
138052
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
138053
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
138054
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
138055
+  (0.0ms) SELECT COUNT(*) FROM "users"
138056
+  (0.1ms) DELETE FROM "users";
138057
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138058
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138059
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138060
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138061
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138062
+  (0.0ms) DELETE FROM "notifiable_notifications";
138063
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138064
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138065
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138066
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138067
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138068
+  (0.4ms) rollback transaction
138069
+  (0.0ms) begin transaction
138070
+  (0.0ms) SAVEPOINT active_record_1
138071
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
138072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138073
+ Processing by Notifiable::DeviceTokensController#create as JSON
138074
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-14@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
138075
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
138076
+ Unpermitted parameters: user_email, device_token
138077
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
138078
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
138079
+  (0.0ms) SAVEPOINT active_record_1
138080
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
138081
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["user_id", 1]]
138082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138083
+ Completed 200 OK in 3ms (ActiveRecord: 0.7ms)
138084
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
138085
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
138086
+ 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
138087
+  (0.0ms) DELETE FROM "users";
138088
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138089
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138090
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138091
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138092
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138093
+  (0.1ms) DELETE FROM "notifiable_notifications";
138094
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138095
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138096
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138097
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138098
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138099
+  (0.5ms) rollback transaction
138100
+  (0.1ms) begin transaction
138101
+  (0.0ms) SAVEPOINT active_record_1
138102
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
138103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138104
+  (0.0ms) SAVEPOINT active_record_1
138105
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
138106
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["user_id", 1]]
138107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138108
+ 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
138109
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
138110
+ Parameters: {"token"=>"ABCD10", "user_email"=>"person-15@example.com", "device_token"=>{"token"=>"ABCD10"}}
138111
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
138112
+ 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
138113
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
138114
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
138115
+  (0.0ms) SAVEPOINT active_record_1
138116
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
138117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138118
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
138119
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10'
138120
+  (0.0ms) DELETE FROM "users";
138121
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138122
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138123
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138124
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138125
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138126
+  (0.0ms) DELETE FROM "notifiable_notifications";
138127
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138128
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138129
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138130
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138131
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138132
+  (0.5ms) rollback transaction
138133
+  (0.0ms) begin transaction
138134
+  (0.0ms) SAVEPOINT active_record_1
138135
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
138136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138137
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
138138
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-16@example.com", "device_token"=>{"token"=>"ZXY987"}}
138139
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
138140
+ 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
138141
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
138142
+  (0.0ms) SAVEPOINT active_record_1
138143
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
138144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138145
+  (0.1ms) SAVEPOINT active_record_1
138146
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
138147
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Fri, 14 Feb 2014 10:12:53 UTC +00:00], ["user_id", 2]]
138148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138149
+ 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
138150
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11'
138151
+  (0.1ms) DELETE FROM "users";
138152
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138153
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138154
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138155
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138156
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138157
+  (0.1ms) DELETE FROM "notifiable_notifications";
138158
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138159
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138160
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138161
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138162
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138163
+  (0.5ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Kocemba
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-13 00:00:00.000000000 Z
12
+ date: 2014-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails