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