notifiable-rails 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/notifiable/notification.rb +1 -1
- data/lib/notifiable/version.rb +1 -1
- data/spec/notification_spec.rb +9 -0
- data/spec/test_app/log/test.log +1630 -0
- metadata +1 -1
data/spec/test_app/log/test.log
CHANGED
@@ -140605,3 +140605,1633 @@ Completed 200 OK in 3ms (ActiveRecord: 0.7ms)
|
|
140605
140605
|
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140606
140606
|
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
140607
140607
|
[1m[35m (0.4ms)[0m rollback transaction
|
140608
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
140609
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140610
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
140611
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140612
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140613
|
+
[1m[35mNotifiable::DeviceToken Exists (0.2ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
|
140614
|
+
[1m[36mSQL (25.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["user_id", 1]]
|
140615
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
140616
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
140617
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
140618
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
140619
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140620
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
140621
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
140622
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140623
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
140624
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
140625
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140626
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
140627
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
140628
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140629
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
140630
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
140631
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140632
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140633
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
140634
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140635
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140636
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1[0m
|
140637
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["user_id", 1]]
|
140638
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140639
|
+
[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
|
140640
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
140641
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
140642
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140643
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
140644
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
140645
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140646
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
140647
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
140648
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140649
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
140650
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
140651
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140652
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
140653
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
140654
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140655
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
140656
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
140657
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
140658
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140659
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
|
140660
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["user_id", 1]]
|
140661
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140662
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
140663
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
140664
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140665
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
140666
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
140667
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140668
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
140669
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
140670
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140671
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
140672
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
140673
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140674
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
140675
|
+
[1m[35m (4.2ms)[0m rollback transaction
|
140676
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140677
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140678
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-4@example.com"]]
|
140679
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140680
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140681
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
|
140682
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["user_id", 1]]
|
140683
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140684
|
+
[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
|
140685
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140686
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-5@example.com"]]
|
140687
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140688
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
140689
|
+
Parameters: {"token"=>"ABCD4", "user_email"=>"person-5@example.com", "device_token"=>{"token"=>"ABCD4"}}
|
140690
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1[0m
|
140691
|
+
[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
|
140692
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
140693
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
|
140694
|
+
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms)
|
140695
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'[0m
|
140696
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
140697
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140698
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
140699
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
140700
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140701
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
140702
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
140703
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140704
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
140705
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
140706
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140707
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
140708
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
140709
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140710
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140711
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-6@example.com"]]
|
140712
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140713
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
140714
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-6@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
140715
|
+
[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
|
140716
|
+
Unpermitted parameters: user_email, device_token
|
140717
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
|
140718
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1[0m
|
140719
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140720
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
140721
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["user_id", 1]]
|
140722
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140723
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.7ms)
|
140724
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
140725
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
140726
|
+
[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
|
140727
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
140728
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140729
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
140730
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
140731
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140732
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
140733
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
140734
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140735
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
140736
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
140737
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140738
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
140739
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
140740
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140741
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
140742
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
|
140743
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
140744
|
+
Unpermitted parameters: device_token
|
140745
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
140746
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140747
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
140748
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00]]
|
140749
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140750
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
|
140751
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
140752
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
140753
|
+
[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
|
140754
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "users"
|
140755
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
140756
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140757
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
140758
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
140759
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140760
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
140761
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
140762
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140763
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
140764
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
140765
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140766
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
140767
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
140768
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140769
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140770
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
|
140771
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140772
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
140773
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-7@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
|
140774
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
140775
|
+
Unpermitted parameters: user_email, device_token
|
140776
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1[0m
|
140777
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
|
140778
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140779
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
140780
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["user_id", 1]]
|
140781
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140782
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.7ms)
|
140783
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
140784
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
140785
|
+
[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
|
140786
|
+
[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
|
140787
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
140788
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140789
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
140790
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
140791
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140792
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
140793
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
140794
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140795
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
140796
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
140797
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140798
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
140799
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
140800
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140801
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140802
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
|
140803
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140804
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
140805
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
140806
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["user_id", 1]]
|
140807
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140808
|
+
[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
|
140809
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
140810
|
+
Parameters: {"token"=>"ABCD5", "device_token"=>{"token"=>"ABCD5"}}
|
140811
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
140812
|
+
Filter chain halted as :ensure_current_notifiable_user rendered or redirected
|
140813
|
+
Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
|
140814
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
|
140815
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
140816
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140817
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
140818
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
140819
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140820
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
140821
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
140822
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140823
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
140824
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
140825
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140826
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
140827
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
140828
|
+
[1m[35m (0.0ms)[0m begin transaction
|
140829
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140830
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
|
140831
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140832
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
140833
|
+
Parameters: {"token"=>"ZXY987", "user_email"=>"person-9@example.com", "device_token"=>{"token"=>"ZXY987"}}
|
140834
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
|
140835
|
+
[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
|
140836
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
140837
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140838
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
140839
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140840
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140841
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
|
140842
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["user_id", 2]]
|
140843
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140844
|
+
[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
|
140845
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'
|
140846
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
140847
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140848
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
140849
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
140850
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140851
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
140852
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
140853
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140854
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
140855
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
140856
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140857
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
140858
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
140859
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140860
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140861
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
140862
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD7"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00]]
|
140863
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140864
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140865
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
|
140866
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140867
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
140868
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-11@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
140869
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
|
140870
|
+
Unpermitted parameters: user_email, device_token
|
140871
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1[0m
|
140872
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
|
140873
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140874
|
+
[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
|
140875
|
+
[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", Sat, 15 Feb 2014 12:19:05 UTC +00:00]]
|
140876
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140877
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
|
140878
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
140879
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
140880
|
+
[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
|
140881
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
140882
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140883
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
140884
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
140885
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140886
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
140887
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
140888
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140889
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
140890
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
140891
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140892
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
140893
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
140894
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140895
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
140896
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
140897
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
140898
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140899
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
|
140900
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["user_id", 1]]
|
140901
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140902
|
+
[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
|
140903
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
140904
|
+
Parameters: {"token"=>"ABCD8", "user_email"=>"person-12@example.com", "device_token"=>{"token"=>"ABCD8"}}
|
140905
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
|
140906
|
+
[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
|
140907
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
140908
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1[0m
|
140909
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140910
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ?[0m [["id", 1]]
|
140911
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140912
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
|
140913
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'[0m
|
140914
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
140915
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140916
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
140917
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
140918
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140919
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
140920
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
140921
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140922
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
140923
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
140924
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140925
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
140926
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
140927
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140928
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140929
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00]]
|
140930
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140931
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
140932
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
140933
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140934
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
140935
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
140936
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140937
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
140938
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
140939
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140940
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
140941
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
140942
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140943
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
140944
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
140945
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140946
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140947
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00]]
|
140948
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140949
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
140950
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
140951
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140952
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
140953
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
140954
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140955
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
140956
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
140957
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140958
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
140959
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
140960
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140961
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
140962
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
140963
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140964
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140965
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00]]
|
140966
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140967
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140968
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?) [["notification_id", 1]]
|
140969
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140970
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140971
|
+
[1m[36mNotifiable::NotificationStatus Load (0.2ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
140972
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."id" = ? [["id", 1]]
|
140973
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ?[0m [["id", 1]]
|
140974
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
140975
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
140976
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
140977
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140978
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
140979
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
140980
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140981
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
140982
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
140983
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140984
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
140985
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
140986
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
140987
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
140988
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
140989
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140990
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140991
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00]]
|
140992
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
140993
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140994
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
|
140995
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140996
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140997
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
140998
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["user_id", 1]]
|
140999
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141000
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
141001
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141002
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
141003
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141004
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141005
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1[0m
|
141006
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["user_id", 2]]
|
141007
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141008
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
141009
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141010
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
141011
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141012
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141013
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?)[0m [["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
141014
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141015
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
141016
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
|
141017
|
+
[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]]
|
141018
|
+
[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]]
|
141019
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
141020
|
+
[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]]
|
141021
|
+
[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", 2]]
|
141022
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
141023
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
141024
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141025
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
141026
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
141027
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141028
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
141029
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
141030
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141031
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
141032
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
141033
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141034
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
141035
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
141036
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141037
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141038
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00]]
|
141039
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141040
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141041
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-15@example.com"]]
|
141042
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141043
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141044
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
|
141045
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["user_id", 1]]
|
141046
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141047
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
141048
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141049
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00]]
|
141050
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141051
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141052
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
141053
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141054
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141055
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1[0m
|
141056
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Sat, 15 Feb 2014 12:19:05 UTC +00:00], ["user_id", 2]]
|
141057
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141058
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
141059
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141060
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
141061
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141062
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141063
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?)[0m [["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
141064
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141065
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
141066
|
+
[1m[35mNotifiable::NotificationStatus Load (0.0ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
|
141067
|
+
[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]]
|
141068
|
+
[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]]
|
141069
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
141070
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 2]]
|
141071
|
+
[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]]
|
141072
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
141073
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
141074
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141075
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
141076
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
141077
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141078
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
141079
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
141080
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141081
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
141082
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
141083
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141084
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
141085
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
141086
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141087
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141088
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
|
141089
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141090
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141091
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1[0m
|
141092
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:06 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Sat, 15 Feb 2014 12:19:06 UTC +00:00], ["user_id", 1]]
|
141093
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141094
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141095
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:06 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:06 UTC +00:00]]
|
141096
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141097
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
141098
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
141099
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141100
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141101
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141102
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141103
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141104
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141105
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141106
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141107
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141108
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141109
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141110
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
141111
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141112
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141113
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-18@example.com"]]
|
141114
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141115
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141116
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
|
141117
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:06 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Sat, 15 Feb 2014 12:19:06 UTC +00:00], ["user_id", 1]]
|
141118
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141119
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
141120
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141121
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "status") VALUES (?, ?)[0m [["device_token_id", 1], ["status", 200]]
|
141122
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141123
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
141124
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
141125
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141126
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141127
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141128
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141129
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141130
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141131
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141132
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141133
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141134
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141135
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141136
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141137
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141138
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
|
141139
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
141140
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
141141
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141142
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141143
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141144
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141145
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141146
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141147
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141148
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141149
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141150
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141151
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141152
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141153
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
141154
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141155
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
141156
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141157
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141158
|
+
[1m[35mNotifiable::DeviceToken Exists (0.2ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
|
141159
|
+
[1m[36mSQL (25.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["user_id", 1]]
|
141160
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141161
|
+
[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
|
141162
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
141163
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
141164
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141165
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
141166
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
141167
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141168
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
141169
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
141170
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141171
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
141172
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
141173
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141174
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
141175
|
+
[1m[36m (6.6ms)[0m [1mrollback transaction[0m
|
141176
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141177
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141178
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
141179
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141180
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141181
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1[0m
|
141182
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["user_id", 1]]
|
141183
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141184
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
141185
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
141186
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
141187
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141188
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141189
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141190
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141191
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141192
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
141193
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141194
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141195
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141196
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141197
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141198
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
141199
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141200
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141201
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
141202
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141203
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141204
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
|
141205
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["user_id", 1]]
|
141206
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141207
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
141208
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
141209
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141210
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141211
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141212
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141213
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141214
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141215
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141216
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141217
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141218
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141219
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141220
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141221
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141222
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141223
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00]]
|
141224
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141225
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
141226
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
141227
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141228
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141229
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141230
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141231
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141232
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141233
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141234
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141235
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141236
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141237
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141238
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141239
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141240
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141241
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00]]
|
141242
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141243
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
141244
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
141245
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141246
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141247
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141248
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141249
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141250
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141251
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141252
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141253
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141254
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141255
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141256
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141257
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141258
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141259
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00]]
|
141260
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141261
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141262
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?) [["notification_id", 1]]
|
141263
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141264
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141265
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
141266
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."id" = ? [["id", 1]]
|
141267
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ?[0m [["id", 1]]
|
141268
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141269
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
141270
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
141271
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141272
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141273
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141274
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141275
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141276
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141277
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141278
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141279
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141280
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141281
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141282
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
141283
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141284
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
|
141285
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
141286
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
141287
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141288
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141289
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141290
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141291
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141292
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141293
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141294
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141295
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141296
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141297
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141298
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141299
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141300
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141301
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-5@example.com"]]
|
141302
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141303
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141304
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
|
141305
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["user_id", 1]]
|
141306
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141307
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
141308
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141309
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "status") VALUES (?, ?)[0m [["device_token_id", 1], ["status", 200]]
|
141310
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141311
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
141312
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
141313
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141314
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141315
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141316
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141317
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141318
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
141319
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141320
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141321
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141322
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141323
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141324
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141325
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141326
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
141327
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
|
141328
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
141329
|
+
Unpermitted parameters: device_token
|
141330
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
141331
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141332
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
141333
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00]]
|
141334
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141335
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
|
141336
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
141337
|
+
[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
|
141338
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
141339
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
141340
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
141341
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141342
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141343
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141344
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141345
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141346
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141347
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141348
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141349
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141350
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141351
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141352
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141353
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141354
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141355
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-6@example.com"]]
|
141356
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141357
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141358
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
|
141359
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["user_id", 1]]
|
141360
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141361
|
+
[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
|
141362
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
141363
|
+
Parameters: {"token"=>"ABCD5", "user_email"=>"person-6@example.com", "device_token"=>{"token"=>"ABCD5"}}
|
141364
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
|
141365
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
141366
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
141367
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1[0m
|
141368
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141369
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ?[0m [["id", 1]]
|
141370
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141371
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
|
141372
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'[0m
|
141373
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
141374
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141375
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141376
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141377
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141378
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141379
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141380
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141381
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141382
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141383
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141384
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141385
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
141386
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141387
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141388
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
141389
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141390
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141391
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
|
141392
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["user_id", 1]]
|
141393
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141394
|
+
[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
|
141395
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
141396
|
+
Parameters: {"token"=>"ABCD6", "device_token"=>{"token"=>"ABCD6"}}
|
141397
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
141398
|
+
Filter chain halted as :ensure_current_notifiable_user rendered or redirected
|
141399
|
+
Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
|
141400
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'[0m
|
141401
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
141402
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141403
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141404
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141405
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141406
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141407
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
141408
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141409
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141410
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141411
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141412
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141413
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
141414
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141415
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141416
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-8@example.com"]]
|
141417
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141418
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
141419
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-8@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
|
141420
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
141421
|
+
Unpermitted parameters: user_email, device_token
|
141422
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
|
141423
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1[0m
|
141424
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141425
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
141426
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 12:19:13 UTC +00:00], ["user_id", 1]]
|
141427
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141428
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.7ms)
|
141429
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
141430
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
141431
|
+
[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
|
141432
|
+
[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
|
141433
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
141434
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141435
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141436
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141437
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141438
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141439
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141440
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141441
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141442
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141443
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141444
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141445
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
141446
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141447
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141448
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
141449
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141450
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141451
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
141452
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["user_id", 1]]
|
141453
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141454
|
+
[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
|
141455
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141456
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
141457
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141458
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
141459
|
+
Parameters: {"token"=>"ABCD7", "user_email"=>"person-10@example.com", "device_token"=>{"token"=>"ABCD7"}}
|
141460
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1[0m
|
141461
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
141462
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
141463
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
|
141464
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
141465
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'[0m
|
141466
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
141467
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141468
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141469
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141470
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141471
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141472
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
141473
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141474
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141475
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141476
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141477
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141478
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141479
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141480
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141481
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
141482
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141483
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
141484
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-11@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
141485
|
+
[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
|
141486
|
+
Unpermitted parameters: user_email, device_token
|
141487
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
|
141488
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1[0m
|
141489
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141490
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
141491
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["user_id", 1]]
|
141492
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141493
|
+
Completed 200 OK in 9ms (ActiveRecord: 1.4ms)
|
141494
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
141495
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
141496
|
+
[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
|
141497
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
141498
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141499
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
141500
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
141501
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141502
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
141503
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
141504
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141505
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
141506
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
141507
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141508
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
141509
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
141510
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141511
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141512
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
|
141513
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141514
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
141515
|
+
Parameters: {"token"=>"ZXY987", "user_email"=>"person-12@example.com", "device_token"=>{"token"=>"ZXY987"}}
|
141516
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
|
141517
|
+
[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
|
141518
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.3ms)
|
141519
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141520
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-13@example.com"]]
|
141521
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141522
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141523
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
|
141524
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["user_id", 2]]
|
141525
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141526
|
+
[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
|
141527
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'
|
141528
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
141529
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141530
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
141531
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
141532
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141533
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
141534
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
141535
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141536
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
141537
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
141538
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141539
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
141540
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
141541
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141542
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141543
|
+
[1m[35mNotifiable::DeviceToken Exists (0.2ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
|
141544
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD9"], ["updated_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00]]
|
141545
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141546
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141547
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
141548
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141549
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
141550
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-14@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
141551
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
|
141552
|
+
Unpermitted parameters: user_email, device_token
|
141553
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1[0m
|
141554
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
|
141555
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141556
|
+
[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
|
141557
|
+
[1m[36mSQL (0.3ms)[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", Sat, 15 Feb 2014 12:19:14 UTC +00:00]]
|
141558
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141559
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.7ms)
|
141560
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
141561
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
141562
|
+
[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
|
141563
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
141564
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141565
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141566
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141567
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141568
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141569
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
141570
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141571
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141572
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141573
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141574
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141575
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
141576
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141577
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141578
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00]]
|
141579
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141580
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141581
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
|
141582
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141583
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141584
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1[0m
|
141585
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["user_id", 1]]
|
141586
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141587
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
141588
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141589
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00]]
|
141590
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141591
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141592
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-16@example.com"]]
|
141593
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141594
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141595
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
|
141596
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["user_id", 2]]
|
141597
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141598
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
141599
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141600
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?)[0m [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
141601
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141602
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141603
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
141604
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141605
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
141606
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"[0m
|
141607
|
+
[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]]
|
141608
|
+
[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]]
|
141609
|
+
[1m[35mNotifiable::DeviceToken Load (0.2ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
141610
|
+
[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", 2]]
|
141611
|
+
[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]]
|
141612
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
141613
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
141614
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141615
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141616
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141617
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141618
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141619
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141620
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141621
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141622
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141623
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141624
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141625
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
141626
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141627
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141628
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00]]
|
141629
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141630
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141631
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
|
141632
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141633
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141634
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1[0m
|
141635
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["user_id", 1]]
|
141636
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141637
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
141638
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141639
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
|
141640
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141641
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141642
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1[0m
|
141643
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["user_id", 2]]
|
141644
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141645
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
141646
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141647
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
141648
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141649
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141650
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?)[0m [["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
141651
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141652
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
141653
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
|
141654
|
+
[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]]
|
141655
|
+
[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]]
|
141656
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
141657
|
+
[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]]
|
141658
|
+
[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]]
|
141659
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
141660
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
141661
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141662
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
141663
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
141664
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141665
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
141666
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
141667
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141668
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
141669
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
141670
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141671
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
141672
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
141673
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141674
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141675
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
|
141676
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141677
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141678
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1[0m
|
141679
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["user_id", 1]]
|
141680
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141681
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141682
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:14 UTC +00:00]]
|
141683
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141684
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
141685
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
141686
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141687
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141688
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141689
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141690
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141691
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141692
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141693
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141694
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141695
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141696
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141697
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141698
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
141699
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141700
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
141701
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141702
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141703
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
|
141704
|
+
[1m[36mSQL (25.5ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 1]]
|
141705
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141706
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
141707
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
141708
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
141709
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141710
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
141711
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
141712
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141713
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
141714
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
141715
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141716
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
141717
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
141718
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141719
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
141720
|
+
[1m[36m (6.7ms)[0m [1mrollback transaction[0m
|
141721
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141722
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141723
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
141724
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141725
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141726
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1[0m
|
141727
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 1]]
|
141728
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141729
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
141730
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
141731
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141732
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
141733
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
141734
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141735
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
141736
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
141737
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141738
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
141739
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
141740
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141741
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
141742
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
141743
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141744
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141745
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
|
141746
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141747
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
141748
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
141749
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 1]]
|
141750
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141751
|
+
[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
|
141752
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
141753
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
141754
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141755
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141756
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141757
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141758
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141759
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
141760
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141761
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141762
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141763
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141764
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141765
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141766
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141767
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141768
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-4@example.com"]]
|
141769
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141770
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141771
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
|
141772
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 1]]
|
141773
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141774
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
141775
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141776
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "status") VALUES (?, ?)[0m [["device_token_id", 1], ["status", 200]]
|
141777
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141778
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
141779
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
141780
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141781
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141782
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141783
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141784
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141785
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141786
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141787
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141788
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141789
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141790
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141791
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
141792
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141793
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
|
141794
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
141795
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
141796
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141797
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141798
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141799
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141800
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141801
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141802
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141803
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141804
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141805
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141806
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141807
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141808
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141809
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141810
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00]]
|
141811
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141812
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
141813
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
141814
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141815
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141816
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141817
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141818
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141819
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
141820
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141821
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141822
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141823
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141824
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141825
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
141826
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141827
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141828
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00]]
|
141829
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141830
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141831
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?) [["notification_id", 1]]
|
141832
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141833
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
141834
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
141835
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141836
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
141837
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
141838
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141839
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
141840
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
141841
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141842
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
141843
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
141844
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141845
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
141846
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
141847
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141848
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141849
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00]]
|
141850
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141851
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
141852
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
141853
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141854
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
141855
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
141856
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141857
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
141858
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
141859
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141860
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
141861
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
141862
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141863
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
141864
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
141865
|
+
[1m[35m (0.0ms)[0m begin transaction
|
141866
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141867
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
|
141868
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141869
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
141870
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-6@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
|
141871
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
141872
|
+
Unpermitted parameters: user_email, device_token
|
141873
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1[0m
|
141874
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
|
141875
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141876
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
141877
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 1]]
|
141878
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
141879
|
+
Completed 200 OK in 5ms (ActiveRecord: 1.1ms)
|
141880
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
141881
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
141882
|
+
[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
|
141883
|
+
[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
|
141884
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
141885
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141886
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
141887
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
141888
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141889
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
141890
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
141891
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141892
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
141893
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
141894
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141895
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
141896
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
141897
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141898
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141899
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
|
141900
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141901
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141902
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
141903
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 1]]
|
141904
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141905
|
+
[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
|
141906
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
141907
|
+
Parameters: {"token"=>"ABCD5", "user_email"=>"person-7@example.com", "device_token"=>{"token"=>"ABCD5"}}
|
141908
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1[0m
|
141909
|
+
[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
|
141910
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
141911
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
|
141912
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141913
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
141914
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141915
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
141916
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
|
141917
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
141918
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141919
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
141920
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
141921
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141922
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
141923
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
141924
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141925
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
141926
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
141927
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141928
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
141929
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
141930
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141931
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141932
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
|
141933
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141934
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
141935
|
+
Parameters: {"token"=>"ZXY987", "user_email"=>"person-8@example.com", "device_token"=>{"token"=>"ZXY987"}}
|
141936
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
|
141937
|
+
[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
|
141938
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
141939
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
141940
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
141941
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141942
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141943
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
|
141944
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 2]]
|
141945
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141946
|
+
[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
|
141947
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'
|
141948
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
141949
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141950
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
141951
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
141952
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141953
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
141954
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
141955
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141956
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
141957
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
141958
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141959
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
141960
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
141961
|
+
[1m[35m (0.1ms)[0m begin transaction
|
141962
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
141963
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
141964
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD7"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00]]
|
141965
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141966
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141967
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
|
141968
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
141969
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
141970
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-10@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
141971
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
|
141972
|
+
Unpermitted parameters: user_email, device_token
|
141973
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1[0m
|
141974
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
|
141975
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
141976
|
+
[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
|
141977
|
+
[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", Sat, 15 Feb 2014 12:19:21 UTC +00:00]]
|
141978
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
141979
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
|
141980
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
141981
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
141982
|
+
[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
|
141983
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
141984
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141985
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
141986
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
141987
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141988
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
141989
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
141990
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
141991
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
141992
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
141993
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
141994
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
141995
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
141996
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141997
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
141998
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
|
141999
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
142000
|
+
Unpermitted parameters: device_token
|
142001
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
142002
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142003
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
142004
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00]]
|
142005
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142006
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
|
142007
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
142008
|
+
[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
|
142009
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
142010
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
142011
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
142012
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142013
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
142014
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
142015
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142016
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
142017
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
142018
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142019
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
142020
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
142021
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142022
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
142023
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
142024
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
142025
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
142026
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
142027
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142028
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142029
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
|
142030
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 1]]
|
142031
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142032
|
+
[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
|
142033
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
142034
|
+
Parameters: {"token"=>"ABCD8", "device_token"=>{"token"=>"ABCD8"}}
|
142035
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
142036
|
+
Filter chain halted as :ensure_current_notifiable_user rendered or redirected
|
142037
|
+
Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
|
142038
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'[0m
|
142039
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
142040
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142041
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
142042
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
142043
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142044
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
142045
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
142046
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142047
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
142048
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
142049
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142050
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
142051
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
142052
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
142053
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
142054
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
142055
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
142056
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
142057
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-12@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
142058
|
+
[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
|
142059
|
+
Unpermitted parameters: user_email, device_token
|
142060
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
|
142061
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1[0m
|
142062
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142063
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
142064
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 1]]
|
142065
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142066
|
+
Completed 200 OK in 4ms (ActiveRecord: 1.0ms)
|
142067
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
142068
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
142069
|
+
[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
|
142070
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
142071
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142072
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
142073
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
142074
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142075
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
142076
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
142077
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142078
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
142079
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
142080
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142081
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
142082
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
142083
|
+
[1m[35m (0.0ms)[0m begin transaction
|
142084
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
142085
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
|
142086
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142087
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142088
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
142089
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 1]]
|
142090
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142091
|
+
[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
|
142092
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142093
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
142094
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142095
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
142096
|
+
Parameters: {"token"=>"ABCD9", "user_email"=>"person-14@example.com", "device_token"=>{"token"=>"ABCD9"}}
|
142097
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
|
142098
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
142099
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
142100
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1[0m
|
142101
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
142102
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'
|
142103
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
142104
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142105
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
142106
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
142107
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142108
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
142109
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
142110
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142111
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
142112
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
142113
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142114
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
142115
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
142116
|
+
[1m[35m (0.0ms)[0m begin transaction
|
142117
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142118
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00]]
|
142119
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142120
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142121
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-15@example.com"]]
|
142122
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142123
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142124
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
|
142125
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 1]]
|
142126
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142127
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
142128
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142129
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-16@example.com"]]
|
142130
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142131
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
142132
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
|
142133
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 2]]
|
142134
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142135
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
142136
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142137
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?)[0m [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
142138
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142139
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
142140
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
142141
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142142
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
142143
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"[0m
|
142144
|
+
[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]]
|
142145
|
+
[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]]
|
142146
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
142147
|
+
[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]]
|
142148
|
+
[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]]
|
142149
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
142150
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
142151
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142152
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
142153
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
142154
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142155
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
142156
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
142157
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142158
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
142159
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
142160
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142161
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
142162
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
142163
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
142164
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
142165
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-17@example.com"]]
|
142166
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
142167
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
142168
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1
|
142169
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 1]]
|
142170
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
142171
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142172
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00]]
|
142173
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142174
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
142175
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
142176
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142177
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
142178
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
142179
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142180
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
142181
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
142182
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142183
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
142184
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
142185
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142186
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
142187
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
142188
|
+
[1m[35m (0.1ms)[0m begin transaction
|
142189
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142190
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00]]
|
142191
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142192
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142193
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-18@example.com"]]
|
142194
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
142195
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
142196
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
|
142197
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 1]]
|
142198
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142199
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
142200
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142201
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00]]
|
142202
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142203
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142204
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
|
142205
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142206
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142207
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1[0m
|
142208
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Sat, 15 Feb 2014 12:19:21 UTC +00:00], ["user_id", 2]]
|
142209
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142210
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
142211
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
142212
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
142213
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142214
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
142215
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?)[0m [["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
142216
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
142217
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
142218
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
|
142219
|
+
[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]]
|
142220
|
+
[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]]
|
142221
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
142222
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 2]]
|
142223
|
+
[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]]
|
142224
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
142225
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
142226
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142227
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
142228
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
142229
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142230
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
142231
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
142232
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
142233
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
142234
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
142235
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
142236
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
142237
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|