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 +4 -4
- data/lib/generators/notifiable/install/templates/create_notifiable_notifications.rb +9 -4
- data/lib/generators/notifiable/install/templates/initializer.rb +4 -0
- data/lib/notifiable/notification.rb +1 -1
- data/lib/notifiable/version.rb +1 -1
- data/spec/test_app/log/test.log +473 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78bd692090aa8a463035429ad47cbf26ccdde0fc
|
4
|
+
data.tar.gz: a765c217229226d030777e682bde334f8749133d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
9
|
-
|
10
|
-
t.
|
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
|
|
data/lib/notifiable/version.rb
CHANGED
data/spec/test_app/log/test.log
CHANGED
@@ -137688,3 +137688,476 @@ Completed 200 OK in 3ms (ActiveRecord: 0.8ms)
|
|
137688
137688
|
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137689
137689
|
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
137690
137690
|
[1m[35m (0.4ms)[0m rollback transaction
|
137691
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
137692
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137693
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
137694
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137695
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
137696
|
+
[1m[35mNotifiable::DeviceToken Exists (0.4ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
|
137697
|
+
[1m[36mSQL (27.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
137699
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
137700
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
137701
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137702
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
137703
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
137704
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137705
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
137706
|
+
[1m[35m (0.4ms)[0m DELETE FROM "notifiable_notifications";
|
137707
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137708
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
137709
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
137710
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137711
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
137712
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
137713
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
137714
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137715
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137717
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
137718
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
137719
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137720
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
137721
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
137722
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137723
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
137724
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
137725
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137726
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
137727
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
137728
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137729
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
137730
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
137731
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
137732
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137733
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137735
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
137736
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
137737
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137738
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
137739
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
137740
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137741
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
137742
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
137743
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137744
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
137745
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
137746
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137747
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
137748
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
137749
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
137750
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137751
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137753
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
137754
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
137755
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137756
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137757
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1[0m
|
137758
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137760
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
137761
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
137762
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
|
137763
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137764
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137765
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
137766
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137768
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
137769
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
137770
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
137771
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137772
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137773
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?)[0m [["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
137774
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137775
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
137776
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
|
137777
|
+
[1m[36mNotifiable::Notification Load (0.2ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
137778
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m 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
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
137780
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
137781
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 2]]
|
137782
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
137783
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
137784
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137785
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
137786
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
137787
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137788
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
137789
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
137790
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137791
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
137792
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
137793
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137794
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
137795
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
137796
|
+
[1m[35m (0.1ms)[0m begin transaction
|
137797
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
137798
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137800
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
137801
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-4@example.com"]]
|
137802
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137803
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
137804
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
|
137805
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137807
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
137808
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137809
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
137811
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
137812
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
|
137813
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137814
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137815
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
137816
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137818
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
137819
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
137820
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
137821
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137822
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137823
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?)[0m [["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
137824
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137825
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
137826
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
|
137827
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
137828
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m 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
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
137830
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 2]]
|
137831
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 2]]
|
137832
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
137833
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
137834
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137835
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
137836
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
137837
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137838
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
137839
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
137840
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137841
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
137842
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
137843
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137844
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
137845
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
137846
|
+
[1m[35m (0.1ms)[0m begin transaction
|
137847
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
137848
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
|
137849
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137850
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
137851
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1[0m
|
137852
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137854
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
137855
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
137857
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
137858
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
137859
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137860
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
137861
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
137862
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137863
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
137864
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
137865
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137866
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
137867
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
137868
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137869
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
137870
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
137871
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
137872
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
137873
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
137874
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137875
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
137876
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
|
137877
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137879
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
137880
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137881
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "status") VALUES (?, ?)[0m [["device_token_id", 1], ["status", 200]]
|
137882
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137883
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
137884
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
137885
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137886
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
137887
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
137888
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137889
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
137890
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
137891
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137892
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
137893
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
137894
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137895
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
137896
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
137897
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
137898
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
|
137899
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
137900
|
+
[1m[35m (0.2ms)[0m DELETE FROM "users";
|
137901
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137902
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
137903
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
137904
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137905
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
137906
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
137907
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137908
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
137909
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
137910
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137911
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
137912
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
137913
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
137914
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137915
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
137916
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
137920
|
+
Unpermitted parameters: user_email, device_token
|
137921
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
|
137922
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1[0m
|
137923
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137924
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
137925
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137927
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.8ms)
|
137928
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
137929
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
137930
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m 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
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
137932
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
137933
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137934
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
137935
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
137936
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137937
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
137938
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
137939
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137940
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
137941
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
137942
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137943
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
137944
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
137945
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
137946
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137947
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
137948
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137949
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
137950
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
137951
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137953
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
137954
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
137955
|
+
Parameters: {"token"=>"ABCD7", "device_token"=>{"token"=>"ABCD7"}}
|
137956
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'[0m
|
137960
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
137961
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137962
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
137963
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
137964
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137965
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
137966
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
137967
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137968
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
137969
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
137970
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137971
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
137972
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
137973
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
137974
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
137975
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
137976
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137977
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
137978
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
|
137979
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
137981
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
137982
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137983
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
137984
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1[0m
|
137988
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
137989
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
137990
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
|
137991
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
|
137992
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'[0m
|
137993
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
137994
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
137995
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
137996
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
137997
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137998
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
137999
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
138000
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
138001
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
138002
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
138003
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
138004
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
138005
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
138006
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
138007
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
138008
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
138009
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
138011
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
138012
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-13@example.com"]]
|
138013
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1[0m
|
138017
|
+
Unpermitted parameters: user_email, device_token
|
138018
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
|
138019
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1[0m
|
138020
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
138021
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
138022
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
138024
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
|
138025
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
138026
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
138027
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
138029
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
138030
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
138031
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
138032
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
138033
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
138034
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
138035
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
138036
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
138037
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
138038
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
138039
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
138040
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
138041
|
+
[1m[35m (0.0ms)[0m begin transaction
|
138042
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
138043
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
|
138044
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
138045
|
+
Unpermitted parameters: device_token
|
138046
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
138047
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
138048
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
138049
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
138051
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
|
138052
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
138053
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
138054
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
138055
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "users"
|
138056
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
138057
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
138058
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
138059
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
138060
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
138061
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
138062
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
138063
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
138064
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
138065
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
138066
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
138067
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
138068
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
138069
|
+
[1m[35m (0.0ms)[0m begin transaction
|
138070
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
138071
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
138072
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1[0m
|
138078
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
|
138079
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
138080
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
138081
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
138083
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.7ms)
|
138084
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
138085
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
138086
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
138087
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
138088
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
138089
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
138090
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
138091
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
138092
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
138093
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
138094
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
138095
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
138096
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
138097
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
138098
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
138099
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
138100
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
138101
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
138102
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-15@example.com"]]
|
138103
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
138104
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
138105
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
|
138106
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
138108
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
138109
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
138110
|
+
Parameters: {"token"=>"ABCD10", "user_email"=>"person-15@example.com", "device_token"=>{"token"=>"ABCD10"}}
|
138111
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
|
138112
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
138113
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
138114
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1[0m
|
138115
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
138116
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ?[0m [["id", 1]]
|
138117
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
138118
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
138119
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10'[0m
|
138120
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
138121
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
138122
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
138123
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
138124
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
138125
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
138126
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
138127
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
138128
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
138129
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
138130
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
138131
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
138132
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
138133
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
138134
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
138135
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-16@example.com"]]
|
138136
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1[0m
|
138140
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
138143
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
|
138144
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
138145
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
138146
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1[0m
|
138147
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
138149
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11'[0m
|
138151
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
138152
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
138153
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
138154
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
138155
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
138156
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
138157
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
138158
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
138159
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
138160
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
138161
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
138162
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
138163
|
+
[1m[35m (0.5ms)[0m 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.
|
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-
|
12
|
+
date: 2014-02-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|